Getting Assets API
Last updated
Last updated
Glittr's core came with helper APIs to fetch assets information. To use the API you can first run your Glittr node which came with the API functionality (see ). note: All examples below use the devnet version (connected to custom regtest)
GET
/helper/assets/{outpoint}
Shows Glittr assets in an output, the format of the outpoint
is txid:vout
such as 17084c005ffbbe97b06f17acb1b86291da945cc15e4964bfdbc4e61f6ec46d74:0
sample request: https://devnet-core-api.glittr.fi/helper/assets/612accb284e3e28a6ab9120c70b408ae333d825bee5a6ca24df05ed91445216a:1
Response
GET
/helper/address/<address>/balance-summary
Shows Glittr asset balance for a given bitcoin address. The balance here is the total balance from all the UTXOs the address has. sample request: https://devnet-core-api.glittr.fi/helper/address/mroHGEtVBLxKoo34HSHbHdmKz1ooJdA3ew/balance-summary
Response
GET
/helper/address/<address>/valid-outputs
Shows valid utxos that have Glittr assets in them for a given bitcoin address. sample request: https://devnet-core-api.glittr.fi/helper/address/mroHGEtVBLxKoo34HSHbHdmKz1ooJdA3ew/valid-outputs
Response