Solanaプライバシーリング
getNullifierQueueElements
ツリーのキューに入っている Nullifier をシーケンスの昇順で取得します。
POST
/
v1
/
spr
/
getNullifierQueueElements
getNullifierQueueElements
curl --request POST \
--url 'https://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getNullifierQueueElements",
"params": {
"treeAccount": "33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN",
"startSeq": 0,
"limit": 100
}
}
'import requests
url = "https://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key="
payload = {
"jsonrpc": "2.0",
"id": "1",
"method": "getNullifierQueueElements",
"params": {
"treeAccount": "33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN",
"startSeq": 0,
"limit": 100
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
jsonrpc: '2.0',
id: '1',
method: 'getNullifierQueueElements',
params: {
treeAccount: '33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN',
startSeq: 0,
limit: 100
}
})
};
fetch('https://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=', 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://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=",
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([
'jsonrpc' => '2.0',
'id' => '1',
'method' => 'getNullifierQueueElements',
'params' => [
'treeAccount' => '33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN',
'startSeq' => 0,
'limit' => 100
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key="
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getNullifierQueueElements\",\n \"params\": {\n \"treeAccount\": \"33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN\",\n \"startSeq\": 0,\n \"limit\": 100\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getNullifierQueueElements\",\n \"params\": {\n \"treeAccount\": \"33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN\",\n \"startSeq\": 0,\n \"limit\": 100\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getNullifierQueueElements\",\n \"params\": {\n \"treeAccount\": \"33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN\",\n \"startSeq\": 0,\n \"limit\": 100\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"jsonrpc": "2.0",
"error": {
"code": 123,
"message": "<string>",
"data": {}
},
"result": {
"context": {
"blockTime": 123,
"slot": 1
},
"elements": [
{
"seq": 1,
"value": "<string>"
}
]
}
}{
"jsonrpc": "2.0",
"id": "<string>",
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}{
"jsonrpc": "2.0",
"id": "<string>",
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}{
"jsonrpc": "2.0",
"id": "<string>",
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}キューのページネーション
このメソッドは Nullifier ツリーのメンテナンスをサポートします。startSeq から開始し、seq の昇順で result.elements を返します。開始位置は範囲に含まれます。各要素には、シーケンス番号と base58 でエンコードされた Nullifier value が含まれます。
次のページを読み取るには、startSeq を、最後に返された seq に 1 を加えた値に設定します。空のページが返された場合、現在インデックス化されている後続の要素はありません。
リクエストパラメータ
number
必須
返す要素の最大数です。1~1,000 の範囲で指定します。
number
デフォルト:"0"
seq がこの値以上である、キュー内の要素を返します。
string
必須
クエリ対象のツリーアカウントです。ステートツリーと Nullifier ツリーは 1 つのアカウントを共有します。
承認
Helius API キー。
ボディ
application/json
リクエストを識別するための ID。
JSON-RPC プロトコルのバージョン。
利用可能なオプション:
2.0 呼び出すメソッド。URL パスの最後のセグメントと一致する必要があります。
利用可能なオプション:
getNullifierQueueElements Show child attributes
Show child attributes
例:
{
"treeAccount": "33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN",
"startSeq": 0,
"limit": 100
}
このページは役に立ちましたか?
⌘I
getNullifierQueueElements
curl --request POST \
--url 'https://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getNullifierQueueElements",
"params": {
"treeAccount": "33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN",
"startSeq": 0,
"limit": 100
}
}
'import requests
url = "https://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key="
payload = {
"jsonrpc": "2.0",
"id": "1",
"method": "getNullifierQueueElements",
"params": {
"treeAccount": "33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN",
"startSeq": 0,
"limit": 100
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
jsonrpc: '2.0',
id: '1',
method: 'getNullifierQueueElements',
params: {
treeAccount: '33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN',
startSeq: 0,
limit: 100
}
})
};
fetch('https://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=', 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://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=",
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([
'jsonrpc' => '2.0',
'id' => '1',
'method' => 'getNullifierQueueElements',
'params' => [
'treeAccount' => '33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN',
'startSeq' => 0,
'limit' => 100
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key="
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getNullifierQueueElements\",\n \"params\": {\n \"treeAccount\": \"33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN\",\n \"startSeq\": 0,\n \"limit\": 100\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getNullifierQueueElements\",\n \"params\": {\n \"treeAccount\": \"33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN\",\n \"startSeq\": 0,\n \"limit\": 100\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://devnet.helius-rpc.com/v1/spr/getNullifierQueueElements?api-key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getNullifierQueueElements\",\n \"params\": {\n \"treeAccount\": \"33KVhbT4QtdQDrrrGwwThqD47Dh4Q6tA443t9jMNcWFN\",\n \"startSeq\": 0,\n \"limit\": 100\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"jsonrpc": "2.0",
"error": {
"code": 123,
"message": "<string>",
"data": {}
},
"result": {
"context": {
"blockTime": 123,
"slot": 1
},
"elements": [
{
"seq": 1,
"value": "<string>"
}
]
}
}{
"jsonrpc": "2.0",
"id": "<string>",
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}{
"jsonrpc": "2.0",
"id": "<string>",
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}{
"jsonrpc": "2.0",
"id": "<string>",
"error": {
"code": 123,
"message": "<string>",
"data": {}
}
}