What is the best method of getting the transaction id for the last payment sent to an address with n confirmations ?

getbalance address with minconf will give me a balance but what I would like to do is get the full details of the last transaction made to an address, not only the balance.

I could do a something like listtransactions then filter out the data, I was wondering is there a simpler way that would not require me first to know the account associated with the address.

1 Answer 1


Not sure what you mean by last payment because multiple payments to the same address could be included in the same block and therefore included at the same time.


You could use getreceivedbyaddress however you would still have to filter out all the transactions that you dont want.

getreceivedbyaddress <bitcoinaddress> [minconf=1]

Returns the amount received by in transactions with at least [minconf] confirmations. It correctly handles the case where someone has sent to the address in multiple transactions. Keep in mind that addresses are only ever used for receiving transactions. Works only for addresses in the local wallet, external addresses will always show 0.

  • Yeah its seems like the only way to get the transaction Ids. What I do now is issue a new address every time I want a paypent then call getreceivedbyaddress <address> minconf to confirm payment, if they send more than once then thats still in the balance but it wont give me the txn ids
    – Abelgo
    May 14, 2014 at 7:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.