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
简体中文
返回当前银行中所有投票账户的账户信息和相关权益。
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getVoteAccounts", "params": [ { "votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw" } ] }'
{ "jsonrpc": "2.0", "id": "1", "result": { "current": [ { "votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw", "nodePubkey": "B97CCUW3AEZFGy6uUg6zUdnNYvnVq5VG8PUtb2HayTDD", "activatedStake": 42, "epochVoteAccount": true, "commission": 0, "lastVote": 147, "epochCredits": [ [ 1, 64, 0 ], [ 2, 192, 64 ] ], "rootSlot": 42 } ], "delinquent": [] } }
您的Helius API密钥。您可以在仪表板中免费获取一个。
JSON-RPC 协议版本。
2.0
"2.0"
请求的唯一标识符。
"1"
要调用的 RPC 方法名称。
getVoteAccounts
"getVoteAccounts"
用于过滤投票账户的可选配置对象。
Show child attributes
成功检索到投票账户。
与请求匹配的标识符。
当前和失职投票账户的列表。
此页面对您有帮助吗?