Get the index of an address
GET/wallet/address-index
Get the index of an address
Request
Query Parameters
address stringrequired
Address to get the index.
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
Responses
- 200
Return the index of the address.
- application/json
- Schema
- success
- error
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"index": 2,
"success": true
}
Address does not belong to the wallet
{
"success": false
}
Wallet is not ready yet
{
"success": false,
"message": "Wallet is not ready.",
"state": 1
}
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...