教你如何解析eth的区块信息,并保存所有的交易记录

欢迎一起交流:wx:54516204
在平常的工作和交流过程中,很多同学,总是想找一些接口,希望能查到以态链上的某个币种的所有交易信息,但目前在网上,提供这一类信息的网站比较少,有些甚至收比较高的费用,下面我简单的介绍一下,如何解析eth的区块信息,并提取我们需要的信息。
本人后台主要是用python,所以,下面以python为基础,提供一下用python如何解析区块信息的。下面是本人已经写好的程序,对程序做一些说明和注解,需要的同学,可以做一些参考。
首先,来一段eth接口说明的文件:

#encoding=utf-8

import os
import json
import random
import string
from web3 import Web3
# from web3.utils.encoding import (hexstr_if_str, to_bytes)
from eth_account import Account
from

Guess you like

Origin blog.csdn.net/weixin_38532278/article/details/120621957