Check the Balance of an ERC-20 Token in a Wallet
To check the balance of any ERC-20 token in a wallet, send a GET request to the /wallet/wallets/erc20/balance
endpoint, calling the :retrieve
method. The wallet name and token contract address are also passed as query parameters.
Check the balance of an ERC-20 token in a wallet
GET
https://api.playfix.io/wallet/erc20/balance:retrieve
Query Parameters
Name | Type | Description |
---|---|---|
wallet* | String | Name of the wallet that stores the ERC-20 token. This should be the value of |
contractAddress* | String | Contract address of the ERC-20 token. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer <your_access_token> |
Example cURL API Call
Example Python API Call
Request Query Parameters
wallet
- Name of the wallet that stores the ERC-20 token. This should be the value ofname
from the response of a previously created wallet.contractAddress
- Contract address of the ERC-20 token. You can get this by reading the details of the token.
Response
Response Fields
balance
- The quantity of the ERC-20 token available in the wallet.formattedBalance
- How the balance is displayed on the user interface.
Last updated