Skip to main content
Non-trusty flow for depositing funds to the SparkWallet. Construct the transaction spending from an L1 wallet to the Spark address.

Method Signature

async advancedDeposit(txHex: string): Promise<TreeNode[]>

Parameters

txHex
string
required
The hex string of the transaction to deposit

Returns

nodes
TreeNode[]
required
The nodes resulting from the deposit

Example

const nodes = await wallet.advancedDeposit("transaction-hex-string");
console.log("Deposit nodes:", nodes);