getBalance RPC 메소드
제공된 Pubkey의 계정 lamport 잔액을 반환합니다
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBalance",> "params": [> "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",> {> "commitment": "finalized"> }> ]> }> '
params
stringrequired
조회할 계정의 Pubkey, base-58로 인코딩된 문자열입니다.
objectoptional
구성 객체입니다.
result
Response
{"jsonrpc": "2.0","result": {"context": { "slot": 1 },"value": 0},"id": 1}
u64
value 필드가 잔액으로 설정된 RpcResponse JSON 객체입니다.
Is this page helpful?