我已经搜索了几天......直接通过api电话获得IOTA硬币余额。
他们为我们提供了一份文件: - https://iota.readme.io/reference#getbalances
答案 0 :(得分:1)
嗯,不确定您在此处的期望,要么运行您自己的节点(因此,文档中的localhost
引用),要么调用公共节点...
$ curl -s http://iota.bitfinex.com \
-X POST \
-H 'Content-Type: application/json' \
-H 'X-IOTA-API-Version: 1' \
-d '{"command": "getBalances", "addresses": ["HBBYKAKTILIPVUKFOTSLHGENPTXYBNKXZFQFR9VQFWNBMTQNRVOUKPVPRNBSZVVILMAFBKOTBLGLWLOHQ"], "threshold": 100}' \
| jq
{
"balances": [
"0"
],
"references": [
"BTJRZDCMYEEQBMGKIGZFDFHQWIWTX9UYUFEOLYIHVVWM9HYRZPOZCKRQFNYDLNGTT9KZHGUTGNSNZ9999"
],
"milestoneIndex": 328554,
"duration": 160
}