我正在尝试测试这个示例代码:
contract MyContract {
function foo(address a) returns (uint) {
// send ether with default 21,000 gas
// likely causes OOG in callee
a.send(1 ether);
// send ether with all remaining gas
// but no success check!
a.call.value(1 ether)();
// RECOMMENDED
我是第一次接近以太坊,我正在阅读文档。有人能解释一下Ethereum (BlockCypher)和Ethereum as a service (infura)之间的区别吗?https://ethereum.org/en/developers/docs/apis/backend/#available-libraries
我真的很困惑。我是新来的以太坊。我试过看视频,我对它有一个模糊的概念,我试着通过CMD安装remix,但每次我放:
npm install -g solc
到CMD中,它总是会出现以下错误:
'npm' is not recognized as an internal or external command,
operable program or batch file.
我使用的是Windows 10。
谢谢:)