简体   繁体   English

普通以太坊地址可以接收 USDC 代币吗?

[英]Can a normal ethereum address receive an USDC token?

我想收到一些美元硬币,因为需要这个特殊的钱包,或者任何以太坊地址都可以收到它?

是的,这是可能的,因为 USDC 遵循 ERC20 标准,因此您不需要特殊的钱包。

ERC20-tokens have an "abi", which defines the functions that ERC20-tokens use. ERC20 代币有一个“abi”,它定义了 ERC20 代币使用的功能。 The abi on https://etherscan.io/address/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48#code is for a Proxy Contract and is not ERC20 compliant, as it does not define a "transfer" function. https://etherscan.io/address/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48#code上的 abi 用于代理合约,不符合 ERC20,因为它没有定义“转移”功能。

To still be able to send USDC tokens from an address, you simply gotta define the transfer function in the abi when creating the transaction.为了仍然能够从地址发送 USDC 代币,您只需在创建交易时在 abi 中定义传输函数。 You could even just take the minimal ERC20 abi and delete the USDC abi altogether.你甚至可以只使用最小的 ERC20 abi 并完全删除 USDC abi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM