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.
Authorizations
Body
Blockchain network to use
1 - 255
"arbitrum-sepolia"
Ethereum address of the credit token
"0xd1f09c70f6f2838a3ab6209c1465af68594667ec"
Ethereum address of the user account
"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
Response
Successful response
true
Credit balance of the account
"12345"
Credit balance formatted to the token decimals
"12345.123"
Credit decimals
18