getVoteAccounts RPC 메소드
현재 뱅크에 있는 모든 투표 계정에 대한 계정 정보와 관련 스테이크를 반환합니다.
$ 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
다음 필드를 포함하는 구성 객체:
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
result 필드는 current
및 delinquent
계정의 JSON 객체이며, 각각 다음과 같은
하위 필드를 포함하는 JSON 객체 배열을 포함합니다:
Is this page helpful?