如何获取系统转移至附近地址的余额

huangapple go评论72阅读模式
英文:

How to get the Balance transferred by System to Near Address

问题

以下是已翻译的内容:

当尝试获取NEAR地址之一的余额时,可以看到系统已将一些余额转移至该地址,但无法从主网节点中获取此数据,也无法在交易详细信息中找到。

在下面的截图中,我可以看到从系统转移给该地址的余额:
Address opp_near_disc.near的交易

当我尝试查找交易哈希:2EKtqebYzGMA6fMsXo7G2roKcxdT1ApbHPNDKo6KYUSq 时,无法找到任何系统交易:https://nearblocks.io/txns/2EKtqebYzGMA6fMsXo7G2roKcxdT1ApbHPNDKo6KYUSq。它只显示
“从opp_near_disc.near转移 22,711.66454 Ⓝ 至 a7b84e7291...d49f52a”。

同样,当我尝试以下curl查询时,没有获取到任何与系统相关的数据:

curl --location 'http://10.213.67.4:1332'
--header 'Content-Type: application/json'
--data '{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "tx",
"params": ["2EKtqebYzGMA6fMsXo7G2roKcxdT1ApbHPNDKo6KYUSq",
"opp_near_disc.near"]
}'

curl --location 'http://10.213.67.4:1332'
--header 'Content-Type: application/json'
--data '{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "chunk",
"params": {"chunk_id": "5KnNTAR6WRvVTmeiU15sqNjfzPWdQqh23ZpmVuxKSd7p"}
}'

此资源也未提供数据:https://explorer.near.org/accounts/opp_near_disc.near。

请告诉我如何获取这些数据。

英文:

When tried to get the balance for one of Address of Near could see that there is some balance transferred from System to the address but could get this data from the mainnet node also in the transaction details.

In the below screenshot I can the balance transferred from system to the address:
Transaction for Address opp_near_disc.near

When I tried to get into the transaction hash: 2EKtqebYzGMA6fMsXo7G2roKcxdT1ApbHPNDKo6KYUSq. Could not find any transaction from system : https://nearblocks.io/txns/2EKtqebYzGMA6fMsXo7G2roKcxdT1ApbHPNDKo6KYUSq . It just shows
"Transfer 22,711.66454 Ⓝ From opp_near_disc.near To a7b84e7291...d49f52a".

The same way when I tried with the below curl queries did not get any data related to system:

curl --location 'http://10.213.67.4:1332' \
--header 'Content-Type: application/json' \
--data '{
  "jsonrpc": "2.0",
  "id": "dontcare",
  "method": "tx",
  "params": ["2EKtqebYzGMA6fMsXo7G2roKcxdT1ApbHPNDKo6KYUSq",
    "opp_near_disc.near"]
}'
curl --location 'http://10.213.67.4:1332' \
--header 'Content-Type: application/json' \
--data '{
  "jsonrpc": "2.0",
  "id": "dontcare",
  "method": "chunk",
  "params": {"chunk_id": "5KnNTAR6WRvVTmeiU15sqNjfzPWdQqh23ZpmVuxKSd7p"}
}'

This explorer also does not gives the data: https://explorer.near.org/accounts/opp_near_disc.near .

Please let me know how to get that data.

答案1

得分: 2

system是NEAR Protocol中的一个保留账户,用于退款预付的交易燃料NEAR。此账户没有余额。它只能成为带有TRANSFER操作的收据的发件人(通常是小额,除非某个账户被删除,剩余的代币会从system账户转移到受益人账户)。

英文:

system is a reserved account in NEAR Protocol, and it is used to refund NEAR which was pre-paid for transaction gas. There is no balance for this account. It can only be the sender of a receipt with a TRANSFER action (usually small amounts except for the cases when an account gets deleted and the remaining tokens are transferred to the beneficiary account from the system account).

huangapple
  • 本文由 发表于 2023年5月24日 20:29:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76323566.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定