Skip to main content
Archived documentation for @eco-incorp/sauce@1.0.0. Install this release with npm install --save-exact @eco-incorp/sauce@1.0.0. Links to guides outside this tab open current documentation.
@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.

simulateExecute

Function ยท @eco-incorp/sauce/svm Simulates a signed execute transaction. A Custom(0) error from the execute instruction is a sauce REVERT: the revert payload rides in returnData and surfaces as revert.payload. All other engine failures map to the same InvalidInstructionData instruction error and are NOT distinguishable from each other except by reading logs. Failures of other instructions (prepends) surface as plain err - never as revert.

sendExecute

Function ยท @eco-incorp/sauce/svm Sends a signed execute transaction, confirms it, and reads back return data from the transaction meta.

recommendedComputeUnitLimit

Function ยท @eco-incorp/sauce/svm Simulated units padded 20% (rounded up), capped at the engineโ€™s 1.4M CU budget.

SimulateExecuteResult

Interface ยท @eco-incorp/sauce/svm

SimulatedAccount

Interface ยท @eco-incorp/sauce/svm An account as a simulation leaves it.

SimulateExecuteOptions

Interface ยท @eco-incorp/sauce/svm

SendExecuteInput

Interface ยท @eco-incorp/sauce/svm

SendExecuteResult

Interface ยท @eco-incorp/sauce/svm