@zetachain/toolkit / evmCall
Function: evmCall()
evmCall(
this
,args
):Promise
<ContractTransaction
>
Parameters
• this: ZetaChainClient
The instance of the ZetaChain client that contains the signer information.
• args
The function arguments.
• args.gatewayEvm?: string
The address of the EVM gateway contract.
• args.receiver: string
The address of the target contract or account to call on the EVM chain.
• args.revertOptions: RevertOptions
Options to handle call reversion, including revert address, message, and gas limit for the revert scenario.
• args.txOptions: TxOptions
Transaction options such as gasLimit, gasPrice, etc.
• args.types: string
[]
JSON string representing the types of the function parameters (e.g., ["uint256", "address"]).
• args.values: ParseAbiValuesReturnType
The values to be passed to the function (should match the types).
Returns
Promise
<ContractTransaction
>
- Returns the transaction object.
Function
evmCall
Description
Calls a universal app contract on ZetaChain.