Read a Token Details
To retrieve the details of a token, such as name, symbol, and decimals, send a GET a request to the /wallet/erc20/info
, calling the :retrieve
method. The token contract address and network are also passed as query parameters.
Read the details of an ERC-20 token
GET
https://api.playfix.io/wallet/erc20/info:retrieve
Query Parameters
network*
String
Blockchain network of the ERC-20 token. This can be any of the following values:
NETWORK_ETHEREUM
,
NETWORK_ETHEREUM_RINKERBY
,
NETWORK
_POLYGON
, or
NETWORK_POLYGON_MUMBAI
.
contractAddress*
String
Contract address of the ERC-20 token.
Headers
Authorization*
String
Bearer <your_access_token>
Example cURL API Call
Example Python API Call
Request Query Parameter
contractAddress
- Contract address of the ERC-20 token.network
- The blockchain network of the ERC-20 token. This can be any of the following values:NETWORK_ETHEREUM
: Ethereum mainnet.NETWORK_ETHEREUM_RINKEBY
: Ethereum Gorli testnet. For testing purposes only.NETWORK_POLYGON
: Polygon mainnet.NETWORK_POLYGON_MUMBAI
: Polygon Mumbai testnet. For testing purposes only.
Response
Last updated