Solanaプライバシーリング
getShieldedTransactionsByNullifiers
指定された nullifier を使用したシールドトランザクションイベントを取得します。
POST
/
v1
/
spr
/
getShieldedTransactionsByNullifiers
getShieldedTransactionsByNullifiers
curl --request POST \
--url 'https://devnet.helius-rpc.com/v1/spr/getShieldedTransactionsByNullifiers?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getShieldedTransactionsByNullifiers",
"params": {
"nullifiers": [
"11111111111111111111111111111112"
],
"limit": 100
}
}
'import requests
url = "https://devnet.helius-rpc.com/v1/spr/getShieldedTransactionsByNullifiers?api-key="
payload = {
"jsonrpc": "2.0",
"id": "1",
"method": "getShieldedTransactionsByNullifiers",
"params": {
"nullifiers": ["11111111111111111111111111111112"],
"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: 'getShieldedTransactionsByNullifiers',
params: {nullifiers: ['11111111111111111111111111111112'], limit: 100}
})
};
fetch('https://devnet.helius-rpc.com/v1/spr/getShieldedTransactionsByNullifiers?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/getShieldedTransactionsByNullifiers?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' => 'getShieldedTransactionsByNullifiers',
'params' => [
'nullifiers' => [
'11111111111111111111111111111112'
],
'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/getShieldedTransactionsByNullifiers?api-key="
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getShieldedTransactionsByNullifiers\",\n \"params\": {\n \"nullifiers\": [\n \"11111111111111111111111111111112\"\n ],\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/getShieldedTransactionsByNullifiers?api-key=")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getShieldedTransactionsByNullifiers\",\n \"params\": {\n \"nullifiers\": [\n \"11111111111111111111111111111112\"\n ],\n \"limit\": 100\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://devnet.helius-rpc.com/v1/spr/getShieldedTransactionsByNullifiers?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\": \"getShieldedTransactionsByNullifiers\",\n \"params\": {\n \"nullifiers\": [\n \"11111111111111111111111111111112\"\n ],\n \"limit\": 100\n }\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": "1",
"result": {
"context": {
"slot": 4242,
"blockTime": 1730000000
},
"data": [],
"paginationToken": null
}
}{
"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 を使用して、その入力を使用したトランザクションを検索します。nullifier によってトランザクションが選択されます。result.data の各エントリには、選択された 1 件の Solana トランザクションのすべてのイベントと、その slot および signature が格納されます。
1~1,000 個の nullifier を指定します。ページの上限、継続トークン、増分読み取りについては、ページネーションと鮮度を参照してください。
リクエストパラメータ
object
スロットの境界です。追いついた状態で上限なしの読み取りを再開するには、
slot.gt を前のページの context.slot に設定します。object
読み取りのスロット境界です。指定した境界は AND 条件で結合されます。
number
このスロットより後のトランザクションのみを含めます。
number
このスロット以降のトランザクションのみを含めます。
number
このスロットより前のトランザクションのみを含めます。
number
このスロット以前のトランザクションのみを含めます。
number
デフォルト:"1000"
1 ページあたりの Solana トランザクションの最大数です。1~1,000 の範囲で指定します。
number
この読み取りに必要な、永続化済みのインデクサーの最小スロットです。インデクサーが遅れている場合は、JSON-RPC エラー -32016 を返します。
array
必須
使用済み入力との照合に使用する、Base58 でエンコードされた 32 バイトの nullifier です。
string
前のレスポンスで返された継続トークンです。同じ nullifier およびスロットフィルターとともに、変更せずに再度渡します。
承認
Helius API キーです。
ボディ
application/json
リクエストを識別するための ID です。
JSON-RPC プロトコルのバージョンです。
利用可能なオプション:
2.0 呼び出すメソッドです。URL パスの最後のセグメントと一致する必要があります。
利用可能なオプション:
getShieldedTransactionsByNullifiers Show child attributes
Show child attributes
例:
{
"nullifiers": ["11111111111111111111111111111112"],
"limit": 100
}
このページは役に立ちましたか?
⌘I
getShieldedTransactionsByNullifiers
curl --request POST \
--url 'https://devnet.helius-rpc.com/v1/spr/getShieldedTransactionsByNullifiers?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getShieldedTransactionsByNullifiers",
"params": {
"nullifiers": [
"11111111111111111111111111111112"
],
"limit": 100
}
}
'import requests
url = "https://devnet.helius-rpc.com/v1/spr/getShieldedTransactionsByNullifiers?api-key="
payload = {
"jsonrpc": "2.0",
"id": "1",
"method": "getShieldedTransactionsByNullifiers",
"params": {
"nullifiers": ["11111111111111111111111111111112"],
"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: 'getShieldedTransactionsByNullifiers',
params: {nullifiers: ['11111111111111111111111111111112'], limit: 100}
})
};
fetch('https://devnet.helius-rpc.com/v1/spr/getShieldedTransactionsByNullifiers?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/getShieldedTransactionsByNullifiers?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' => 'getShieldedTransactionsByNullifiers',
'params' => [
'nullifiers' => [
'11111111111111111111111111111112'
],
'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/getShieldedTransactionsByNullifiers?api-key="
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getShieldedTransactionsByNullifiers\",\n \"params\": {\n \"nullifiers\": [\n \"11111111111111111111111111111112\"\n ],\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/getShieldedTransactionsByNullifiers?api-key=")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"getShieldedTransactionsByNullifiers\",\n \"params\": {\n \"nullifiers\": [\n \"11111111111111111111111111111112\"\n ],\n \"limit\": 100\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://devnet.helius-rpc.com/v1/spr/getShieldedTransactionsByNullifiers?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\": \"getShieldedTransactionsByNullifiers\",\n \"params\": {\n \"nullifiers\": [\n \"11111111111111111111111111111112\"\n ],\n \"limit\": 100\n }\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": "1",
"result": {
"context": {
"slot": 4242,
"blockTime": 1730000000
},
"data": [],
"paginationToken": null
}
}{
"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": {}
}
}