Skip to main content

Interface: SolanaSettlementContext

Defined in: solana-client/src/writer.ts:79

Solana's OvercastLayer.settlementContext: the extra accounts a settlement layer reads to resolve a call. They become the instruction's remaining_accounts, which the core program forwards verbatim to the layer's can_exercise / can_redeem CPI.

A layer reads them positionally — the oracle layer takes [0] as the collateral leg's PriceUpdateV2 and [1] as the settlement leg's — so order matters and a missing account is a layer-side error, not a client one. Prefer OvercastSettlementLayer.buildContext over assembling the list by hand.

All are read-only and none sign: a layer that resolved a settlement by mutating an account would be resolving more than a settlement decision.

Properties

accounts

accounts: Bytes32[];

Defined in: solana-client/src/writer.ts:80