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
返回压缩程序用于验证账户有效性的证明。
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedAccountProof",
"params": {
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
}
}
'{
"context": {
"slot": 100
},
"value": {
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"leafIndex": 1,
"merkleTree": "11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB",
"proof": [
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
],
"root": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"rootSeq": 1
}
}JSON-RPC 协议的版本。
2.0 用于标识请求的 ID。
用于检索 Solana 压缩账户证明数据的方法名称。
getCompressedAccountProof 成功检索到请求的 Solana 压缩账户的默克尔证明
显示 子属性
正在验证的 Solana 压缩账户的唯一哈希标识符
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
此压缩账户在 Solana Merkle 树结构中的位置索引
x >= 0存储此压缩账户的 Solana Merkle 树的地址
"11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB"
形成 Merkle 证明路径的哈希数组,用于验证此 Solana 压缩账户
一个 32 字节的加密哈希,以 base58 字符串表示,唯一标识一个 Solana 压缩账户。
包含此压缩账户的Solana默克尔树的根哈希
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
Solana默克尔树中根的序列号,用于版本跟踪
x >= 0此页面对您有帮助吗?
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedAccountProof",
"params": {
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
}
}
'{
"context": {
"slot": 100
},
"value": {
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"leafIndex": 1,
"merkleTree": "11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB",
"proof": [
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
],
"root": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"rootSeq": 1
}
}