Skip to main content
@eco-incorp/sauce/svm is the Solana side: the client (createSauceSvmClient), clusters, PDAs, account resolution against the compiler’s account manifest, Kitchen and engine instructions, transactions and sending, token accounts, and compute planning for @sauce/router’s Solana venues. @eco-incorp/sauce/svm/engine exports the engine’s wire format and instruction builders, @eco-incorp/sauce/svm/verify verifies settle programs and engine CPI data, and @eco-incorp/sauce/svm/engine-artifacts (Node only) returns file paths to the packaged engine and Kitchen binaries.
Generated from the type declarations of @eco-incorp/sauce.

routerSvmAccountOrder

Function · @eco-incorp/sauce/svm The accounts of venue’s swap instruction, in its order. <venue>Data and <venue>Cpi take them in this order; the program is not among them (Phoenix’s swap also takes its own program, first, as program).

routerSvmAccounts

Function · @eco-incorp/sauce/svm routerSvmAccountOrder’s accounts, each with its value from refs.

ROUTER_SVM_VENUES

Variable · @eco-incorp/sauce/svm The venues @sauce/router’s Solana arm swaps, by the recipes’ venue names: at a limit, then an exact input.

RouterSvmVenue

Type · @eco-incorp/sauce/svm

RouterSvmExactInVenue

Type · @eco-incorp/sauce/svm The venues @sauce/router swaps an exact input at, with no price limit.

RouterSvmAccountRole

Interface · @eco-incorp/sauce/svm One account of a swap instruction: its name, and whether the instruction writes it and it signs.

RouterSvmAccount

Interface · @eco-incorp/sauce/svm One account of a swap instruction, with the caller’s value for it.

RouterSvmAccountOptions

Interface · @eco-incorp/sauce/svm