简体   繁体   English

使用 WalletConnect_dart 发送 ETH 以外的代币?

[英]Send a token other than ETH with WalletConnect_dart?

I'm currently working a dapp with flutter and use wallet_connect_dart to connect to metamask and make transaction.我目前正在使用 flutter 开发 dapp,并使用 wallet_connect_dart 连接到 metamask 并进行交易。 But i can only send ETH, i want to send other tokens as well, like DAI.但我只能发送 ETH,我也想发送其他代币,比如 DAI。 How to manipulate that?如何操纵它?

Yes, there is a way to send tokens other then ETH, you just have to create a deeplink for that token on 'https://metamask.github.io/metamask-deeplinks/#', but first you have to prompt user to add that token in metamask account.是的,除了 ETH 之外,还有一种发送代币的方法,您只需在“https://metamask.github.io/metamask-deeplinks/#”上为该代币创建一个深层链接,但首先您必须提示用户在元掩码帐户中添加该令牌。 keep in mind you cannot get transaction hash from this method.请记住,您无法从此方法获取交易哈希。

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

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