docs: Consistently use "jsonParsed" param for RPC `getAccountInfo`
This commit is contained in:
parent
1d7c00c915
commit
87924c7111
|
@ -206,11 +206,11 @@ Returns all information associated with the account of provided Pubkey
|
|||
fields:
|
||||
- (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment)
|
||||
- `encoding: <string>` - encoding for Account data, either "base58" (*slow*),
|
||||
"base64", or jsonParsed". "base58" is limited to Account data of less than 128
|
||||
"base64", or "jsonParsed". "base58" is limited to Account data of less than 128
|
||||
bytes. "base64" will return base64 encoded data for Account data of any size.
|
||||
Parsed-JSON encoding attempts to use program-specific state parsers to return
|
||||
"jsonParsed" encoding attempts to use program-specific state parsers to return
|
||||
more human-readable and explicit account state data. If parsed-JSON is requested
|
||||
but a parser cannot be found, the field falls back to base64 encoding, detectable
|
||||
but a parser cannot be found, the field falls back to "base64" encoding, detectable
|
||||
when the `data` field is type `<string>`.
|
||||
- (optional) `dataSlice: <object>` - limit the returned account data using the
|
||||
provided `offset: <usize>` and `length: <usize>` fields; only available for
|
||||
|
@ -280,7 +280,7 @@ curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
|
|||
"params": [
|
||||
"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA",
|
||||
{
|
||||
"encoding": "json"
|
||||
"encoding": "jsonParsed"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue