How to get iota balance via api url

0 votes

I have tried to get IOTA Coin balance via api call directly. But I dont understand what is the right way to do it. Can someone tell me?

Sep 12, 2018 in Blockchain by slayer
• 29,300 points

reshown Sep 12, 2018 by Omkar 280 views

1 answer to this question.

0 votes

Either run your own node (thus, the localhost reference in the docs) or call a public one...

$ 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
}
answered Sep 12, 2018 by digger
• 26,700 points

Related Questions In Blockchain

0 votes
2 answers

Check Bitcoin Balance with mybitx api https GET url

You can use the PHP Requests library for an ...READ MORE

answered Sep 17, 2018 in Blockchain by Lalit
1,305 views
–1 vote
1 answer

How to get balance of all accounts in ethereum network using javascript?

You can write a function that will ...READ MORE

answered Jan 9, 2019 in Blockchain by Omkar
• 69,110 points
652 views
0 votes
1 answer

How to get Node URL in private ethereum network?

You have already noticed that  admin.peers does ...READ MORE

answered Jan 10, 2019 in Blockchain by Omkar
• 69,110 points
308 views
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
412 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,830 points
556 views
0 votes
1 answer
0 votes
1 answer

How to get property of non object in Coinbase API

First, your sendMoney() call is stored into ...READ MORE

answered Aug 31, 2018 in Blockchain by digger
• 26,700 points
147 views
0 votes
1 answer

how to get modification history of asset?

You can use GetHistoryForKey() API as shown ...READ MORE

answered Jul 9, 2018 in Blockchain by digger
• 26,700 points
827 views