我试图获取某个 tron地址的所有事务

我无法找到一种方法来获取某个 Tron 地址所涉及的交易历史

我无法找到一种方法来获取某个 Tron 地址所涉及的交易历史

我尝试了 tronweb API:https://api.trongrid.io/v1/accounts/TJmmqjb1DK9TTZbQXzRQ2AuA94z4gKAPFh/transactions/trc20?limit=100&contract_address=TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t

然而,这并没有做任何事情。那么有没有人设法找到一种方法来做到这一点?

3

这是安静的简单只是做一个GET请求到以下网址:

https://api.trongrid.io/v1/accounts/{wallet-address}/transactions/{standard}?&contract_address={contract-address}

{wallet-address}替换为所需的 tron 钱包地址。

{standard}替换为您想要的令牌标准,例如trc20

{contract_address}替换为目标令牌的合同地址,例如TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t(USD Tether)。

以下是所有可能的参数:

only_confirmed(boolean):true | false。如果为 false,则返回已确认和未确认的事务。如果未指定 param,则返回已确认和未确认的事务。不能与 only_unconfirmed param 同时使用。

only_unconfirmed(boolean):true | false。如果为 false,则返回已确认和未确认的事务。如果未指定 param,则返回已确认和未确认的事务。不能与 only_confirmed param 同时使用。

限制(int32):每页事务数,默认为 20,最大为 200

指纹(字符串):上一页返回的最后一个事务的指纹;使用时,其他参数和过滤器应保持不变

order_by(string):block_timestamp,asc | block_timestamp,desc (default)

min_timestamp(日期-时间):最小 block_timestamp,默认值为0

max_timestamp(日期-时间):最大 block_timestamp,现在默认

contract_address(字符串):以 base58 或十六进制表示的合同地址

only_to(布尔值):true | false。如果为 true,则仅对此地址的事务,默认值:false

only_from(布尔值)true | false。如果为 true,则仅来自此地址的事务,默认值:false

2

我成功地击中了这个端点:(docs here

https://api.trongrid.io/v1/contracts/${contractAddress}/events?block_number=${blockNumber}&only_confirmed=true

它看起来像另一个选项是使用 TronWeb 的getEvents()端点:

How to get TRC20 transactions to an address

还有这个,这似乎有点相似:

https://developers.tron.network/reference/geteventresult
1

您要查找的 tron GET 端点是:"api.trongrid.io/v1/accounts/{address}/transactions"

{address}替换为您的 tron 钱包地址。干杯!

0

您可以从 tronscan.org 以 CSV 格式下载它

but keep in mind that only the first 10,000 transactions are available. enter image description here

本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处

(683)
MS Access自动生成随机数
上一篇
创建一个从select语句在Pl/sql中创建表的过程
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(49条)