Arcium LogoArcium TS SDK Docs

getMempoolAccData

getMempoolAccData(provider, mempoolAccPubkey): Promise<MempoolAcc>

Fetches and decodes the mempool account data for any mempool account size.

Parameters

ParameterTypeDescription
providerAnchorProviderThe Anchor provider to use for fetching accounts.
mempoolAccPubkeyPublicKeyThe public key of the mempool account.

Returns

Promise<MempoolAcc>

The decoded mempool account data.

Throws

Error if the account cannot be fetched or the discriminator is unknown.