DirectoryGetCollections
curl --request POST \
--url https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"includeTestnets": true,
"onlyFeatured": false,
"chainId": 80002
}
'import requests
url = "https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections"
payload = {
"includeTestnets": True,
"onlyFeatured": False,
"chainId": 80002
}
headers = {
"X-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({includeTestnets: true, onlyFeatured: false, chainId: 80002})
};
fetch('https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections', 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://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'includeTestnets' => true,
'onlyFeatured' => false,
'chainId' => 80002
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Access-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections"
payload := strings.NewReader("{\n \"includeTestnets\": true,\n \"onlyFeatured\": false,\n \"chainId\": 80002\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Access-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections")
.header("X-Access-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"includeTestnets\": true,\n \"onlyFeatured\": false,\n \"chainId\": 80002\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Access-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"includeTestnets\": true,\n \"onlyFeatured\": false,\n \"chainId\": 80002\n}"
response = http.request(request)
puts response.read_body{
"collections": [
{
"chainId": 80002,
"address": "0xecfda15b60f2090b9c2c678910889e49e7edaab8",
"name": "colecction 3 de las uan",
"type": "ERC721",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "test en poligon",
"ogImage": "",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-08-20T15:53:43.971994Z"
},
{
"chainId": 80002,
"address": "0xd67dd82a97b21dafc1c62671e6909d22741c8235",
"name": "Tester Contract For Indexer Subscriptions",
"type": "UNKNOWN",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x",
"extensions": {
"link": "",
"description": "",
"ogImage": "",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-08-01T14:30:37.100518Z"
},
{
"chainId": 80002,
"address": "0xa1b52a27a68f77db09e57defc912eab802500278",
"name": "Toys",
"type": "ERC1155",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "",
"ogImage": "",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-08-20T15:53:45.705423Z"
},
{
"chainId": 80002,
"address": "0x4442e4878d60b13c0bca9ceb6b0bab82eaa03d56",
"name": "demo collection",
"type": "ERC1155",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "demo collection description",
"ogImage": "https://metadata.sequence.app/projects/38573/collections/713/image.jpg",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-09-09T08:49:47.852638Z"
},
{
"chainId": 80002,
"address": "0x9559e7958d4729cf7ed4d9ff58a3ae1704800500",
"name": "Prueba-0",
"type": "ERC721",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "https://www.google.com",
"description": "Collection description",
"ogImage": "https://metadata.sequence.app/projects/30957/collections/552/image.png",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-08-20T15:53:47.072029Z"
},
{
"chainId": 80002,
"address": "0x2b1e643324b3c479aa0803664637586493c3c204",
"name": "Weapons",
"type": "ERC1155",
"symbol": "",
"logoURI": "https://metadata.sequence.app/projects/35598/collections/620/image.png",
"deployed": true,
"bytecodeHash": "0xed47946e266a404fc37371df08eefdebb2fccba9ebe60c6ca8b467e1dd554ae0",
"extensions": {
"link": "https://baseurl/collections/collectioname",
"description": "All weapons from Alternates can be found in this category.",
"ogImage": "https://metadata.sequence.app/projects/35598/collections/620/image.png",
"ogName": "Weapons 1155",
"originChainId": 0,
"originAddress": "0x2b1e643324b3c479aa0803664637586493c3c204",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-10-03T09:49:56.459325Z"
}
],
"page": {
"page": 2,
"pageSize": 30,
"more": true
}
}{
"error": "WebrpcEndpoint",
"code": 0,
"msg": "endpoint error",
"status": 400,
"cause": "<string>"
}{
"error": "WebrpcBadResponse",
"code": -5,
"msg": "bad response",
"status": 500,
"cause": "<string>"
}public
DirectoryGetCollections
POST
/
rpc
/
Metadata
/
DirectoryGetCollections
DirectoryGetCollections
curl --request POST \
--url https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"includeTestnets": true,
"onlyFeatured": false,
"chainId": 80002
}
'import requests
url = "https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections"
payload = {
"includeTestnets": True,
"onlyFeatured": False,
"chainId": 80002
}
headers = {
"X-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({includeTestnets: true, onlyFeatured: false, chainId: 80002})
};
fetch('https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections', 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://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'includeTestnets' => true,
'onlyFeatured' => false,
'chainId' => 80002
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Access-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections"
payload := strings.NewReader("{\n \"includeTestnets\": true,\n \"onlyFeatured\": false,\n \"chainId\": 80002\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Access-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections")
.header("X-Access-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"includeTestnets\": true,\n \"onlyFeatured\": false,\n \"chainId\": 80002\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://metadata.sequence.app/rpc/Metadata/DirectoryGetCollections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Access-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"includeTestnets\": true,\n \"onlyFeatured\": false,\n \"chainId\": 80002\n}"
response = http.request(request)
puts response.read_body{
"collections": [
{
"chainId": 80002,
"address": "0xecfda15b60f2090b9c2c678910889e49e7edaab8",
"name": "colecction 3 de las uan",
"type": "ERC721",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "test en poligon",
"ogImage": "",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-08-20T15:53:43.971994Z"
},
{
"chainId": 80002,
"address": "0xd67dd82a97b21dafc1c62671e6909d22741c8235",
"name": "Tester Contract For Indexer Subscriptions",
"type": "UNKNOWN",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x",
"extensions": {
"link": "",
"description": "",
"ogImage": "",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-08-01T14:30:37.100518Z"
},
{
"chainId": 80002,
"address": "0xa1b52a27a68f77db09e57defc912eab802500278",
"name": "Toys",
"type": "ERC1155",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "",
"ogImage": "",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-08-20T15:53:45.705423Z"
},
{
"chainId": 80002,
"address": "0x4442e4878d60b13c0bca9ceb6b0bab82eaa03d56",
"name": "demo collection",
"type": "ERC1155",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "demo collection description",
"ogImage": "https://metadata.sequence.app/projects/38573/collections/713/image.jpg",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-09-09T08:49:47.852638Z"
},
{
"chainId": 80002,
"address": "0x9559e7958d4729cf7ed4d9ff58a3ae1704800500",
"name": "Prueba-0",
"type": "ERC721",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "https://www.google.com",
"description": "Collection description",
"ogImage": "https://metadata.sequence.app/projects/30957/collections/552/image.png",
"ogName": "",
"originChainId": 0,
"originAddress": "",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-08-20T15:53:47.072029Z"
},
{
"chainId": 80002,
"address": "0x2b1e643324b3c479aa0803664637586493c3c204",
"name": "Weapons",
"type": "ERC1155",
"symbol": "",
"logoURI": "https://metadata.sequence.app/projects/35598/collections/620/image.png",
"deployed": true,
"bytecodeHash": "0xed47946e266a404fc37371df08eefdebb2fccba9ebe60c6ca8b467e1dd554ae0",
"extensions": {
"link": "https://baseurl/collections/collectioname",
"description": "All weapons from Alternates can be found in this category.",
"ogImage": "https://metadata.sequence.app/projects/35598/collections/620/image.png",
"ogName": "Weapons 1155",
"originChainId": 0,
"originAddress": "0x2b1e643324b3c479aa0803664637586493c3c204",
"verified": true,
"verifiedBy": "token-directory"
},
"updatedAt": "2024-10-03T09:49:56.459325Z"
}
],
"page": {
"page": 2,
"pageSize": 30,
"more": true
}
}{
"error": "WebrpcEndpoint",
"code": 0,
"msg": "endpoint error",
"status": 400,
"cause": "<string>"
}{
"error": "WebrpcBadResponse",
"code": -5,
"msg": "bad response",
"status": 500,
"cause": "<string>"
}Authorizations
Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
Body
application/json
Was this page helpful?
⌘I