feat: support minContextSlot in getParsedAccountInfo method (#27084)
This commit is contained in:
parent
ac91cdab74
commit
7e7785fc19
|
@ -2871,14 +2871,17 @@ export class Connection {
|
|||
*/
|
||||
async getParsedAccountInfo(
|
||||
publicKey: PublicKey,
|
||||
commitment?: Commitment,
|
||||
commitmentOrConfig?: Commitment | GetAccountInfoConfig,
|
||||
): Promise<
|
||||
RpcResponseAndContext<AccountInfo<Buffer | ParsedAccountData> | null>
|
||||
> {
|
||||
const {commitment, config} =
|
||||
extractCommitmentFromConfig(commitmentOrConfig);
|
||||
const args = this._buildArgs(
|
||||
[publicKey.toBase58()],
|
||||
commitment,
|
||||
'jsonParsed',
|
||||
config,
|
||||
);
|
||||
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
|
||||
const res = create(
|
||||
|
|
Loading…
Reference in New Issue