Skip to main content
The token namespace emits SauceScript for token operations: ERC-20 on an EVM compile target, SPL Token on svm. token.Token is also installed as the default global Token.
This page covers sdk/dist/token/svm.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.

token.tokenProgramValueExpr

Function · sdk/dist/token/svm.d.ts The SauceScript expression for a SvmTokenProgramInput CPI-target VALUE. Defaults to "spl".

token.assertRefIsIdentifier

Function · sdk/dist/token/svm.d.ts

token.newSvmEmitState

Function · sdk/dist/token/svm.d.ts

token.accountParamType

Function · sdk/dist/token/svm.d.ts Account, Account<Writable>, Account<Signer> or Account<Writable, Signer>.

token.svmAccountParams

Function · sdk/dist/token/svm.d.ts Every account the program’s specs touch, in FIRST-USE order - the order a caller attaches them and the order the manifest reports. A ref shared across ops (owner/tokenProgram by design) appears once, holding the strongest role any op demanded of it.

token.svmAccountParamList

Function · sdk/dist/token/svm.d.ts The main(...) parameter list for specs, annotated with each slot’s required role.

token.svmTransferLines

Function · sdk/dist/token/svm.d.ts

token.svmApproveLines

Function · sdk/dist/token/svm.d.ts

token.svmBalanceExpression

Function · sdk/dist/token/svm.d.ts

token.accountRefsForTransfer

Function · sdk/dist/token/svm.d.ts The account manifest refs, in attach order, for transfer/approve with the given refs.

token.accountRefsForApprove

Function · sdk/dist/token/svm.d.ts

token.TOKEN_PROGRAM_BIGINT

Variable · sdk/dist/token/svm.d.ts Well-known SPL program ids, converted once to the bigint literal the identity check wants.

token.TOKEN_2022_PROGRAM_BIGINT

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

token.SvmEmitState

Interface · sdk/dist/token/svm.d.ts Per-program emission state: a token program is pinned at most once per ref per program.

token.SvmAccountParam

Interface · sdk/dist/token/svm.d.ts One main account parameter: the ref name and the role its annotation asserts.