メインコンテンツへスキップ
POST
/
rpc
/
Metadata
/
SearchTokens
SearchTokens
curl --request POST \
  --url https://metadata.sequence.app/rpc/Metadata/SearchTokens \
  --header 'Content-Type: application/json' \
  --header 'X-Access-Key: <api-key>' \
  --data '
{
  "chainID": "80002",
  "q": "skyweaver"
}
'
import requests

url = "https://metadata.sequence.app/rpc/Metadata/SearchTokens"

payload = {
    "chainID": "80002",
    "q": "skyweaver"
}
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({chainID: '80002', q: 'skyweaver'})
};

fetch('https://metadata.sequence.app/rpc/Metadata/SearchTokens', 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/SearchTokens",
  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([
    'chainID' => '80002',
    'q' => 'skyweaver'
  ]),
  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/SearchTokens"

	payload := strings.NewReader("{\n  \"chainID\": \"80002\",\n  \"q\": \"skyweaver\"\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/SearchTokens")
  .header("X-Access-Key", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"chainID\": \"80002\",\n  \"q\": \"skyweaver\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://metadata.sequence.app/rpc/Metadata/SearchTokens")

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  \"chainID\": \"80002\",\n  \"q\": \"skyweaver\"\n}"

response = http.request(request)
puts response.read_body
{
  "tokenMetadata": [
    {
      "tokenId": "107",
      "name": "Season 0 Floof 107",
      "description": "",
      "image": "https://nft.flooftopia.org/images/Floof_80001_107.png",
      "properties": {
        "000_season": {
          "name": "season",
          "value": "Season 0"
        },
        "005_floofId": {
          "name": "Floof ID",
          "value": "107"
        },
        "010_head_indices_shape": {
          "name": "Head Shape",
          "value": "Egg"
        },
        "015_head_indices_nose": {
          "name": "Nose",
          "value": "Dog Nose"
        },
        "020_head_indices_mouth": {
          "name": "Mouth",
          "value": "Smiley"
        },
        "025_head_indices_ears": {
          "name": "Ears",
          "value": "Curly Loppy"
        },
        "030_head_shape": {
          "name": "Head Shape Options",
          "value": [
            4,
            2,
            -8
          ]
        },
        "035_head_eye": {
          "name": "Eye Options",
          "value": [
            2,
            21,
            -38
          ]
        },
        "040_head_eyeColor": {
          "name": "Eye Color",
          "value": "(R=0.018500,G=0.001214,B=0.009721,A=1.000000)"
        },
        "045_head_nose": {
          "name": "Nose Options",
          "value": [
            -22,
            -6
          ]
        },
        "050_head_mouth": {
          "name": "Mouth Options",
          "value": [
            -61,
            61
          ]
        },
        "055_head_ears": {
          "name": "Ears Options",
          "value": [
            19,
            14,
            4
          ]
        },
        "060_fur_indices_length": {
          "name": "Fur Length",
          "value": "Short"
        },
        "065_fur_indices_pattern": {
          "name": "Fur Pattern",
          "value": "Patches"
        },
        "070_fur_color": {
          "name": "Fur Color",
          "value": "(R=0.361307,G=0.155926,B=0.012286,A=1.000000)"
        },
        "075_fur_color_pattern": {
          "name": "Pattern Color",
          "value": "(R=0.016807,G=0.001214,B=0.005182,A=1.000000)"
        },
        "080_fur_pattern": {
          "name": "Fur Pattern Options",
          "value": [
            -45,
            50
          ]
        },
        "085_extras_indices_attachments": {
          "name": "Attachment",
          "value": "Deer Antlers"
        },
        "090_extras_indices_tail": {
          "name": "Tail",
          "value": "Fox Tail"
        },
        "095_extras_attachments": {
          "name": "Attachment Options",
          "value": [
            -4,
            -18,
            -16
          ]
        },
        "100_extras_tail": {
          "name": "Tail Options",
          "value": [
            -61,
            14
          ]
        },
        "200_background_sky": {
          "name": "Background Sky",
          "value": "Blue Sky"
        },
        "205_background_middle": {
          "name": "Background Middle",
          "value": "Mountains"
        },
        "210_background_ground": {
          "name": "Background Ground",
          "value": "Grassy Field"
        },
        "215_background_item_l": {
          "name": "Background Left Item",
          "value": "Present"
        },
        "220_background_item_r": {
          "name": "Background Right Item",
          "value": "Skyweaver"
        }
      },
      "attributes": null,
      "external_url": "https://www.flooftopia.org",
      "decimals": 0,
      "updatedAt": "2023-11-16T19:48:51.110477Z"
    }
  ],
  "nextPage": {
    "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>"
}

承認

X-Access-Key
string
header
必須

Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI

ボディ

application/json
q
string
chainID
string
page
object

レスポンス

OK

tokenMetadata
object[]

[]TokenMetadata

nextPage
object