Get index token history
curl --request GET \
--url https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history \
--header 'x-api-key: <api-key>'import requests
url = "https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history', 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://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"response": {
"items": [
{
"id": "<string>",
"timestamp": "<string>",
"claim": {
"txHash": "<string>",
"claimedWei": "<string>",
"minedAt": "<string>",
"finalizedAt": "<string>"
},
"buys": [
{
"token": "<string>",
"ethInWei": "<string>",
"boughtAmountRaw": "<string>",
"txHash": "<string>",
"finalizedAt": "<string>"
}
],
"distribution": {
"totalWei": "<string>",
"distributableWei": "<string>",
"snapshot": {
"holderCount": 123,
"recipientCount": 123,
"excludedHolderCount": 123,
"includedSupply": "<string>",
"blockNumber": "<string>",
"exportedAt": "<string>"
},
"payoutTxHashes": [
"<string>"
],
"completedAt": "<string>"
},
"topRecipients": [
{
"wallet": "<string>",
"snapshotBalanceRaw": "<string>",
"amounts": [
{
"token": "<string>",
"amountRaw": "<string>"
}
]
}
]
}
],
"hasMore": true,
"nextCursor": "<string>"
}
}{
"success": false,
"response": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"response": "<string>"
}Robinhood Chain
Get Index Token History
Get completed distribution cycles for an index token on Robinhood Chain, newest first. Each cycle covers the fee claim, the basket token buys it funded, the holder distribution (with snapshot stats), and the top 10 recipients.
For the next page pass nextCursor back as cursor. nextCursor is null when the history is exhausted.
GET
/
evm
/
rh
/
index-token
/
history
Get index token history
curl --request GET \
--url https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history \
--header 'x-api-key: <api-key>'import requests
url = "https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history', 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://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api-v2.bags.fm/api/v1/evm/rh/index-token/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"response": {
"items": [
{
"id": "<string>",
"timestamp": "<string>",
"claim": {
"txHash": "<string>",
"claimedWei": "<string>",
"minedAt": "<string>",
"finalizedAt": "<string>"
},
"buys": [
{
"token": "<string>",
"ethInWei": "<string>",
"boughtAmountRaw": "<string>",
"txHash": "<string>",
"finalizedAt": "<string>"
}
],
"distribution": {
"totalWei": "<string>",
"distributableWei": "<string>",
"snapshot": {
"holderCount": 123,
"recipientCount": 123,
"excludedHolderCount": 123,
"includedSupply": "<string>",
"blockNumber": "<string>",
"exportedAt": "<string>"
},
"payoutTxHashes": [
"<string>"
],
"completedAt": "<string>"
},
"topRecipients": [
{
"wallet": "<string>",
"snapshotBalanceRaw": "<string>",
"amounts": [
{
"token": "<string>",
"amountRaw": "<string>"
}
]
}
]
}
],
"hasMore": true,
"nextCursor": "<string>"
}
}{
"success": false,
"response": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"response": "<string>"
}Authorizations
API key authentication. Provide your API key as the header value.
Query Parameters
Index token address. Accepts any casing; normalized to EIP-55 checksum form.
Number of distribution cycles to return per page.
Required range:
1 <= x <= 50Cursor from a previous page's nextCursor. Must be a 24-character hex ID.
⌘I
