docs: deprecate jsonParsed for getProgramAccounts (#18816)

Co-authored-by: 0xab <0xalexbai@gmail.com>
This commit is contained in:
Josh 2021-07-21 15:14:25 -07:00 committed by GitHub
parent c70f8d26af
commit 548cf6a437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1646,8 +1646,10 @@ export type GetProgramAccountsFilter = MemcmpFilter | DataSizeFilter;
export type GetProgramAccountsConfig = { export type GetProgramAccountsConfig = {
/** Optional commitment level */ /** Optional commitment level */
commitment?: Commitment; commitment?: Commitment;
/** Optional encoding for account data (default base64) */ /** Optional encoding for account data (default base64)
encoding?: 'base64' | 'jsonParsed'; * To use "jsonParsed" encoding, please refer to `getParsedProgramAccounts` in connection.ts
* */
encoding?: 'base64';
/** Optional data slice to limit the returned account data */ /** Optional data slice to limit the returned account data */
dataSlice?: DataSlice; dataSlice?: DataSlice;
/** Optional array of filters to apply to accounts */ /** Optional array of filters to apply to accounts */