Token Details
This API endpoint allows you to get details of a specific token.
Endpoint
GET /tokens/getDetails/:tokenAddress
Authentication
All requests to our GET API require authentication. You will need to include your API key in the header of each request. You can find your API key in the "API Keys" section of your PerkVenue dashboard.
Request Headers
The following request header is required to use the NFT Minting API:
Authorization
- Your PerkVenue API key
Request Format
Add following Query at the end of the endpoint to get details of a specific token:
tokenAddress
- The contract address of the token
Example Request
/tokens/getDetails/0x2b7a81EF19a12D214F9563E6c6388a2ef892e09F
Response
The API will respond with a JSON object containing the following information:
symbol
: The unique symbol of the token.creator
: The address of the account that originally created the token.name
: The name of the token.totalSupply
: The total number of tokens that have been minted for this token contract.
Example Response
{
"tokenDetails": {
"name": "xyz",
"symbol": "abc",
"creator": "0x1f344b834E2Be81e02A97b06B31fDE5855123948",
"totalSupply": "0"
}
}
Error Responses
In case of an error, the API will respond with a JSON object containing an error message:
{
"error": "Error message"
}
Conclusion
The GET /tokens/:tokenAddress
endpoint allows you to retrieve information about a specific token, including its symbol
, creator
, name
, and totalSupply
.