跳转到主要内容
POST
cURL
curl --request POST \
  --url 'https://mainnet.helius-rpc.com/?api-key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getMultipleNewAddressProofs",
  "params": [
    "11111117qkFjr4u54stuNNUR8fRF8dNhaP35yvANs"
  ]
}
'
{
  "context": {
    "slot": 100
  },
  "value": [
    {
      "address": "11111117qkFjr4u54stuNNUR8fRF8dNhaP35yvANs",
      "higherRangeAddress": "11111117qkFjr4u54stuNNUR8fRF8dNhaP35yvANs",
      "lowElementLeafIndex": 1,
      "lowerRangeAddress": "11111117qkFjr4u54stuNNUR8fRF8dNhaP35yvANs",
      "merkleTree": "11111117qkFjr4u54stuNNUR8fRF8dNhaP35yvANs",
      "nextIndex": 1,
      "proof": [
        "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
      ],
      "root": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
      "rootSeq": 1
    }
  ]
}

Authorizations

api-key
string
query
required

您的 Helius API 密钥。您可以在仪表板中免费获取一个。

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC 协议的版本。

可用选项:
2.0
id
string
default:1
required

用于标识请求的 ID。

method
enum<string>
default:getMultipleNewAddressProofs
required

要调用的方法名称。

可用选项:
getMultipleNewAddressProofs
params
string[]
required

以base58字符串表示的Solana公钥。

Response

成功从Solana压缩服务检索多个新地址证明

context
object
required
value
object[]
required