-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backport: trivial 2024 10 23 pr6 #6354
Changes from all commits
277766f
bef9631
105442f
f27778a
ee6b7d6
a21b4b1
324db8b
e2fcd1d
fbc6c6e
ba5f4c0
ece625c
79a20f9
af944b7
2767a13
5511091
70cbd3f
e3bbd1a
d573e4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,5 +36,5 @@ Test and Verify Tools | |
### [TestGen](/contrib/testgen) ### | ||
Utilities to generate test vectors for the data-driven Dash tests. | ||
|
||
### [Verify Binaries](/contrib/verifybinaries) ### | ||
### [Verify-Binaries](/contrib/verify-binaries) ### | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (28013) It's still named |
||
This script attempts to download and verify the signature file SHA256SUMS.asc from bitcoin.org. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 28013 - (note) - we should dashify |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,41 @@ The headless daemon `dashd` has the JSON-RPC API enabled by default, the GUI | |
option. In the GUI it is possible to execute RPC methods in the Debug Console | ||
Dialog. | ||
|
||
## Endpoints | ||
|
||
There are two JSON-RPC endpoints on the server: | ||
|
||
1. `/` | ||
2. `/wallet/<walletname>/` | ||
|
||
### `/` endpoint | ||
|
||
This endpoint is always active. | ||
It can always service non-wallet requests and can service wallet requests when | ||
exactly one wallet is loaded. | ||
|
||
### `/wallet/<walletname>/` endpoint | ||
|
||
This endpoint is only activated when the wallet component has been compiled in. | ||
It can service both wallet and non-wallet requests. | ||
It MUST be used for wallet requests when two or more wallets are loaded. | ||
|
||
This is the endpoint used by bitcoin-cli when a `-rpcwallet=` parameter is passed in. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (27225) nit: Dashify |
||
|
||
Best practice would dictate using the `/wallet/<walletname>/` endpoint for ALL | ||
requests when multiple wallets are in use. | ||
|
||
### Examples | ||
|
||
```sh | ||
# Get block count from the / endpoint when rpcuser=alice and rpcport=38332 | ||
$ curl --user alice --data-binary '{"jsonrpc": "1.0", "id": "0", "method": "getblockcount", "params": []}' -H 'content-type: text/plain;' localhost:38332/ | ||
|
||
# Get balance from the /wallet/walletname endpoint when rpcuser=alice, rpcport=38332 and rpcwallet=desc-wallet | ||
$ curl --user alice --data-binary '{"jsonrpc": "1.0", "id": "0", "method": "getbalance", "params": []}' -H 'content-type: text/plain;' localhost:38332/wallet/desc-wallet | ||
|
||
``` | ||
|
||
## Parameter passing | ||
|
||
The JSON-RPC server supports both _by-position_ and _by-name_ [parameter | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
26422 - should wait guix builds just in case before get merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guix was happy here: 70500c9