7
bep20 合约如何转移用户的bnb
source link: https://learnblockchain.cn/question/2903
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
bep20 合约如何转移用户的bnb
bep20 合约如何转移用户的bnb
我现在想写一个自己的nft发售网站
需求就是用户访问网站,然后点击“铸造”按钮,这时候调用合约,实现两个功能:
1、转移用户1个bnb 到指定地址
2、转账成功后,给用户铸造nft
那么我这个合约该如何写,可以让用户授权使用用户的bnb资产,并将bnb转移到指定账户?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK