Build
Frontend Tutorials
toolkit
Function.evmcall

@zetachain/toolkit / evmCall

evmCall(this, args): Promise<ContractTransaction>

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).

Promise<ContractTransaction>

  • Returns the transaction object.

evmCall

Calls a universal app contract on ZetaChain.

evmCall.ts:29 (opens in a new tab)