From 548cf6a4372fe02df7431e2d9bca6dbfcaebd0a4 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 21 Jul 2021 15:14:25 -0700 Subject: [PATCH] docs: deprecate jsonParsed for getProgramAccounts (#18816) Co-authored-by: 0xab <0xalexbai@gmail.com> --- web3.js/src/connection.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index 9c19dc056e..788d5ccc12 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -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 */