We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7ed86a commit 7d05857Copy full SHA for 7d05857
src/connection.ts
@@ -2871,14 +2871,17 @@ export class Connection {
2871
*/
2872
async getParsedAccountInfo(
2873
publicKey: PublicKey,
2874
- commitment?: Commitment,
+ commitmentOrConfig?: Commitment | GetAccountInfoConfig,
2875
): Promise<
2876
RpcResponseAndContext<AccountInfo<Buffer | ParsedAccountData> | null>
2877
> {
2878
+ const {commitment, config} =
2879
+ extractCommitmentFromConfig(commitmentOrConfig);
2880
const args = this._buildArgs(
2881
[publicKey.toBase58()],
2882
commitment,
2883
'jsonParsed',
2884
+ config,
2885
);
2886
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
2887
const res = create(
0 commit comments