Shred Delivery and Sender are now live! Get earliest access to raw Solana data and optimized transaction sending. Learn about Shred Delivery | Learn about Sender
Shred Delivery and Sender are now live! Get earliest access to raw Solana data and optimized transaction sending. Learn about Shred Delivery | Learn about Sender
返回一个单一的 ZK 证明,该证明由压缩程序用于验证给定账户的有效性以及新地址的创建可能性。
curl --request POST \
--url https://mainnet.helius-rpc.com/ \
--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": {},
"leafIndices": [
1
],
"leaves": [
"<string>"
],
"merkleTrees": [
"<string>"
],
"rootIndices": [
1
],
"roots": [
"<string>"
]
}
}
成功检索到 Solana 压缩账户的有效性证明
The response is of type object
.
curl --request POST \
--url https://mainnet.helius-rpc.com/ \
--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": {},
"leafIndices": [
1
],
"leaves": [
"<string>"
],
"merkleTrees": [
"<string>"
],
"rootIndices": [
1
],
"roots": [
"<string>"
]
}
}