Solana 隐私环
getNullifierQueueElements
按序列升序检索树中排队的无效标识符。
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": {}
}
}队列分页
此方法用于维护无效标识符树。它从startSeq 开始(包含该值),按 seq 升序返回 result.elements。每个元素都包含其序列号以及经 base58 编码的无效标识符 value。
要读取下一页,请将 startSeq 设置为最后返回的 seq 加 1。空页面表示当前没有更多已编入索引的元素。
请求参数
number
必填
要返回的最大元素数量,取值范围为 1 到 1,000。
number
默认值:"0"
返回 seq 大于或等于此值的排队元素。
string
必填
要查询的树账户。状态树和无效标识符树共用一个账户。
授权
你的 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": {}
}
}