docs: Wrap RPC `getAccountInfo` at 80 char

This commit is contained in:
Trent Nelson 2020-11-09 15:54:56 -07:00 committed by Trent Nelson
parent c280d40b40
commit 1d7c00c915
1 changed files with 12 additions and 4 deletions

View File

@ -202,11 +202,19 @@ Returns all information associated with the account of provided Pubkey
#### Parameters:
- `<string>` - Pubkey of account to query, as base-58 encoded string
- `<object>` - (optional) Configuration object containing the following optional fields:
- `<object>` - (optional) Configuration object containing the following optional
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 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 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 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 "base58" or "base64" encoding.
- `encoding: <string>` - encoding for Account data, either "base58" (*slow*),
"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
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
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
"base58" or "base64" encoding.
#### Results: