0

I am trying to send an erc-20 token from an Optimism Safe to another wallet using CLI. I am trying to modify the gas allowance in the "send erc-20" function like this:

send_erc20 0x7F5c764cBc14f9669B88837ca1490cCa17c31607 0x1dE****ab4Bc 1 --gas 600000 --gasPrice 20

But I get the "unrecognized argument error":

: error: unrecognized arguments: --gas 600000 --gasPrice 20

What am I doing wrong? How can I modify the gas allowance to send the token to another wallet? Any help would be much appreciated.

8
  • 1
    The error message seems quite clear. Have you tried dropping the gas options?
    – mikheevm
    Commented Apr 30, 2023 at 18:36
  • 1
    then it means you don't have enough funds to pay the gas
    – mikheevm
    Commented May 2, 2023 at 13:52
  • 1
    That's not enough info to debug, it would be helpful to see the transaction. One potential reason is that you're passing the value without token decimals (USDC has 6 decimals, so 1 USDC would be 1 (amount) * 10^6 (decimal amount) = 1000000)
    – mikheevm
    Commented May 3, 2023 at 12:30
  • 1
    It looks like in your original command, the order of addresses is wrong, first should be the recipient address, then the token address and then the amount, according to the docs here: github.com/5afe/safe-cli
    – mikheevm
    Commented May 3, 2023 at 13:00
  • 1
    so it would be send_erc20 <recipient> <token_address> 350933508
    – mikheevm
    Commented May 3, 2023 at 13:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.