Skip to main content
Added example raw contract call
Source Link
Maka
  • 1.4k
  • 1
  • 7
  • 19

If you can work out what is being sent you can recraft it and send the raw data with a normal transaction, just the steal the function sig and pad your values correctly.

CanExample raw transfer: raw transfer

In your case you can see they have exactInputSingle(), so you can guess that and other similar Uniswap functions are also in the multicalls, search signatures in the 4byte directory and break the calls down: searching function sig

CouldYou could also write your own abi for that function or take from a contract with the same function and arguments. Look up sig/arguments on 4byte directory.

Have done this with an unverified farming contract that was just passing pid, amount and address to withdraw. Something like:

Something like: a minimal abi

If you can work out what is being sent you can recraft it and send the raw data with a normal transaction, just the steal function sig and pad your values correctly.

Can see they have exactInputSingle(), so you can guess that and similar Uniswap functions are also in the multicalls, search signatures in the 4byte directory and break the calls down: searching function sig

Could also write your own abi for that function or take from a contract with the same function and arguments. Look up sig/arguments on 4byte directory.

Have done with an unverified farming contract that was just passing pid, amount and address to withdraw. Something like:

a minimal abi

If you can work out what is being sent you can recraft it and send the raw data with a normal transaction, just steal the function sig and pad your values correctly.

Example raw transfer: raw transfer

In your case you can see they have exactInputSingle(), so you can guess that and other similar Uniswap functions are also in the multicalls, search signatures in the 4byte directory and break the calls down: searching function sig

You could also write your own abi for that function or take from a contract with the same function and arguments. Look up sig/arguments on 4byte directory.

Have done this with an unverified farming contract that was just passing pid, amount and address to withdraw.

Something like: a minimal abi

Source Link
Maka
  • 1.4k
  • 1
  • 7
  • 19

If you can work out what is being sent you can recraft it and send the raw data with a normal transaction, just the steal function sig and pad your values correctly.

Can see they have exactInputSingle(), so you can guess that and similar Uniswap functions are also in the multicalls, search signatures in the 4byte directory and break the calls down: searching function sig

Could also write your own abi for that function or take from a contract with the same function and arguments. Look up sig/arguments on 4byte directory.

Have done with an unverified farming contract that was just passing pid, amount and address to withdraw. Something like:

a minimal abi