New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
返回一个单一的 ZK 证明,该证明由压缩程序用于验证给定账户的有效性以及新地址的创建可能性。
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getValidityProof",
"params": {
"hashes": [
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
],
"newAddressesWithTrees": [
{
"address": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
"tree": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
}
]
}
}
'{
"context": {
"slot": 100
},
"value": {
"compressedProof": {
"a": "<string>",
"b": "<string>",
"c": "<string>"
},
"leafIndices": [
1
],
"leaves": [
"<string>"
],
"merkleTrees": [
"<string>"
],
"rootIndices": [
1
],
"roots": [
"<string>"
]
}
}JSON-RPC 协议的版本。
2.0 用于标识请求的 ID。
要调用的方法名称。
getValidityProof 显示 子属性
用于验证 Solana 压缩账户的加密哈希数组
一个 32 字节的加密哈希,以 base58 字符串表示,用于 Solana 压缩账户验证。
Solana 账户地址及其关联的默克尔树数组,用于验证
显示 子属性
通过零知识证明验证的 Solana 账户地址
"11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
存储压缩 Solana 账户的 Merkle 树地址
"11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
成功检索到 Solana 压缩账户的有效性证明
显示 子属性
Solana默克尔树中压缩账户叶子的索引
x >= 0用于验证 Solana 压缩账户的叶节点数据
包含压缩账户的 Solana Merkle 树的地址
Solana Merkle 树中压缩账户根的索引
x >= 0Solana Merkle 树中压缩账户的根哈希
此页面对您有帮助吗?
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getValidityProof",
"params": {
"hashes": [
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
],
"newAddressesWithTrees": [
{
"address": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
"tree": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
}
]
}
}
'{
"context": {
"slot": 100
},
"value": {
"compressedProof": {
"a": "<string>",
"b": "<string>",
"c": "<string>"
},
"leafIndices": [
1
],
"leaves": [
"<string>"
],
"merkleTrees": [
"<string>"
],
"rootIndices": [
1
],
"roots": [
"<string>"
]
}
}