如何获取给定地址的总质押 EGLD?

ROM*_*eer 1 multiversx

以下端点

https://api.elrond.com/accounts/{address}/stake
Run Code Online (Sandbox Code Playgroud)

例如:

https://api.elrond.com/accounts/erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g/stake

回报

{"totalStaked":"0"}
Run Code Online (Sandbox Code Playgroud)

但给定地址的质押总数不为 0。

是否有任何 API 端点可以返回真实的质押值?

ROM*_*eer 5

delegation-api.elrond.com,尝试:

https://delegation-api.elrond.com/accounts/{address}/delegations

例如:

https://delegation-api.elrond.com/accounts/erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g/delegations

返回

[
   {
      "address":"erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g",
      "contract":"erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqq8hlllls7a6h85",
      "userUnBondable":"0",
      "userActiveStake":"1114814108508273514",
      "claimableRewards":"3162326474680405",
      "userUndelegatedList":[
         
      ]
   }
]
Run Code Online (Sandbox Code Playgroud)

该字段"userActiveStake":"1114814108508273514"显示赌注值 ( 1.1148 EGLD)。