getAccountInfo RPC 메소드

제공된 Pubkey의 계정과 관련된 모든 정보를 반환합니다

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getAccountInfo",
> "params": [
> "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
> {
> "commitment": "finalized",
> "encoding": "base58"
> }
> ]
> }
> '

params

stringrequired

조회할 계정의 pubkey, base-58로 인코딩된 문자열 형태입니다.

objectoptional

설정 객체입니다.

result

Response
{
"jsonrpc": "2.0",
"result": {
"context": { "apiVersion": "2.0.15", "slot": 341197053 },
"value": {
"data": ["", "base58"],
"executable": false,
"lamports": 88849814690250,
"owner": "11111111111111111111111111111111",
"rentEpoch": 18446744073709551615,
"space": 0
}
},
"id": 1
}
object | null

요청된 계정이 존재하지 않으면 결과는 null입니다. 그렇지 않으면 다음을 포함하는 객체가 반환됩니다:

Is this page helpful?