Get the balance of a hex-encoded Ed25519 address.
GET/api/v1/addresses/ed25519/:address
Get the balance of a hex-encoded Ed25519 address.
Request
Path Parameters
hex-encoded Ed25519 address
Responses
- 200
- 400
- 403
- 500
- 503
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
data objectrequired
The type of the address. Value 0
denotes a Ed25519 address.
The hex-encoded Ed25519 address.
The computed balance for the address.
Tells whether the address can receive dust or not.
The current ledger index for which the request was made.
{
"data": {
"addressType": 0,
"address": "string",
"balance": 0,
"dustAllowed": true,
"ledgerIndex": 0
}
}
{
"data": {
"addressType": 0,
"address": "efdc112efe262b304bcf379b26c31bad029f616ee3ec4aa6345a366e4c9e43a3",
"balance": 1338263,
"dustAllowed": true,
"ledgerIndex": 946704
}
}
Unsuccessful operation: indicates that the provided data is invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 400,
"message": "invalid data provided"
}
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}
Unsuccessful operation: indicates that the node is not synced.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 503,
"message": "service unavailable"
}
}