Retrieve a token metadata

GET

Retrieve a token metadata from the Pump.fun Trading API. The metadata is fetched from the URI of the token.

Attributes

tokenMetadata

The token metadata object.

solscan

(object)

An object containing Solana Explorer URLs for the token.


mint

(string)

The Solana Explorer URL for the token.

pumpfun

(object)

An object containing the Pump.fun URL for the token.


mint

(string)

The Pump.fun URL for the token.

Useful for

  • Retrieving a token's metadata by its id.

  • Checking if a token has a website, image, or description.

  • Executing strategies based on a token's metadata.

Endpoint

https://api.tradepump.fun/v1/token/:id/metadata

Example Request

Node
Curl
Axios
1 2 3 4 5 6 7 8 9 import { PumpApiClient } from 'tradepumpfun'; const client = new PumpApiClient({ apiKey: '<your-api-key>' }); await client.token.retrieveTokenMetadata({ mint: "<mint>", });