Browse Source
Merge pull request #69 from nodar-chkuaselidze/index-docs
Update indexing notes
v1
Buck Perley
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
6 deletions
-
api-docs-slate/source/includes/_coin.md
-
api-docs-slate/source/includes/_transaction.md
|
|
@ -1,16 +1,19 @@ |
|
|
|
# Coin |
|
|
|
Getting coin information via APi. |
|
|
|
Getting coin information via API. |
|
|
|
|
|
|
|
*Coin stands for UTXO* |
|
|
|
|
|
|
|
<aside class="info"> |
|
|
|
You need to enable <code>index-tx</code> and <code>index-address</code> in order |
|
|
|
to lookup coins by transaction hashes and addresses, respectively. |
|
|
|
You need to enable <code>index-address</code> in order to lookup coins by address(es). |
|
|
|
</aside> |
|
|
|
|
|
|
|
|
|
|
|
## Get coin by Outpoint |
|
|
|
|
|
|
|
<aside class="info"> |
|
|
|
This API call is always available regardless indexing options. |
|
|
|
</aside> |
|
|
|
|
|
|
|
```javascript |
|
|
|
let hash, index; |
|
|
|
``` |
|
|
|
|
|
@ -1,9 +1,11 @@ |
|
|
|
# Transaction |
|
|
|
Getting transaction information via APi. |
|
|
|
Getting transaction information via API. |
|
|
|
|
|
|
|
<aside class="info"> |
|
|
|
You need to enable <code>index-tx</code> and <code>index-address</code> in order |
|
|
|
to lookup transactions by transaction hashes and addresses, respectively. |
|
|
|
You need to enable <code>index-tx</code> in order |
|
|
|
to lookup transactions by transaction hashes and also |
|
|
|
enable <code>index-address</code> to lookup transaction by |
|
|
|
addresses too. |
|
|
|
</aside> |
|
|
|
|
|
|
|
## Get tx by txhash |
|
|
|