ETH测试区块浏览器:https://ropsten.etherscan.io/apis#proxy
ETH test block browser: https://ropsten.ethscan.io/apis#proxy
1、以ETH地址address,获取余额。
1. Obtain the balance at the ETH addressaddress.
https://api-ropsten.etherscan.io/api?module=account&action=balance&address=0x6031087f32A6D4b54A6274a012CA23d053C07A1B&tag=latest&apikey=YourApiKeyToken
注:返回的余额需要做处理 除于? / 1000000000000000000
Note: Returned balances need to be processed except? / /10000000000000000000
2、以ETH地址address,获取所有交易记录。
2. Access to all transaction records at ETH addressaddress.
//(要获得分页结果,请使用page=和offset=)
// (For page break results, use page = and offset =)
注:page 页数,offset 当前页数显示的数量,sort 排序(asc 升序,desc倒序)
Note: Page page number, offset number of current pages displayed, sort sort (asc ascending, desc inverting)
3、返回最新的块数(获取总块数)。
3. Returns the latest number of blocks (requires the total number of blocks).
https://api-ropsten.etherscan.io/api?module=proxy&action=eth_blockNumber&apikey=YourApiKeyToken
4、按块号返回有关块的信息。
4. Returns the information about the blocks by block number.
5、以TxHash(类似订单号)去获取单次交易的详细信息
5. Get detailed information on a single transaction using TxHash (similar order number)
注册有任何问题请添加 微信:MVIP619 拉你进入群

打开微信扫一扫
添加客服
进入交流群
发表评论