Arcium LogoArcium TS SDK Docs

getExecutingPoolAccData

getExecutingPoolAccData(provider, executingPoolAccPubkey): Promise<ExecpoolAcc>

Fetches and decodes the executing pool account data for any pool size.

Parameters

ParameterTypeDescription
providerAnchorProviderThe Anchor provider to use for fetching accounts.
executingPoolAccPubkeyPublicKeyThe public key of the executing pool account.

Returns

Promise<ExecpoolAcc>

The decoded executing pool account data.

Throws

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