Performs a deposit extrinsic transaction
const injector = await web3FromAddress(currentAccount.address);const unsub = await deposit(api, asset, amount, domainId, address) .signAndSend(currentAccount.address, { signer: injector.signer }, result => { handleTxExtrinsicResult(api, result, unsub, callbacks); });
The ApiPromise instance.
The XCM multi-asset ID type.
The amount to be deposited.
The domain ID of the destination address.
The destination address of the deposit transaction.
Generated using TypeDoc
Performs a deposit extrinsic transaction
Example
Returns