@zetachain/toolkit / sendZeta
Function: sendZeta()
sendZeta(
this
,options
):Promise
<any
>
Initiates a cross-chain transfer of ZETA tokens from the source chain to the destination chain.
Parameters
• 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.
Returns
Promise
<any
>
A promise that resolves with the transaction details upon success.