axelar-gmp-sdk-solidity

Solidity API

IContractExecutor

This interface defines the execute function used to interact with external contracts.

executeContract

function executeContract(address target, bytes callData, uint256 nativeValue) external payable returns (bytes)

Executes a call to an external contract.

Execution logic is left up to the implementation.

Parameters

Name Type Description
target address The address of the contract to be called
callData bytes The calldata to be sent
nativeValue uint256 The amount of native token (e.g., Ether) to be sent along with the call

Return Values

Name Type Description
[0] bytes bytes The data returned from the executed call