document UTXO endpoint

This commit is contained in:
Jude Nelson
2017-03-27 18:14:54 -04:00
parent 0d9f87427d
commit d71a595386

View File

@@ -97,15 +97,22 @@ TODO: authRequestToken format
| Method | API Call | API family | Notes |
| ------------- | ------------- | ------------- | ------------- |
| Get block operations | GET /v1/blockchains/{blockchainName}/block/{blockHeight} | blockchains | - |
| Get raw name history | GET /v1/blockchains/{blockchainName}/names/{nameID}/history | blockchains | - |
| Get consensus hash | GET /v1/blockchains/{blockchainName}/consensusHash | blockchains | - |
| Get pending transactions | GET /v1/blockchains/{blockchainName}/pending | blockchains | - |
| Get block operations | GET /v1/blockchains/{blockchainName}/block/{blockHeight} | blockchain | - |
| Get raw name history | GET /v1/blockchains/{blockchainName}/names/{nameID}/history | blockchain | - |
| Get consensus hash | GET /v1/blockchains/{blockchainName}/consensusHash | blockchain | - |
| Get pending transactions | GET /v1/blockchains/{blockchainName}/pending | blockchain | - |
| Method | API Call | API family | Notes |
| ------ | -------- | ---------- | ----- |
| Get unspent outputs | GET /v1/blockchains/{blockchainName}/{address}/unspent | blockchain | Returns `{"transaction_hash": str, "output_index": int, "value": int (satoshis), "script_hex": str, "confirmations": int}` |
| Broadcast transaction | POST /v1/blockchains/{blockchainName}/txs | blockchain | Takes `{"tx": str}` as its payload |
## Identity API
### Profiles
TODO: this is not decided
| Method | API Call | API family | Notes |
| ------------- | ------------- | ------------- | ------------- |
| Create profile | POST /v1/profiles | profile_write | Payload: `{"name": NAME, "profile": PROFILE}`. Wallet must own the name. |