Skip to main content

IUniswapUniversalRouter

IUniswapUniversalRouter

execute

function execute(bytes commands, bytes[] inputs, uint256 deadline) external payable

Executes encoded commands along with provided inputs. Reverts if deadline has expired.

Parameters

NameTypeDescription
commandsbytesA set of concatenated commands, each 1 byte in length
inputsbytes[]An array of byte strings containing abi encoded inputs for each command
deadlineuint256The deadline by which the transaction must be executed

execute

function execute(bytes commands, bytes[] inputs) external payable