When I submit a transaction what is the most efficient way to make sure it is settled on the blockchain?

When I submit a transaction what is the most efficient way to verify and make sure it is settled on the blockchain?

You can make a rest call to the /v2/transactions/pending/{txid} endpoint with your transaction id

There are methods on the SDK clients to make this easier, usually named something like waitForConfirmation(client, txid, rounds)

If confirmed-round is >0, the transaction has been settled, otherwise pool-error will be set if there was an issue.

Ben

1 Like