Credit
Credit Balance
Show the Credit token balance of an account.
The returned response consists of 3 numbers:
-
balance
The absolute amount of tokens the user has. -
decimals
The number of decimals defined in the Credit token. -
balance_formatted
The user balance formatted to the token decimals. Example: for an balance of1000000000000000000
with18
decimalsbalance_formatted
would be1
. All token amount parameters in this API use this formatted mechanism.
POST
/
credit
/
balance
Authorizations
X-API-KEY
string
headerrequiredBody
application/json
chain
string
requiredBlockchain network to use
Required string length:
1 - 255
token_id
string
requiredEthereum address of the credit token
user_id
string
requiredEthereum address of the user account
Response
200 - application/json
success
boolean
requiredSuccessful response
balance
string
requiredCredit balance of the account
balance_formatted
string
requiredCredit balance formatted to the token decimals
decimals
integer
requiredCredit decimals