getMempoolAccData
getMempoolAccData(
provider,mempoolAccPubkey):Promise<MempoolAcc>
Fetches and decodes the mempool account data 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
Promise<MempoolAcc>
The decoded mempool account data.
Throws
Error if the account cannot be fetched or the discriminator is unknown.