Commit graph

29 commits

Author SHA1 Message Date
merge-script
992d798e5c
Merge JoinMarket-Org/joinmarket-clientserver#1536: RPC-API: Implement message signing
646999179b RPC-API: Implement message signing (Kristaps Kaupe)

Pull request description:

  Resolves #1533.

  My first attempt at adding new RPC-API endpoint, there could be mistakes.

  Didn't add tests in `jmclient/test/test_wallet_rpc.py` as message signing is currently supported for mainnet only, not regtest (but I tested HTTP 400 response with regtest).

Top commit has no ACKs.

Tree-SHA512: 927b1f97ef903e48f82aa3ae70c7ead05c919a28d016d1ad4fd9c7a8299f8faa7606c30ef24af0ce3cd504e8e27b37bc55d1989bf89da88572ac79af0e60ec12
2025-10-19 21:26:01 +03:00
Kristaps Kaupe
646999179b
RPC-API: Implement message signing 2025-10-19 21:19:51 +03:00
Nischal Shetty
d615688df3 Update GetAddressResponse schema to return an object with address property 2025-06-26 13:24:17 +05:30
Kristaps Kaupe
5b47d1c906
RPC API endpoint to get wallet rescan status 2024-04-28 14:28:52 +03:00
Kristaps Kaupe
ab1481d814
RPC API: Add optional txfee property for single joins 2024-01-27 01:13:36 +02:00
Kristaps Kaupe
d8f1fc42d4 Add optional txfee property for direct-send wallet RPC 2023-11-19 10:18:41 +02:00
theborakompanioni
638200d346
feat(rpc): add block height to session response 2023-10-15 18:32:24 +02:00
roshii
c88429d41a JWT authority fixes 2023-10-06 20:39:39 +02:00
roshii
ef29982e54 remove bearer authentication errors 2023-09-20 11:50:01 +02:00
theborakompanioni
af9f462690
fix(docs): remove duplicate keys in wallet-rpc.md 2023-09-19 14:03:57 +02:00
roshii
b2822ddb95 Implement wallet RPC's JWT token authority 2023-08-29 21:34:53 +02:00
Adam Gibson
c9f6ac8610
RPC-API: add getinfo endpoint.
This commit creates a new endpoint /getinfo which currently returns only
the version of Joinmarket (JM_CORE_VERSION) running in the backend
joinmarketd. In future commits the returned dict may add more
information, for example the current block height of the connected
Bitcoin Core node.

Additionally, this commit fixes the response type of the
/rescanblockchain endpoint as defined in the OpenAPI spec.
2023-08-11 08:50:56 -06:00
Adam Gibson
7f4eaa9846
RPC-API: add ability to recover wallet
Fixes #1082:

This commit allows recovery of a wallet from a seedphrase
with a new endpoint wallet/recover. 4 parameters are passed in,
the same three as for wallet/create but also a bip39 seedphrase
as the fourth argument.

This commit also adds a rescanblockchain RPC call and status:

This adds a new endpoint /rescanblockchain which is (Core) wallet specific
(due to underlying JM architecture). This action is spawned in a thread,
since the bitcoind RPC call is blocking and can take a very long time.
To monitor the status of the rescan, an extra field `rescanning` is
added to the /session endpoint.

Also adds test of rpc wallet recovery
2023-03-23 10:47:12 -06:00
Adam Gibson
b2ab4db95a
add nickname field to session response 2022-08-08 14:13:18 +01:00
Adam Gibson
8ee6b39d13
Report offerlist in /session call if possible
This partially addresses #1326. If the maker service is running,
we return the offerlist in the /session API call, as suggested there.
2022-08-08 12:11:15 +01:00
Daniel
190d56e07b
fix: update schedule type in API docs 2022-08-04 16:33:40 +02:00
Daniel
ab2803eca0
fix: include schedule in session instead of status flag 2022-06-28 14:06:33 +02:00
Daniel
12bcbe1aa1
docs: add flag to session response spec 2022-06-13 11:18:49 +02:00
Adam Gibson
ea6c34d81c
update yaml for new available_balance fields 2022-05-17 20:27:22 +01:00
Adam Gibson
d16f16e879
Merge #1260: Allow specifiying options for taker/schedule API endpoint
3f358ed Add options to scheduler API endpoint (Daniel)
2022-05-16 16:48:43 +01:00
Daniel
3f358edf8f
Add options to scheduler API endpoint 2022-05-16 16:33:35 +02:00
Adam Gibson
930c25fa27
Merge #1252: Add RPC API endpoint for tumbler
1d5728f Fix duplicated log issue (Daniel)
43b4eca Add api docs (Daniel)
a2d6f40 Add rpc endpoint for tumbler (Daniel)
2022-05-03 13:32:33 +01:00
theborakompanioni
7e4d2b1002
docs: clarify handling of optional auth token in session endpoint 2022-04-20 15:21:55 +02:00
Daniel
43b4eca8ec
Add api docs 2022-04-20 11:53:21 +02:00
Adam Gibson
beaa8b0170
fixes to API and return format 2022-01-30 16:22:05 +00:00
Adam Gibson
89896e0d74 Add yieldgen report endpoint to API
Fixes #1122. An RPC client can request the list
of coinjoins as shown in the file datadir/logs/yigen-statement.csv.
Authentication is not required, nor a specific wallet, as this is
a global list of all coinjoins done so far. A 404 is returned if
the file has not yet been created (no maker operations).
2022-01-30 13:08:24 +00:00
Adam Gibson
16cc17c180
address linting complaints of openapi for RPC spec file 2022-01-28 13:37:03 +00:00
Dennis Reimann
1acadb77ae
Self-host redoc js 2022-01-27 17:09:50 +01:00
Dennis Reimann
91c2c480f8
API documentation via ReDoc 2022-01-26 16:04:00 +01:00