Skip to content

@lelantos-org/sdk / index / Submitter

Interface: Submitter โ€‹

Defined in: @lelantos-org/sdk/dist/wallet/submitter.d.ts:16

Methods โ€‹

assets()? โ€‹

ts
optional assets(chainId): Promise<readonly ChainToken[]>;

Defined in: @lelantos-org/sdk/dist/wallet/submitter.d.ts:45

Assets registered on chainId, with their symbols, decimals and scales.

Optional for the same reason as estimate: a submitter written before this existed keeps working, and a wallet without one resolves assets by numeric id off the chain registry, exactly as it did before.

Parameters โ€‹

ParameterType
chainIdbigint

Returns โ€‹

Promise<readonly ChainToken[]>


estimate()? โ€‹

ts
optional estimate(chainId, kind): Promise<EstimateResponse>;

Defined in: @lelantos-org/sdk/dist/wallet/submitter.d.ts:37

What this relayer will charge to relay kind, and which assets it takes.

Optional so a submitter written before shielded fees existed keeps working: absent means the wallet builds no fee slot, which is correct for a relayer that subsidises gas and is the behaviour that predates this. A relayer that does charge and is spoken to through such a submitter answers the submit with a 402 instead โ€” the same failure as before.

Parameters โ€‹

ParameterType
chainIdbigint
kindEstimateKind

Returns โ€‹

Promise<EstimateResponse>


submit() โ€‹

ts
submit(payload): Promise<RelayerSubmitResponse>;

Defined in: @lelantos-org/sdk/dist/wallet/submitter.d.ts:18

Spend op. Relayer attaches the matching tree_update_batch SNARK + tpi.

Parameters โ€‹

ParameterType
payloadSubmitTransactPayload

Returns โ€‹

Promise<RelayerSubmitResponse>


submitDeposit()? โ€‹

ts
optional submitDeposit(payload): Promise<RelayerDepositResponse>;

Defined in: @lelantos-org/sdk/dist/wallet/submitter.d.ts:25

Deposit escrow, for a relayer that broadcasts on the wallet's behalf. Absent on HttpRelayerSubmitter, so the default wiring falls back to chain.submitDeposit. Encode the body with serializeSubmitDeposit from @lelantos-org/sdk/relayer.

Parameters โ€‹

ParameterType
payloadSubmitDepositPayload

Returns โ€‹

Promise<RelayerDepositResponse>


submitSwap()? โ€‹

ts
optional submitSwap(payload): Promise<RelayerSubmitResponse>;

Defined in: @lelantos-org/sdk/dist/wallet/submitter.d.ts:27

Atomic shielded swap. Required for Wallet.swap.

Parameters โ€‹

ParameterType
payloadSubmitSwapPayload

Returns โ€‹

Promise<RelayerSubmitResponse>

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub