Metode RPC getVoteAccounts
Mengembalikan info akun dan stake terkait untuk semua akun voting di bank saat ini.
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getVoteAccounts",> "params": [> {> "commitment": "finalized",> "votePubkey": "i7NyKBMJCA9bLM2nsGyAGCKHECuR2L5eh4GqFciuwNT"> }> ]> }> '
params
objectoptional
Objek konfigurasi yang berisi bidang-bidang berikut:
result
Response
{"jsonrpc": "2.0","result": {"current": [{"activatedStake": 38263229364446900,"commission": 95,"epochCredits": [[902, 1383125544, 1376213656],[903, 1390037304, 1383125544],[904, 1396949288, 1390037304],[905, 1403861272, 1396949288],[906, 1406766600, 1403861272]],"epochVoteAccount": true,"lastVote": 391573587,"nodePubkey": "dv2eQHeP4RFrJZ6UeiZWoc3XTtmtZCUKxxCApCDcRNV","rootSlot": 391573556,"votePubkey": "i7NyKBMJCA9bLM2nsGyAGCKHECuR2L5eh4GqFciuwNT"}],"delinquent": []},"id": 1}
object
Bidang hasil akan berupa objek JSON dari akun current
dan delinquent
,
masing-masing berisi array objek JSON dengan sub bidang berikut:
Is this page helpful?