Retrieve the balance of a token for a given address by using the token's ticker.
Method : GET
URL : /tokens/balance/byticker
Parameter
Required
Location
Data Type
Constraints
Description
address_tet
Yes
Query
String
Valid address
The address of the TET wallet
ticker
Yes
Query
String
Valid ticker
The ticker symbol of the token
GET /tokens/balance/byticker?address_tet=0x535af33106dcdf40b68348fe227f7bee1347cae6&ticker=kar
Parameter
Required
Data Type
Constraints
Description
balance
Yes
Decimal
Positive value
The token balance for the address
Example Successful Response
Common Error Response Structure
Parameter
Required
Data Type
Description
error
Yes
String
Error code
message
Yes
String
Error description
Error Code
HTTP Status Code
Error Description
SMARTCONTRACT_NOT_EXISTS
400 Bad Request
The smart contract does not exist
{
"error" : " SMARTCONTRACT_NOT_EXISTS" ,
"message" : " smart contract does not exists"
}
The user sends a request with the wallet address and token ticker.
The server returns the balance if the ticker is valid.
If the ticker doesn't exist, the server returns an error.