Return the number of blocks confirming the transaction, if it exists in the wallet
GET/wallet/tx-confirmation-blocks
Return the number of blocks confirming the transaction, if it exists in the wallet
Request
Query Parameters
id stringrequired
Transaction id (hash) to get blocks confirmation number.
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
Responses
- 200
Return the transaction data
- application/json
- Schema
- success
- wallet-not-ready
- tx-does-not-belong-to-wallet
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"success": true,
"confirmationNumber": 15
}
Wallet is not ready yet
{
"success": false,
"message": "Wallet is not ready.",
"state": 1
}
Wallet does not have transaction requested.
{
"success": false,
"error": "Wallet does not contain transaction with id <TX_ID>"
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet id parameter is invalid
{
"success": false,
"message": "Invalid wallet-id parameter."
}
Loading...