Get Token Pair by Asset Type
POST
Retrieves token pair information for a specific asset type.
Path Parameters
chainstringrequired
Parameter specifying the target chain to query.networkstringrequired
Parameter specifying the network of the target chain.Request Body
assetTypestringrequired
Parameter specifying the asset type to query.The asset type must be entered as a 64-character hexadecimal string (including "0x") using one of the following formats:- Coin: Asset ID in Struct format such as "0x1::aptos_coin::AptosCoin"
- Fungible Asset: Object address that owns the Token Metadata
Responses
coinAssetTypestringrequired
A field that represents the type of the asset belonging to the Coin standard.The Coin standard is provided in 'moduleAddress::moduleName::structName' format.fungibleAssetTypestringrequired
A field that represents the type of the asset belonging to the Fungible Asset standard.The Fungible Asset standard is provided as a 64-character hexadecimal string prefixed with 0x; the Object address that owns the metadata of the asset is provided.linkedAssetTypestringrequired
A common identifier that links Coin and Fungible Asset when they have been migrated.This field serves as a unified key that groups Coin/Fungible Asset into a single asset unit for identification and retrieval, providing the Object address where the migrated Fungible Asset's Metadata is stored.codestringrequired
Code identifying the cause of the failed request.messagestringrequired
Detailed message including the name and value of the invalid parameter.{"code": "MISSING_REQUIRED_PARAMETER","message": "Missing required parameter: { PARAMETER_NAME }"}
cURL
curl -X POST 'https://web3.nodit.io/v1/aptos/mainnet/token/getTokenPairByAssetType' \-H 'Content-Type: application/json' \-H 'X-API-KEY: nodit-demo' \-d '{"assetType": "0x1::aptos_coin::AptosCoin"}'