扫描arb链区块问题

image.png

这个Max 和 MaxPriority 是怎么出来的。之前扫描eth区块的时候,tx里有个tx.GasFeeCap()和tx.GasTipCap()。arb链用 client.BlockByNumber(context.Background(), blockNumber) 这个方法扫不出来,我自己解析的结构体。

type Transaction struct { BlockHash string json:"blockHash" BlockNumber string json:"blockNumber" ChainID string json:"chainId" From string json:"from" Gas string json:"gas" GasPrice string json:"gasPrice" Hash string json:"hash" Input string json:"input" Nonce string json:"nonce" R string json:"r" S string json:"s" To string json:"to" TransactionIndex string json:"transactionIndex" Type string json:"type" V string json:"v" Value string json:"value" }

type BlockInfo struct { BaseFeePerGas string json:"baseFeePerGas" Difficulty string json:"difficulty" ExtraData string json:"extraData" GasLimit string json:"gasLimit" GasUsed string json:"gasUsed" Hash string json:"hash" L1BlockNumber string json:"l1BlockNumber" LogsBloom string json:"logsBloom" Miner string json:"miner" MixHash string json:"mixHash" Nonce string json:"nonce" Number string json:"number" ParentHash string json:"parentHash" ReceiptsRoot string json:"receiptsRoot" SendCount string json:"sendCount" SendRoot string json:"sendRoot" Sha3Uncles string json:"sha3Uncles" Size string json:"size" StateRoot string json:"stateRoot" Timestamp string json:"timestamp" TotalDifficulty string json:"totalDifficulty" TransactionsRoot string json:"transactionsRoot" Uncles []interface{} json:"uncles" Transactions []Transaction json:"transactions" }

请先 登录 后评论

3 个回答

Tiny熊 - 布道者
  擅长:智能合约,以太坊
请先 登录 后评论
天才威
请先 登录 后评论
十四君 - 腾讯高级数据分析师,合约开发
请先 登录 后评论