【问题标题】:Accountid & PublicKey returns different transactions for 0.0.1261794Accountid 和 PublicKey 为 0.0.1261794 返回不同的交易
【发布时间】:2022-09-30 15:54:37
【问题描述】:

我在代码中使用 hedera 官方 api,对于 accountid 0.0.1261794 仅获得 2 个交易,其中 publickkey e2cc4c84391f5d9fd74dcf8199fb0bcd9c629f4d9aaa223649aad2814c56e6ba 与 0.0.1261794 accountid 关联,返回超过 20 个交易。

帐户 API - https://mainnet-public.mirrornode.hedera.com/api/v1/accounts?account.id=0.0.1261794

交易 API (AccountId) - https://mainnet-public.mirrornode.hedera.com/api/v1/transactions?account.id=0.0.1261794

交易 API (PublicKey) - https://mainnet-public.mirrornode.hedera.com/api/v1/transactions?account.publickey=e2cc4c84391f5d9fd74dcf8199fb0bcd9c629f4d9aaa223649aad2814c56e6ba

与资源管理器一样,它仅显示两笔交易。 https://hederaexplorer.io/search-details/account/0.0.1261794

谢谢 乌芒

    标签: hedera-hashgraph hashgraph


    【解决方案1】:

    这个其他网络浏览器也确认只有两个交易与您提供的帐户 ID 相关联:https://hashscan.io/#/mainnet/account/0.0.1261794

    这种行为的一个可能原因是在 Hedera 上,帐户和密钥的概念是分开的。这意味着:

    【讨论】:

      【解决方案2】:

      /transactions doesn’t really support filtering by account.publickey we probably should have returned status code 400 instead of treating it as if it’s just /transactions.

      这将得到修复。感谢您强调这个问题。

      【讨论】:

        猜你喜欢
        • 2014-08-05
        • 1970-01-01
        • 2013-09-13
        • 2012-06-06
        • 1970-01-01
        • 1970-01-01
        • 2013-10-22
        • 2013-05-01
        • 2012-08-05
        相关资源
        最近更新 更多