[英]Event data from Smart Contract parsing issue with go-ethereum
我無法使用types.Log通道獲取從 SC 事件發出的完整數據。 有什么辦法可以讓我從發出的事件中獲取所有數據嗎? 我試圖解析的事件: 我的代碼:for { select { case err := <-sub.Err(): log.F ...
[英]Event data from Smart Contract parsing issue with go-ethereum
我無法使用types.Log通道獲取從 SC 事件發出的完整數據。 有什么辦法可以讓我從發出的事件中獲取所有數據嗎? 我試圖解析的事件: 我的代碼:for { select { case err := <-sub.Err(): log.F ...
[英]Waiting for enough suitable peers before syncing
我在 Windows 11 上運行一個以太坊節點。我使用 Geth 作為我的執行客戶端,同時使用 Prysm 作為我的共識客戶端。 他們在過去兩天一直在同步,但 Geth 沒有向我的硬盤寫入任何數據,也沒有朝着工作的以太坊節點取得進展。 我通過下載頁面安裝了 Geth。 我使用此命令在 Prysm ...
[英]AttributeError: module 'web3.geth' has no attribute 'admin'
我正在關注 geth api 文檔( https://web3py.readthedocs.io/en/v5/web3.geth.html#gethadmin-api )並且在運行web3.geth.admin.start_ws(host='localhost', port=8546, cors= ...
[英]Get CALL_EXCEPTION details
我正在運行私有 geth 節點,我想知道是否有任何方法可以找到事務異常的根本原因。 當我發送交易時,我只能看到: 交易失敗 [參見:https://links.ethers.org/v5-errors-CALL_EXCEPTION] 當我在 hardhat.network 中運行相同的事務時,我得到 ...
[英]Getting error when trying to run Ganache (forking BSC chain)
我按照https://github.com/trufflesuite/ganache#documentation的說明安裝了 Ganache 我正在嘗試分叉 BSC 鏈,我有一個在本地運行的完全同步的節點(我想為此分叉,我在scripts下的 package.json 中提供了 URL)。 當嘗試 ...
[英]Why GoEthereum blockchain nodes sync under one day
嘿,區塊鏈愛好者們,在最新版本更新后,他們在 eth 同步方面有什么改進嗎,因為以前需要 1 周,現在只需要一天就可以下載整個區塊鏈數據。 我幾天前嘗試過,但在那里花了很多時間,但現在只用了半天。 我想了解它有什么新變化? ...
[英]*big.int and *types.transaction issues during interaction of solidity smart contract using Go-ethereum package
我想使用基於 Golang 的 Go-ethereum 包與 solidity 簡單智能合約進行交互,它顯示了 *types.transaction 和 *big.int 的錯誤(返回這些而不是字符串和 uint),而函數是: 我的問題是如何管理它們,以便獲得與所需的值完全相同的值。 我認為這是因為 ...
[英]Geth "invalid argument 0: json: cannot unmarshal non-string into Go value of type common.Address" error
我向 Geth 發出以下請求: 但出現以下錯誤: Geth 版本:Geth/v1.10.26-stable-e5eb32ac/windows-amd64/go1.18.5 什么是原因? ...
[英]How can I get approval llist of eth
我可以在 etherscan.io 中找到我的批准列表。 但我沒有看到任何 api 獲得批准列表。 ...
[英]Does anyone know the use cases for the trace_block method by Openethereum?
有誰知道 Openethereum 的 trace_block 方法的用例? 這是它的鏈接: https://docs.alchemy.com/reference/trace-block 我在任何地方都找不到為此方法列出的任何用例。 即使在官方文檔中,也沒有寫出來。 ...
[英]Fatal: Failed to write genesis block: database contains incompatible genesis (have d4e56740f876aef8c010b86a40d5f56745a118d0, new d1a12dd8ee31c1b49425a
在嘗試創建私有區塊鏈時,我正處於將 geth 與 genesis file.json 連接的階段。 但是運行命令后: 這是我得到的致命:無法寫入創世塊:數據庫包含不兼容的創世(有 d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1c ...
[英]exec: "gcc": executable file not found in %PATH%
我正在嘗試開始使用 Golang 編寫代碼。 每當我嘗試運行我的代碼或構建它時,我都會收到以下錯誤。 github.com/ethereum/go-ethereum/crypto/secp256k1 cgo:C 未找到編譯器“gcc”:exec:“gcc”:%PATH% 中未找到可執行文件我使用 ...
[英]see a 🔨 in log file of go-ethereum, how does it do that? i always thought that we can only type charactor in linux file
我使用 go-ethereum 構建了我的私有鏈,然后我在日志中看到了一個,這太神奇了,? 它是vim的新功能嗎?我在win10中使用Ubuntu 18.04.5終端到ssh進入另一台台式電腦(也是Ubuntu)。 我的 vim 版本是 9.0 INFO [09-28|08:27:29.517] m ...
[英]Python web3: How to get multiple addresses from a Private key?
我是否可以使用python web3獲得多個公共地址? 我想用我在 python web3 中的私鑰為我的每個客戶創建一個唯一的公共地址。 ...
[英]How to fix prysm.sh beacon-chain stopped at 99% progress?
合並后 geth 停止工作,當我通過信標鏈修復它時,信標停止了 99% 的進度。 命令: prysm.sh beacon-chain --execution-endpoint=http://localhost:8551 --datadir=/disk1/prysm/.eth2 日志: [2022- ...
[英]Fatal: Error starting protocol stack: listen tcp 127.0.0.1:8551: bind: Only one usage of each socket address is normally permitted
我正在嘗試用一條私有鏈創建三個節點。 node1 創建成功。 但是 node2 和 node3 顯示以下錯誤。 node1 中使用的命令 node2中使用的命令 node3中的命令使用 請給一些預付款,非常感謝。 ...
[英]Prysm node unable to connect Geth node
環境:操作系統:ubuntu_18_04_64 Docker:Docker 版本 19.03.2,構建 6a30dfc 容器: 配置: 1.JWT 在兩個節點上; 2.基於Prysm官方指南,geth節點8551端口映射; 3、通過nc -z -v 測試localhost:8551,連接成功; ...
[英]Transfer ERC20 token without ETH
我想將 ERC20 代幣從一個不擁有 ETH 的錢包轉移到另一個擁有 ETH 並且可以支付 gas 費的錢包。 你知道是否可以轉移 ERC20 代幣並讓接收方錢包支付費用嗎? ...
[英]Cannot make a static reference to the non-static method ethGetBlockByNumber(DefaultBlockParameter, boolean) from the type Ethereum
我無法理解我的代碼有什么問題。 它顯示錯誤:Cannot make a static reference to the non-static method ethGetBlockByNumber(DefaultBlockParameter, boolean) from the type Ethere ...
[英]how to get senders address - TransactionByHash goeth
如何使用 goeth 客戶端從 TransactionByHash function 獲取發件人/發件人地址。 我正在探索 go 以太坊客戶端,我列出了交易詳細信息,例如塊號、交易 hash、gas 價格、to(合約地址)。 但是原始交易中沒有發件人/發件人地址。 ...