Skip to content

Commit

Permalink
docs: deprecate jsonParsed for getProgramAccounts (solana-labs#18816)
Browse files Browse the repository at this point in the history
Co-authored-by: 0xab <[email protected]>
  • Loading branch information
oJshua and 0xalexbai authored Jul 21, 2021
1 parent c70f8d2 commit 548cf6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web3.js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1646,8 +1646,10 @@ export type GetProgramAccountsFilter = MemcmpFilter | DataSizeFilter;
export type GetProgramAccountsConfig = {
/** Optional commitment level */
commitment?: Commitment;
/** Optional encoding for account data (default base64) */
encoding?: 'base64' | 'jsonParsed';
/** Optional encoding for account data (default base64)
* To use "jsonParsed" encoding, please refer to `getParsedProgramAccounts` in connection.ts
* */
encoding?: 'base64';
/** Optional data slice to limit the returned account data */
dataSlice?: DataSlice;
/** Optional array of filters to apply to accounts */
Expand Down

0 comments on commit 548cf6a

Please sign in to comment.