Get wallet currency balance

Gets the a particular currency token balance of a wallet.


Call URL

/currencies/(currencyAddress)/members/(memberWalletAddress)/tokens

Type : GET


Call request URL parameters

Field Type Required/Optional Description Accepted values
currencyAddress string Required The address of the involved currency. Any valid currency address
memberWalletAddress string (without quotation marks) Required The wallet address to get its the balance. Any valid wallet address which is also a currency member of the involved currency

Sample Call Request

https://api.tetrium.io/tokenize/currencies/0x29341b674091d600c227B137a457b0573515A7A8/members/0xc7731ba1b2cfb4e5fdbce6492928a7c7787e211e/tokens

Call responses

Success response

Field Type Description Respond Values
status string Status of the API call. "success"
message string Information about the status. "wallet balance retrieved"
walletCurrencyBalance string The current currency token balance contained in the wallet Any string with numbers

Error response

Field Type Description Respond Values
status string Status of the API call. "fail"
error string Information about the error. (See below)

Information contained in error:

Error Messages Description
"invalid currencyAddress" currencyAddress provided was not in the correct format.
"invalid memberWalletAddress" memberWalletAddress provided was not in the correct format.

For any other errors, please refer to List of Common Error Messages

Sample Call Response

{
   "status":"success",
   "message":"wallet currency balance retrieved",
   "walletCurrencyBalance":"90.00"
}

results matching ""

    No results matching ""