From 1d7c00c915346f56394c7b44da73aa6ec85a3c76 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Mon, 9 Nov 2020 15:54:56 -0700 Subject: [PATCH] docs: Wrap RPC `getAccountInfo` at 80 char --- docs/src/developing/clients/jsonrpc-api.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/src/developing/clients/jsonrpc-api.md b/docs/src/developing/clients/jsonrpc-api.md index bac59ab936..3195d7c524 100644 --- a/docs/src/developing/clients/jsonrpc-api.md +++ b/docs/src/developing/clients/jsonrpc-api.md @@ -202,11 +202,19 @@ Returns all information associated with the account of provided Pubkey #### Parameters: - `` - Pubkey of account to query, as base-58 encoded string -- `` - (optional) Configuration object containing the following optional fields: +- `` - (optional) Configuration object containing the following optional +fields: - (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment) - - `encoding: ` - 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 ``. - - (optional) `dataSlice: ` - limit the returned account data using the provided `offset: ` and `length: ` fields; only available for "base58" or "base64" encoding. + - `encoding: ` - 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 ``. + - (optional) `dataSlice: ` - limit the returned account data using the +provided `offset: ` and `length: ` fields; only available for +"base58" or "base64" encoding. #### Results: