gottstech / gotts

A blockchain for non-collateralized stable-coins, follow MimbleWimble protocol but with explicit amount.
https://gotts.tech
Apache License 2.0
48 stars 4 forks source link

api: add '/v1/txhashset/nit-outputs' api to query non-interactive outputs only #31

Closed garyyu closed 4 years ago

garyyu commented 4 years ago

Add a new API to query non-interactive outputs only, which will be useful for check the wallet to collect the non-interactive outputs.

The usage of this API: GET /v1/txhashset/nit-outputs?start_index=1&max=100

An example:

$ curl -0 -XGET -u gotts:`cat ~/.gotts/floo/.api_secret`  http://127.0.0.1:13513/v1/txhashset/nit-outputs?start_index=339\&max=10