Skip to content

Commit

Permalink
Merge pull request #141 from bitcoin-sv/update-docu
Browse files Browse the repository at this point in the history
Update docu
  • Loading branch information
boecklim authored Nov 15, 2023
2 parents 91d631e + 4abf2d3 commit b2e28fe
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 72 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ ARC is a transaction processor for Bitcoin that keeps track of the life cycle of
Settings for ARC are defined in a configuration file. The default configuration file is `config.yaml` in the root directory. Each setting is documented in the file itself.
If you want to load `config.yaml` from a different location, you can specify it on the command line using the `-config=<path>` flag.

Each setting in the file `config.yaml` can be overridden with an environment variable. The environment variable needs to have this prefix `ARC_`. A sub setting will be separated using an underscore character. For example the following config setting could be overridden by the environment variable `ARC_METAMORPH_LISTENADDR`
```yaml
metamorph:
listenAddr:
```
## Microservices
To run all the microservices in one process (during development), use the `main.go` file in the root directory.
Expand Down
120 changes: 60 additions & 60 deletions api/arc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/arc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@
"callbackToken": {
"name": "X-CallbackToken",
"in": "header",
"description": "Access token for notification callback endpoint.",
"description": "Access token for notification callback endpoint. It will be used as a Authorization header for the http callback",
"schema": {
"type": "string"
}
Expand Down
14 changes: 7 additions & 7 deletions api/arc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
name: Open BSV Licence
url: https://bitcoinassociation.net/open-bsv-license/
servers:
- url: https://tapi.taal.com/arc
- url: https://tapi.taal.com/arc
paths:

# Get Policy
Expand Down Expand Up @@ -206,7 +206,7 @@ paths:
added:
summary: Success
value:
[
[
{
"blockHash": "",
"blockHeight": 0,
Expand All @@ -223,7 +223,7 @@ paths:
error:
summary: "Invalid outputs"
value:
[
[
{
"detail": "Transaction is invalid because the outputs are non-existent or invalid",
"extraInfo": "arc error 463: arc error 463: transaction output 0 satoshis is invalid",
Expand Down Expand Up @@ -731,7 +731,7 @@ components:
callbackToken:
name: X-CallbackToken
in: header
description: Access token for notification callback endpoint.
description: Access token for notification callback endpoint. It will be used as a Authorization header for the http callback
schema:
type: string
merkleProof:
Expand All @@ -748,6 +748,6 @@ components:
type: integer

security:
- BearerAuth: []
- Api-Key: []
- Authorization: []
- BearerAuth: [ ]
- Api-Key: [ ]
- Authorization: [ ]
5 changes: 2 additions & 3 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ This endpoint is used to send a raw transaction to a miner for inclusion in the
|X-SkipFeeValidation|header|boolean|false|Whether we should skip fee validation or not.|
|X-SkipScriptValidation|header|boolean|false|Whether we should skip script validation or not.|
|X-SkipTxValidation|header|boolean|false|Whether we should skip overall tx validation or not.|
|X-CallbackToken|header|string|false|Access token for notification callback endpoint.|
|X-CallbackToken|header|string|false|Access token for notification callback endpoint. It will be used as a Authorization header for the http callback|
|X-MerkleProof|header|string|false|Whether to include merkle proofs in the callbacks (true | false).|
|X-WaitForStatus|header|integer|false|Which status to wait for from the server before returning (2 = RECEIVED, 3 = STORED, 4 = ANNOUNCED_TO_NETWORK, 5 = REQUESTED_BY_NETWORK, 6 = SENT_TO_NETWORK, 7 = ACCEPTED_BY_NETWORK, 8 = SEEN_ON_NETWORK)|
|body|body|string|true|Transaction hex string|
Expand Down Expand Up @@ -800,7 +800,7 @@ This endpoint is used to send multiple raw transactions to a miner for inclusion
|X-SkipFeeValidation|header|boolean|false|Whether we should skip fee validation or not.|
|X-SkipScriptValidation|header|boolean|false|Whether we should skip script validation or not.|
|X-SkipTxValidation|header|boolean|false|Whether we should skip overall tx validation or not.|
|X-CallbackToken|header|string|false|Access token for notification callback endpoint.|
|X-CallbackToken|header|string|false|Access token for notification callback endpoint. It will be used as a Authorization header for the http callback|
|X-MerkleProof|header|string|false|Whether to include merkle proofs in the callbacks (true | false).|
|X-WaitForStatus|header|integer|false|Which status to wait for from the server before returning (2 = RECEIVED, 3 = STORED, 4 = ANNOUNCED_TO_NETWORK, 5 = REQUESTED_BY_NETWORK, 6 = SENT_TO_NETWORK, 7 = ACCEPTED_BY_NETWORK, 8 = SEEN_ON_NETWORK)|
|body|body|string|false|none|
Expand Down Expand Up @@ -1673,4 +1673,3 @@ and
|instance|string¦null|false|none|(Optional) Link to actual error on server|
|txid|string¦null|false|none|Transaction ID this error is referring to|
|extraInfo|string¦null|false|none|Optional extra information about the error from the miner|

2 changes: 1 addition & 1 deletion doc/arc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@
"callbackToken": {
"name": "X-CallbackToken",
"in": "header",
"description": "Access token for notification callback endpoint.",
"description": "Access token for notification callback endpoint. It will be used as a Authorization header for the http callback",
"schema": {
"type": "string"
}
Expand Down

0 comments on commit b2e28fe

Please sign in to comment.