getMempoolAccInfo
getMempoolAccInfo(
provider,mempoolAccPubkey):Promise<MempoolAccount>
Fetches and decodes the mempool account info for any mempool account size.
Parameters
| Parameter | Type | Description |
|---|---|---|
provider | AnchorProvider | The Anchor provider to use for fetching accounts. |
mempoolAccPubkey | PublicKey | The public key of the mempool account. |
Returns
The decoded mempool account info.
Throws
Error if the account cannot be fetched or the discriminator is unknown.