Skip to main content

Address information

Getting information of a given address.

Parameters

  • x-wallet-id: Wallet identifier.
  • address: Address whose information will be obtained.

Optional Parameters

  • token: Token UID to filter information. The default is HTR (UID = 00).

Request

curl -X GET -H "X-Wallet-Id: default-wallet" \
http://localhost:8000/wallet/address-info?address=WkyrWPcfhyZg84Ecf2gpGtRegsoHmSEizs

Response

{
"success":true,
"total_amount_received":1480,
"total_amount_sent":1480,
"total_amount_available":0,
"total_amount_locked":0,
"token":"00",
"index":8
}

Request with Custom Token Filter

curl -X GET -H "X-Wallet-Id: default-wallet" \
"http://localhost:8000/wallet/address-info?address=WkyrWPcfhyZg84Ecf2gpGtRegsoHmSEizs&token=000fbf6e0bf4322d14172972ca4e90a1e18e9a6abf0f67d42a0a33e979929b9a"

Response

{
"success":true,
"total_amount_received":18,
"total_amount_sent":10,
"total_amount_available":8,
"total_amount_locked":0,
"token":"000fbf6e0bf4322d14172972ca4e90a1e18e9a6abf0f67d42a0a33e979929b9a",
"index":8
}