For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Custom Token

Get metadata of a custom token

Custom Token API

Provides token details for a user-specified token that is not included in Rango's official list. Currently supports blockchains based on Solana and EVM.

If you are using Rango Public Test Api Key for testing the API, make sure to use "https://public-api.rango.exchange" for endpoint calls. If you have access to a Private API Key, you must use "https://api.rango.exchange"

const tokenResponse = await rango.getCustomToken({
    "blockchain": "SOLANA", 
    "address": "3yoMkf3X6bDxjks6YaWwNk4SAbuaysLg1a4BjQKToQAA"
})
const response = await axios.get('https://public-api.rango.exchange/meta/custom-token', {
  params: {
    'blockchain': 'SOLANA',
    'address': '3yoMkf3X6bDxjks6YaWwNk4SAbuaysLg1a4BjQKToQAA',
    'apiKey': 'c6381a79-2817-4602-83bf-6a641a409e32'
  }
});
curl --request GET \
     --url 'https://public-api.rango.exchange/meta/custom-token?blockchain=SOLANA&address=3yoMkf3X6bDxjks6YaWwNk4SAbuaysLg1a4BjQKToQAA&apiKey=c6381a79-2817-4602-83bf-6a641a409e32' 
Custom Token Swagger

Custom Token Request

  • blockchain* String

    • Description: The blockchain which the token belongs to.

    • Example: SOLANA

  • address* String

    • Description: Smart contract address of the token.

    • Example: 3yoMkf3X6bDxjks6YaWwNk4SAbuaysLg1a4BjQKToQAA

Custom Token Response

  • token

    • Description: The token's metadata

  • error

    • Description: Error message if there was any problem

  • errorCode

    • Description: Error code if there was any problem

  • traceId

    • Description: Trace id help Rango support to resolve the issue

Last updated