NFT & Token API
Overview
The RapidChain API is an interface used to retrieve information about crypto asset tokens and perform transactions. This API can be used to obtain token details, token holders, as well as query the current token balances of specific users.
API Endpoint
All API calls should start with the following base URL:
API Usage
1. Get Token Information
To retrieve token information, use the /getTokens
endpoint.
HTTP Method: GET
Endpoint:
/getTokens
Example Usage:
2. Get Token Holders
To get the holders of a specific token, use the /getTokenHolders
endpoint.
HTTP Method: GET
Endpoint:
/getTokenHolders?token_contract={token_contract}
Parameters:
token_contract
: Token address
Example Usage:
3. Get Current Token Balance by Token Address
To retrieve the current balance of a specific user for a specific token, use the /getCurrentTokenBalanceByTokenAddress
endpoint.
HTTP Method: GET
Endpoint:
/getCurrentTokenBalanceByTokenAddress?owner_address={owner_address}&token_contract={token_contract}
Parameters:
owner_address
: User's addresstoken_contract
: Token address
Example Usage:
4. Get All Token Balances
To retrieve all token balances of a specific user, use the /getCurrentTokenBalance
endpoint.
HTTP Method: GET
Endpoint:
/getCurrentTokenBalance?owner_address={owner_address}
Parameters:
owner_address
: User's address
Example Usage:
You can use the API calls mentioned above to utilize the RapidChain API. If you have any questions, please contact us at support@rapidchain.io.
Last updated