diff --git a/tx/tx.go b/tx/tx.go index d002412..1e739ef 100644 --- a/tx/tx.go +++ b/tx/tx.go @@ -847,7 +847,7 @@ func (tx *RecvTx) TxInfo(account string, curheight int32, "category": "receive", "account": account, "address": address, - "amount": tx.Amount, + "amount": float64(tx.Amount) / float64(btcutil.SatoshiPerBitcoin), "txid": tx.TxID.String(), "timereceived": tx.TimeReceived, } @@ -974,7 +974,7 @@ func (tx *SendTx) TxInfo(account string, curheight int32, "account": account, "address": address, "category": "send", - "amount": -pair.Amount, + "amount": float64(-pair.Amount) / float64(btcutil.SatoshiPerBitcoin), "fee": float64(tx.Fee) / float64(btcutil.SatoshiPerBitcoin), "confirmations": confirmations, "txid": txIDStr,