Skip to main content
@eco-incorp/sauce/svm is the Solana side: staging a program through the kitchen, resolving accounts against the compiler’s account manifest, building and sending transactions, and verifying settle programs. Solana execution goes through the Kitchen client here; the SDK’s SVM route helpers emit a legacy instruction that the released engine does not accept.
This page covers sdk/dist/svm/token-extensions.d.ts.
Generated from the type declarations shipped in @eco-incorp/sauce 0.99.4. Each entry shows the package authors’ JSDoc and declaration for this SDK version. For runtime compatibility and deployed addresses, see architecture and deployments.

parseMintExtensions

Function · sdk/dist/svm/token-extensions.d.ts Parse the Token-2022 TLV extension region of a mint. Returns { blocking: [] } for a legacy 82-byte mint (or any non-T22 shape). For a Token-2022 mint, recognizes TransferFeeConfig and TransferHook (returned as structured fields) plus the un-routable set (NonTransferable, PermanentDelegate, ConfidentialTransferMint, MemoTransfer-required, and DefaultAccountState frozen), each pushed as a reason string into blocking.

getEpochFee

Function · sdk/dist/svm/token-extensions.d.ts The TransferFee active at epoch: newer if epoch >= newer.epoch, else older.

calcTransferFee

Function · sdk/dist/svm/token-extensions.d.ts The transfer fee withheld from amount under cfg at epoch, EXACTLY as spl-token-2022 computes it: 0 when bps or amount is 0, else min(maximum_fee, ceil(amount * bps / 10_000)).

netTransferAmount

Function · sdk/dist/svm/token-extensions.d.ts The amount the recipient actually receives: amount - calcTransferFee(...).

ONE_IN_BASIS_POINTS

Variable · sdk/dist/svm/token-extensions.d.ts Basis-points denominator (spl-token-2022 ONE_IN_BASIS_POINTS).

EXT_UNINITIALIZED

Variable · sdk/dist/svm/token-extensions.d.ts

EXT_TRANSFER_FEE_CONFIG

Variable · sdk/dist/svm/token-extensions.d.ts

EXT_CONFIDENTIAL_TRANSFER_MINT

Variable · sdk/dist/svm/token-extensions.d.ts

EXT_DEFAULT_ACCOUNT_STATE

Variable · sdk/dist/svm/token-extensions.d.ts

EXT_MEMO_TRANSFER

Variable · sdk/dist/svm/token-extensions.d.ts

EXT_NON_TRANSFERABLE

Variable · sdk/dist/svm/token-extensions.d.ts

EXT_PERMANENT_DELEGATE

Variable · sdk/dist/svm/token-extensions.d.ts

EXT_TRANSFER_HOOK

Variable · sdk/dist/svm/token-extensions.d.ts

TransferFee

Interface · sdk/dist/svm/token-extensions.d.ts One transfer-fee schedule, valid from epoch onward until superseded.

TransferFeeConfig

Interface · sdk/dist/svm/token-extensions.d.ts A mint’s TransferFeeConfig: the older and newer fee schedules. A caller picks the one effective at the current epoch (see getEpochFee) - the config carries both so a quote computed near an epoch boundary stays exact.

TransferHookInfo

Interface · sdk/dist/svm/token-extensions.d.ts A mint’s TransferHook extension (non-nil program only).

MintExtensions

Interface · sdk/dist/svm/token-extensions.d.ts Parsed mint extensions relevant to routing.