Added tx ids to ListReceivedByAddress result
This commit is contained in:
parent
8d928ce2e1
commit
9ab659cda3
1 changed files with 4 additions and 0 deletions
|
@ -2043,6 +2043,8 @@ func ListReceivedByAddress(w *Wallet, chainSvr *chain.Client, icmd btcjson.Cmd)
|
||||||
amount btcutil.Amount
|
amount btcutil.Amount
|
||||||
// Number of confirmations of the last transaction.
|
// Number of confirmations of the last transaction.
|
||||||
confirmations int32
|
confirmations int32
|
||||||
|
// Hashes of transactions which include an output paying to the address
|
||||||
|
tx []string
|
||||||
}
|
}
|
||||||
|
|
||||||
bs, err := w.SyncedChainTip()
|
bs, err := w.SyncedChainTip()
|
||||||
|
@ -2085,6 +2087,7 @@ func ListReceivedByAddress(w *Wallet, chainSvr *chain.Client, icmd btcjson.Cmd)
|
||||||
confirmations: confirmations,
|
confirmations: confirmations,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
addrData.tx = append(addrData.tx, credit.Tx().Sha().String())
|
||||||
allAddrData[addrStr] = addrData
|
allAddrData[addrStr] = addrData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2100,6 +2103,7 @@ func ListReceivedByAddress(w *Wallet, chainSvr *chain.Client, icmd btcjson.Cmd)
|
||||||
Address: address,
|
Address: address,
|
||||||
Amount: addrData.amount.ToUnit(btcutil.AmountBTC),
|
Amount: addrData.amount.ToUnit(btcutil.AmountBTC),
|
||||||
Confirmations: uint64(addrData.confirmations),
|
Confirmations: uint64(addrData.confirmations),
|
||||||
|
Tx: addrData.tx,
|
||||||
}
|
}
|
||||||
idx++
|
idx++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue