1

I need to get transaction confirmations via command line. But seems there is no such method. onchain_history seems returns information but I don't want to pull a whole history, I need info about one transaction only not all. Is it possible?

2
get_tx_status('TXID')

Replace TXID with transaction id.

>> get_tx_status('c12ed68e512aa68dbf88878902efba20446024b645f5254f4b9411db2c6e684c')
{
    "confirmations": 589
}

The transaction should be associated with your wallet else you will get below error:

Exception: Transaction not in wallet.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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