Batch Token Lookup
curl --request GET \
--url https://inkypump.com/api/tokens/batchimport requests
url = "https://inkypump.com/api/tokens/batch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://inkypump.com/api/tokens/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://inkypump.com/api/tokens/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://inkypump.com/api/tokens/batch"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://inkypump.com/api/tokens/batch")
.asString();require 'uri'
require 'net/http'
url = URI("https://inkypump.com/api/tokens/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyInkyPump API
Batch Token Lookup
Read up to 50 token records as an address-keyed map.
GET
/
api
/
tokens
/
batch
Batch Token Lookup
curl --request GET \
--url https://inkypump.com/api/tokens/batchimport requests
url = "https://inkypump.com/api/tokens/batch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://inkypump.com/api/tokens/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://inkypump.com/api/tokens/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://inkypump.com/api/tokens/batch"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://inkypump.com/api/tokens/batch")
.asString();require 'uri'
require 'net/http'
url = URI("https://inkypump.com/api/tokens/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyQuery parameters
number
required
57073 for Ink or 4663 for Robinhood.string
required
Comma-separated token addresses. Maximum 50.
Request
curl "https://inkypump.com/api/tokens/batch?chainId=57073&addresses=0xAAA...,0xBBB..."
Response
{
"chainId": 57073,
"tokens": {
"0xaaa...": {
"address": "0xaaa...",
"ticker": "AAA"
},
"0xbbb...": null
}
}
null under its requested key.
This endpoint is
GET. The previous POST body format and includeMetrics/includeHolders options do not exist.