开发者社区> 问答> 正文

使用send进行转账,返回转账结果,合约地址和合约账户余额

使用send进行转账,返回转账结果,合约地址和合约账户余额

展开
收起
北藏有名 2020-02-06 16:39:39 1077 0
1 条回答
写回答
取消 提交回答
  • 有点尴尬唉 你要寻找的东西已经被吃掉啦!

    pragma solidity >=0.4.23; contract SendContract{ function sendTest(address target) payable returns(bool,addres,int){

        address thisAddress=this;
        bool stauts=false
        if(thisAddress.banlance>=100000){
            stauts=target.send(100000)
        }
        return (stauts,thisAddress,thisAddress.banlance)
    }
    

    }

    2020-02-06 16:40:11
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载