FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests
Method: POST query(view_access_key)
Method not allowed
返回有关给定帐户的单个访问密钥的信息。
如果密钥的许可为功能电池,它将返回更多详细信息,例如津贴,receiver_ID和method_names。
request_type
- 细绳
请求类型
finality
- 细绳
您应该选择该块或block_id。
block_id
- int或字符串
您应该选择该问题或最终性。
block_id param可以将块号或块哈希作为参数。
account_id
- 细绳
帐户的ID。
public_key
- 细绳
帐户的公钥。
curl --location --request POST 'https://near.getblock.io/mainnet' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "query", "params": ["view_access_key", "final", null, null, null], "id": "getblock.io"}'
{ "result": "null", "id": "getblock.io", "status_code": 405, "message": "Method not allowed" }