Waqas pfp
Waqas
@worqas
can we do a USDC transaction instead of eth using the sdk ethProvider?
4 replies
0 recast
8 reactions

Angel - Not A Bot pfp
Angel - Not A Bot
@sayangel
Yeah except value is 0, to is the USDC contract address, and you add data param which is the transfer function encoded params consisting of to address and amount I can send a snippet when I’m at my PC
2 replies
0 recast
3 reactions

Joshua Hyde (he/him) pfp
Joshua Hyde (he/him)
@jrh3k5.eth
By calling the transfer function on the USDC contract, yes. More details about that function are here: https://docs.openzeppelin.com/contracts/2.x/api/token/erc20#IERC20-Transfer-address-address-uint256-
0 reply
0 recast
1 reaction

Fots pfp
Fots
@fots
you have to encode the tx params for usdc contract. then you need to use transfer function to send the usdc
0 reply
0 recast
1 reaction

Myza pfp
Myza
@joybrishti
No idea
0 reply
0 recast
0 reaction