internet-computer-protocol / evm-rpc-canister

Interact with EVM blockchains from the Internet Computer.
https://internetcomputer.org/docs/current/developer-docs/multi-chain/ethereum/evm-rpc/overview
Apache License 2.0
63 stars 13 forks source link

USDT transactions. #177

Open aliscie opened 8 months ago

aliscie commented 8 months ago

I have a canister where I want to enable my users to deposit and withdraw usdt. How can I do that using the EVM?

rvanasa commented 8 months ago

Hi @aliscie,

This is possible using custom eth_call RPC requests. Here is the relevant documentation for sending custom requests with the EVM RPC canister.

Alternatively, if you're familiar with Rust, the ic-eth-starter project may also be a useful resource. Here is the relevant code which you could adapt for ERC-20 tokens such as USDT.

Hopefully this helps. Cheers!