Metodo RPC getVoteAccounts
Restituisce le informazioni dell'account e lo stake associato per tutti gli account di voto nella bank corrente.
$ 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
Oggetto di configurazione contenente i seguenti campi:
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
Il campo result sarà un oggetto JSON di account current
e delinquent
, ognuno
contenente un array di oggetti JSON con i seguenti sottocampi:
Is this page helpful?