NFT & Token API
API Documentation: Token Management API
Introduction
Welcome to the Token Management API provided by api.dailychain.org
! This API allows you to access information related to tokens, token holders, and current token balances. Follow the guidelines below to integrate and utilize these endpoints successfully.
Base URL
The base URL for all endpoints is: https://api.dailychain.org
1. Get Tokens
Endpoint:
Description:
Retrieve a list of tokens.
Example:
2. Get Token Holders
Endpoint:
Parameters:
token_contract
(required): The address of the token contract (e.g.,0xabc...
).
Description:
Retrieve the list of holders for a specific token.
Example:
3. Get Current Token Balance by Token Address
Endpoint:
Parameters:
owner_address
(required): The address of the token owner (e.g.,0xdef...
).token_contract
(required): The address of the token contract (e.g.,0xabc...
).
Description:
Retrieve the current token balance for a specific token and owner.
Example:
4. Get Current Token Balance
Endpoint:
Parameters:
owner_address
(required): The address of the token owner (e.g.,0xdef...
).
Description:
Retrieve the current token balance for a specific owner.
Example:
Error Handling
400 Bad Request:
If a required parameter is missing or invalid.
Example response:
{ "error": "owner_address is required" }
500 Internal Server Error:
If there is an issue with the server.
Example response:
{ "error": "Internal Server Error" }
Conclusion
Congratulations! You've successfully learned how to interact with the Token Management API. If you have any further questions or issues, please contact our support team at support@dailychain.org.
Note: Make sure to replace https://api.dailychain.org
with the actual base URL of the API.
Last updated