Return the current address
GET/wallet/address
Return the current address
Request
Query Parameters
mark_as_used boolean
Mark the current address as used. So, it will return a new address in the next call.
index integer
Get the address in this specific derivation path index.
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
Responses
- 200
Return the current address
- application/json
- Schema
- success
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"address": "H8bt9nYhUNJHg7szF32CWWi1eB8PyYZnbt"
}
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...