SRC20 Metadata
Fetch SRC20 metadata for assets minted in blocks 5000000
to 5010000
.
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/src20?chains=FUEL&from_block=5000000&to_block=5010000" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
[
{
"chain": 9889,
"first_seen_block_number": 5005001,
"first_seen_block_hash": "0xdeb4945b40381d72ec730e93e247dea0cee37dbb3a44f12643293fa92fae82e0",
"first_seen_transaction_hash": "0x75e8d706159ce195b843910da544e726de1cdfd1e4fa10f720ed95ec7770c5ad",
"first_seen_transaction_index": 0,
"first_seen_receipt_index": 8,
"contract_id": "0x81d5964bfbb24fd994591cc7d0a4137458d746ac0eb7ececb9a9cf2ae966d942",
"asset_id": "0xaeaa595103a51267e7abdd641da283964697fbf8f2bd3e7d65bbb474e215d74c",
"name": "duck",
"symbol": "fdulan",
"decimals": 9,
"sub_id": "0x000000000000000000000000000000000000000000000000000000000000011a"
}
]
Query Parameters
app.pangea.foundation/v1/api/src20?chains=FUEL
chains
: Filters the data by specific blockchain networks.from_block
: Filters the data by a starting block number.to_block
: Filters the data by an ending block number.contract_id__in
: Filters the data by a list ofcontract_id
.asset_id__in
: Filters the data by a list ofasset_id
.sub_id__in
: Filters the data by a list ofsub_id
.symbol__in
: Filters the data by a list of tokensymbol
.name__in
: Filters the data by a list of tokenname
.decimals__gte
: Filters the data by tokendecimal
using the greater than or equal to operator.decimals__lte
: Filters the data by tokendecimal
using the less than or equal to operator.