ord_getChildren RPC Method - Ordinals & Runes API
Please note that this method requires the Ordinals & Runes API add-on enabled on your QuickNode endpoint.
Parameters
InscriptionID
string
REQUIRED
Loading...
pageIndex
integer
REQUIRED
Loading...
Returns
ids
array
Loading...
more
boolean
Loading...
page
integer
Loading...
Request
curl --location 'https://docs-demo.btc.quiknode.pro/' \ --header 'Content-Type: application/json' \ --data '{ "method": "ord_getChildren", "params": [ "36f0272e28bf6595199d02cb29013b91d9b9b9e250d270f32270506dcd1262bai0", 0 ], "id": 1, "jsonrpc": "2.0" }'
const myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); const raw = JSON.stringify({ "method": "ord_getChildren", "params": [ "36f0272e28bf6595199d02cb29013b91d9b9b9e250d270f32270506dcd1262bai0", 0 ], "id": 1, "jsonrpc": "2.0" }); const requestOptions = { method: "POST", headers: myHeaders, body: raw, redirect: "follow" }; fetch("https://docs-demo.btc.quiknode.pro/", requestOptions) .then((response) => response.text()) .then((result) => console.log(result)) .catch((error) => console.error(error));
import requests import json url = "https://docs-demo.btc.quiknode.pro/" payload = json.dumps({ "method": "ord_getChildren", "params": [ "36f0272e28bf6595199d02cb29013b91d9b9b9e250d270f32270506dcd1262bai0", 0 ], "id": 1, "jsonrpc": "2.0" }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
require "uri" require "json" require "net/http" url = URI("https://docs-demo.btc.quiknode.pro/") http = Net::HTTP.new(url.host, url.port); request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "method": "ord_getChildren", "params": [ "36f0272e28bf6595199d02cb29013b91d9b9b9e250d270f32270506dcd1262bai0", 0 ], "id": 1, "jsonrpc": "2.0" }) response = http.request(request) puts response.read_body
Response
{ "id": 1, "result": { "ids": [ "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi0", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi1", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi2", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi3", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi4", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi5", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi6", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi7", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi8", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi9", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi10", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi11", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi12", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi13", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi14", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi15", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi16", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi17", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi18", "cfa58b32a43e55d66c37c67f1eb5d257a8252630e280baad78546d4758272fcfi19" ], "more": false, "page": 0 }, "jsonrpc": "2.0" }
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free