Transaction Response
A successful response contains the transaction ID and a link to the Node API, where the transaction status can be verified.
{
"id": "0x6b7174abe28dbc2a8671e221201055e26806efff59873163e11f55a7207ad576",
"url": "https://node-testnet.vechain.energy/transactions/0x6b7174abe28dbc2a8671e221201055e26806efff59873163e11f55a7207ad576?pending=true"
}
The transaction status will contain a meta
field. If the meta
field in the response is null, then the transaction is pending. If the transaction was completed, the meta
field will contain information about the block containing the transaction.
Good practice would be to:
- extract
url
from response - load the
url
to verify transaction exists - if
meta
isnull
, sleep for 10 seconds and try again - if
meta
is notnull
, handle the transaction result