Skip to content

Commit

Permalink
Add rpc authentication configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fatemeh-ra committed Jun 18, 2024
1 parent 883da0f commit 2074db9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/watcher/deploy-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ As a Bitcoin watcher, you should specify these configurations under `bitcoin` ke
```yaml
type: rpc
rpc:
url: YOUR_RPC_URL
url: 'YOUR_RPC_URL'
username: 'YOUR_RPC_USERNAME'
password: 'YOUR_RPC_PASSWORD'
```

or
Expand All @@ -318,6 +320,8 @@ esplora:

> Note: If you don't specify an esplora url, it will use the https://blockstream.info by default, but in case you're using RPC as your source you should specify your bitcoin node instance RPC url.

> Note: RPC authentication configuration is optional, if you're using a public node you don't need to add username and password.

> Note: You can use both configuration, but using RPC is recommended. An RPC connection to a bitcoin node is much faster and does not have limits on fetching data.

2. Set your watcher's initial height, where you start observing and reporting events. Like the Ergo network, we highly recommend using the latest block as your initial point. You should specify the initial block height.
Expand Down Expand Up @@ -356,6 +360,8 @@ bitcoin:
type: rpc
rpc:
url: 'YOUR_BITCOIN_RPC_URL'
username: 'YOUR_RPC_USERNAME'
password: 'YOUR_RPC_PASSWORD'
initial:
height: LATEST_BITCOIN_HEIGHT
observation:
Expand Down

0 comments on commit 2074db9

Please sign in to comment.