Commit 82872f1c authored by nopara73's avatar nopara73 Committed by GitHub

Update ApiSpecification.md

parent c7e1e0c3
...@@ -96,7 +96,34 @@ POST /wallet/send-transaction - Attempts to send a transaction ...@@ -96,7 +96,34 @@ POST /wallet/send-transaction - Attempts to send a transaction
# Details # Details
## GET /wallet/general - Displays general information on the wallet ## GET /wallet/general - Displays general information on the wallet
### Responses
```
{
"success": "true",
"walletFilePath": "path to the wallet file",
"encryptedSeed": "6PYKWP34en1wELfcJDgXaFRPugjgkDdEk2p2Pzytm1158dxgNyLAUXwpKL",
"chainCode": "q/Fn7+RSIVM0p0Nj6rIuNkybF+0WKeSZPMQS2QCbDzY=",
"network": "main", // main/testnet
"creationTime": "2017-03-21",
"decrypted": "true",
"uniqueId": "sadwpiqjdpijwqdpijwqidjoi" // can only get if decrypted, if not it's empty string
}
```
## GET /wallet/sensitive - Displays sensitive information on the wallet ## GET /wallet/sensitive - Displays sensitive information on the wallet
### Parameters
```
{
"password": "password"
}
```
### Responses
```
{
"success": "true",
"extkey": "sadwqdpqoijedqcdoijsadoijsadisa",
"extpubkey": "dalkdsaklkjdlkjdsaljlkjdsalkjdsalk",
}
```
## GET /wallet/status - Displays dynamic information on the wallet ## GET /wallet/status - Displays dynamic information on the wallet
## POST /wallet/create - Creates the wallet ## POST /wallet/create - Creates the wallet
### Parameters ### Parameters
...@@ -106,7 +133,7 @@ POST /wallet/send-transaction - Attempts to send a transaction ...@@ -106,7 +133,7 @@ POST /wallet/send-transaction - Attempts to send a transaction
"password": "password" "password": "password"
} }
``` ```
### Response ### Responses
``` ```
{ {
"success": "true", "success": "true",
...@@ -198,6 +225,7 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans ...@@ -198,6 +225,7 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
### Parameters ### Parameters
``` ```
{ {
"password": "password",
"address": "1Xyz...", "address": "1Xyz...",
"amount": "0.12", // in btc, if 0, then spends all available "amount": "0.12", // in btc, if 0, then spends all available
"feeType": "low", // "low"/"medium"/"high" "feeType": "low", // "low"/"medium"/"high"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment