USDC as an EasyFee using @celo/celocli

Demo: USDC as an EasyFee using @celo/celocli

You can see USDC as an EasyFee (or “fee currency”) is live using the latest @celo/celocli release (v5.0.0):

# Install latest celocli
$ yarn global add @celo/celocli@5.0.0

# Check fee currencies on alfajores testnet
$ celocli network:whitelist --node alfajores

Available currencies:
0x4822e58de6f5e485eF90df51C41CE01721331dC0 - USDC (USDC) (adapted token: 0x2F25deB3848C207fc8E0c34035B3Ba7fC157602B)
# [...]

# Send 0.01 USDC using USDC as gas currency on alfajores
celocli transfer:erc20 \
--erc20Address 0x2F25deB3848C207fc8E0c34035B3Ba7fC157602B \
--from 0x303C22e6ef01CbA9d03259248863836CB91336D5 \
--to 0x5111A8caCa3366389EeaAad8a49027d573588BbB \
--value 0.01e6 \
--privateKey <PASTE-YOUR-PRIVATE-KEY> \
--gasCurrency 0x4822e58de6f5e485eF90df51C41CE01721331dC0 \
--node alfajores

# [...]
All checks passed
SendTransaction: transfer
txHash: 0xe6b1eda941c32f65c129e286f875afc1c265683d01e1232c696d9ebb1ce9174a
Sending Transaction: transfer... done

Transaction: explorer.celo.org/alfajores/tx/0xe6b1ed…