Build
Frontend Tutorials
toolkit
Function.sendzeta

@zetachain/toolkit / sendZeta

sendZeta(this, options): Promise<any>

Initiates a cross-chain transfer of ZETA tokens from the source chain to the destination chain.

this: ZetaChainClient

ZetaChainClient instance.

options

Send ZETA options.

options.amount: string

Amount of ZETA tokens to be sent in human readable form.

options.chain: string

Source chain label.

options.destination: string

Destination chain label.

options.gasLimit?: Number = 500000

Optional gas limit on the destination chain.

options.recipient: string

Optional recipient address for the token transfer. If not provided, the token transfer is made to the signer's address.

Promise<any>

A promise that resolves with the transaction details upon success.

sendZeta.ts:25 (opens in a new tab)