Skip to content

Commit 9490beb

Browse files
committed
owner api
1 parent 1e96aaf commit 9490beb

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

developers/api/node.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,20 @@ The API is used to query a node about various information on the blockchain, net
55
This endpoint requires, by default, [basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication). The username is `mwcmain`.
66

77

8-
## Node API v1
9-
10-
**Note:** version 1 of the API will be deprecated in v4.0.0 and subsequently removed in v5.0.0. Users of this API are encouraged to upgrade to API v2.
11-
12-
This API uses REST for its requests. To learn about what specific calls can be made read the [node API v1 doc](https://github.com/mimblewimble/mwc/blob/master/doc/api/node_api_v1.md).
13-
14-
Basic auth password can be found in `.api_secret`
15-
16-
17-
188
## Node API v2
199

2010
This API version uses JSON-RPC for its requests. It is split up into a foreign API and an owner API. The documentation for these endpoints is automatically generated:
2111

22-
* [Owner API](https://docs.rs/mwc_api/latest/mwc_api/trait.OwnerRpc.html)
12+
- [Owner API](https://docs.rs/mwc_api/latest/mwc_api/trait.OwnerRpc.html)
13+
- URL: `localhost:3413/v2/owner`
14+
- Basic Authentification:
15+
- Username: `mwcmain`
16+
- Password: `~/.mwc/main/.api_secret`
2317
* [Foreign API](https://docs.rs/mwc_api/latest/mwc_api/trait.ForeignRpc.html)
18+
- URL: `localhost:3413/v2/foreign`
19+
- Basic Authentification:
20+
- Username: `mwcmain`
21+
- Password: `~/.mwc/main/.foreign_api_secret`
2422

2523
Basic auth passwords can be found in `.api_secret`/`.foreign_api_secret` files respectively.
2624

developers/api/wallet.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,21 @@
33

44
The [wallet API](https://docs.rs/mwc_wallet_api/latest/mwc_wallet_api/) uses JSON-RPC requests and is split into two separate blocks of functionality:
55

6-
* [Owner API](https://docs.rs/mwc_wallet_api/latest/mwc_wallet_api/struct.Owner.html)
6+
* [Owner API V2](https://docs.rs/mwc_wallet_api/latest/mwc_wallet_api/trait.OwnerRpcV2.html)
7+
- URL: `localhost:3420/v2/owner`
8+
- Basic Authentification:
9+
- Username: `mwcmain`
10+
- Password: `~/.mwc/main/.owner_api_secret`
11+
12+
* [Owner API V3](https://docs.rs/mwc_wallet_api/latest/mwc_wallet_api/trait.OwnerRpcV3.html)
13+
- URL: `localhost:3420/v3/owner`
14+
- Basic Authentification:
15+
- Username: `mwcmain`
16+
- Password: `~/.mwc/main/.owner_api_secret`
17+
18+
719
* [Foreign API](https://docs.rs/mwc_wallet_api/latest/mwc_wallet_api/struct.Foreign.html)
20+
- URL: `localhost:3420/v2/foreign`
821

922
Basic auth passwords:
1023
Username: `mwcmain`

0 commit comments

Comments
 (0)