api-pump.fun
  • General
    • Getting started
  • Reference
    • API Reference
      • Generate API Key
      • Balance
      • Token information
      • Get Quote
      • Bonding Curve
      • King of The Hill
      • Trade tokens
      • Trade tokens [local RPC]
      • Create token
  • Streams
    • Websocket subscription
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Token information

Get token metadata

Method is used to retrieve the metadata for a given token

GET /info

Method is used to retrieve the metadata for a given token

Headers

Name
Value

Content-Type

application/json

x-api-key

The API key for authentication

Parameters

Parameter
Description
Required

token

Token for which the balance is queried

yes

Body

Response

{
    "Key": 4,
    "UpdateAuthority": "TSLvdd1pWpHVjahSpsvCXUbgwsL3JAcvokwaKt1eokM",
    "Mint": "83sjxMqcV9ynx4sSEjwL3NqNB7AoyiQLqdnuNHFXpump",
    "Data": {
        "Name": "FEAR NOT",
        "Symbol": "FEAR NOT",
        "Uri": "https://cf-ipfs.com/ipfs/QmNiJQ2vbNFWUXE9EQ7Rjr3xEJSzTbnprtWGuprwd3b9MR",
        "SellerFeeBasisPoints": 0,
        "Creators": null
    },
    "PrimarySaleHappened": false,
    "IsMutable": false,
    "EditionNonce": 255,
    "TokenStandard": 2,
    "Collection": null,
    "Uses": null,
    "CollectionDetails": null,
    "ProgrammableConfig": null
}
{
  "error": true,
  "message": "Token not found"
}
{
  "error": true,
  "message": "Wallet not found"
}

Examples

curl --location 'https://rpc.api-pump.fun/info?token=your_token' \
--header 'Content-Type: application/json' \
--header 'x-api-key: your_api_key'
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://rpc.api-pump.fun/info?token=your_token"
  method := "GET"

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, nil)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("x-api-key", "your_api_key")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
var https = require('follow-redirects').https;
var fs = require('fs');

var options = {
  'method': 'GET',
  'hostname': 'rpc.api-pump.fun',
  'path': '/info?token=your_token',
  'headers': {
    'Content-Type': 'application/json',
    'x-api-key': 'your_api_key'
  },
  'maxRedirects': 20
};

var req = https.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function (chunk) {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });

  res.on("error", function (error) {
    console.error(error);
  });
});

req.end();
import requests
import json

url = "https://rpc.api-pump.fun/info?token=your_token"

payload = {}
headers = {
  'Content-Type': 'application/json',
  'x-api-key': 'your_api_key'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
PreviousBalanceNextGet Quote

Last updated 10 months ago