0xcalldata

swap(uint256,uint256,address,bytes)

swap(uint256,uint256,address,bytes) is a function in the Uniswap V2 Pair ABI (4-byte selector 0x022c0d9f). It takes 4 parameters. Encode its calldata from typed inputs, or paste calldata to decode it.

Selector
0x022c0d9f
Mutability
nonpayable

Parameters

NameType
amount0Outuint256
amount1Outuint256
toaddress
databytes

Example calldata

0x022c0d9f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000

Other Uniswap V2 Pair functions