"timestamp": "2016.12.20. 1:15:36" // if unconfirmed it's the time our node first seen this transaction, utc
"confirmed": true,
"timestamp": "1337605326"
}
}
]
]
}
}
```
```
## GET /wallet/balance/[account1/account2] - Displays the balances of the specified wallet account
## GET /wallet/balance - Displays the balances of the specified wallet account
### Query parameters
`walletName` (required) - the name of the wallet.
`coinType` (required) - the type of coin, e.g 0 for bitcoin, 105 for stratis.
### Responses
### Responses
```
```
{
{
"isSynced": true,
"balances": [
"confirmed": "0.144",
{
"unconfirmed": "-6.23"
"accountName": "account one",
"accountHdPath": "m/44'/0'/0'",
"coinType": 0,
"amountConfirmed": 209268016,
"amountUnconfirmed": 0
}
]
}
}
```
```
If the synced is false, then the balances might not be accurate.
Confirmed balance is the (amount of unspent confirmed outputs - unconfirmed outgoing transactions). It cannot be negative.
Confirmed balance is the (amount of unspent confirmed outputs - unconfirmed outgoing transactions). It cannot be negative.
Unconfirmed balance is the difference of unconfirmed incoming and outgoing transactions. It can be negative.
Unconfirmed balance is the difference of unconfirmed incoming and outgoing transactions. It can be negative.
...
@@ -261,57 +275,57 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
...
@@ -261,57 +275,57 @@ Unconfirmed balance is the difference of unconfirmed incoming and outgoing trans
"feeType": "low", // "low"/"medium"/"high"
"feeType": "low", // "low"/"medium"/"high"
"allowUnconfirmed": true // if spending unconfirmed outputs is allowed
"allowUnconfirmed": true // if spending unconfirmed outputs is allowed
}
}
```
```
### Responses
### Responses
#### Successful
#### Successful
```
```
{
{
"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