@@ -128,7 +117,6 @@ POST /wallet/send-transaction - Attempts to send a transaction
...
@@ -128,7 +117,6 @@ POST /wallet/send-transaction - Attempts to send a transaction
### Responses
### Responses
```
```
{
{
"success": "true",
"connectedNodeCount": "7",
"connectedNodeCount": "7",
"maxConnextedNodeCount": "8",
"maxConnextedNodeCount": "8",
"headerChainHeight": "1048",
"headerChainHeight": "1048",
...
@@ -151,7 +139,6 @@ POST /wallet/send-transaction - Attempts to send a transaction
...
@@ -151,7 +139,6 @@ POST /wallet/send-transaction - Attempts to send a transaction
### Responses
### Responses
```
```
{
{
"success": "true",
"mnemonic": "foo bar buz",
"mnemonic": "foo bar buz",
}
}
```
```
...
@@ -185,7 +172,6 @@ Works as expected.
...
@@ -185,7 +172,6 @@ Works as expected.
### Responses
### Responses
```
```
{
{
"success": "true",
"addresses": // 7 unused receive address (7 is the best number: https://www.psychologytoday.com/blog/fulfillment-any-age/201109/7-reasons-we-7-reasons)
"addresses": // 7 unused receive address (7 is the best number: https://www.psychologytoday.com/blog/fulfillment-any-age/201109/7-reasons-we-7-reasons)
[
[
"mzz63n3n89KVeHQXRqJEVsQX8MZj5zeqCw",
"mzz63n3n89KVeHQXRqJEVsQX8MZj5zeqCw",
...
@@ -203,7 +189,6 @@ Works as expected.
...
@@ -203,7 +189,6 @@ Works as expected.
### Responses
### Responses
```
```
{
{
"success": "true",
"history":
"history":
[
[
{
{
...
@@ -226,7 +211,6 @@ Works as expected.
...
@@ -226,7 +211,6 @@ Works as expected.
### Responses
### Responses
```
```
{
{
"success": "true",
"synced": "true",
"synced": "true",
"confirmed": "0.144",
"confirmed": "0.144",
"unconfirmed": "-6.23"
"unconfirmed": "-6.23"
...
@@ -252,7 +236,6 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
...
@@ -252,7 +236,6 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
#### Successful
#### Successful
```
```
{
{
"success": "true",
"spendsUnconfirmed": "false", // If spends unconfirmed you can ask the user if it's sure about spending unconfirmed transaction (if inputs are malleated or inputs never confirm then this transaction will never confirm either"
"spendsUnconfirmed": "false", // If spends unconfirmed you can ask the user if it's sure about spending unconfirmed transaction (if inputs are malleated or inputs never confirm then this transaction will never confirm either"
"fee": "0.0001",
"fee": "0.0001",
"feePercentOfSent": "0.1" // Percentage of the total spent amount, there must be a safety limit implemented here
"feePercentOfSent": "0.1" // Percentage of the total spent amount, there must be a safety limit implemented here
...
@@ -303,11 +286,7 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
...
@@ -303,11 +286,7 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
#### Errors
#### Errors
```
```
{
400 - "wallet is not synced"
"success": "false",
"message": "wallet is not synced",
"description": ""
}
```
```
## POST /wallet/send-transaction - Attempts to send a transaction
## POST /wallet/send-transaction - Attempts to send a transaction