找到约 6 条结果

文章 如何使用Ruby连接到以太坊网络

...面的截图,包含 HTTP 链接和 WSS](https://img.learnblockchain.cn/2025/02/26/0-51b41d215c8aaa33e5be75354a914c28.png) 我们将使用这个链接连接到以太坊网络。 ## 整合所有内容 现在,我们将使用 **eth** gem 以及我们的 QuickNode 端点创建一个简短的脚...

文章 如何在 Solana 获取钱包持有的所有代币

... 链接: ![获取 Solana 主网端点](https://img.learnblockchain.cn/2025/02/25/0-9a383a21010f3bea7fc8aec95f5cd5e4.png) ``` const rpcEndpoint = 'https://example.solana-mainnet.quiknode.pro/000000/'; const solanaConnection = new Connection(rpcEndpoint); ``` 将要查询的钱包定...

文章 理解以太坊的Layer 2扩容解决方案:状态通道、Plasma 和 Truebit | 作者:Josh Stark | L4 博客 | Medium

...每一个操作——一笔支付、一只 Cryptokitty 的诞生、新的 ERC20 合约部署——都必须由网络中的每个节点并行执行。这是有意为之——这正是公共区块链权威性的部分原因。节点不必依赖于其他人 _来_ 告诉他们区块链的当前状态—...

文章 Michael.W基于Foundry精读Openzeppelin第68期——UpgradeableBeacon.sol

...信标合约指向的逻辑合约地址变化时被抛出。该事件符合ERC1967标准 // 注:ERC1967标准详解参见:https://learnblockchain.cn/article/8581 event Upgraded(address indexed implementation); constructor(address implementation_) { // 设置逻辑合约...

文章 使用Automation、Gelato和Defender 进行合约自动化执行

.../smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/interfaces/KeeperCompatibleInterface.sol)中定义的接口。 为了与Chainlink Automation兼容,我们的智能合约必须包括以下两个方法: - `checkUpKeep()`:在链下间隔执行调用该函数, 该方法返回一...

问题 部署合约时出现SafeERC20: approve from non-zero to non-zero allowance,求解

...用hardhat自动化部署合约的时候,在创建合约时出现SafeERC20: approve from non-zero to non-zero allowance问题: ![image.png](https://img.learnblockchain.cn/attachments/2021/08/mKmnyY2q6106629bcf9d8.png) 部署脚本如下: ``` import { ethers, network } from "hardhat"; ...