Closed seveibar closed 9 years ago
WalletInfo (from the /wallet/status call) needs to return a list of addresses or transactions OR there needs to be a call to get them. Here's a possible format that I'm already spoofing...
{
"Balance": 0,
"USDBalance": 0,
"FullBalance": 0,
"NumAddresses": 2392,
"DefaultAccount": "Personal",
"Accounts": [
{
"Name": "Personal",
"Balance": 1,
"USDBalance": 2,
"FullBalance": 0,
"NumAddresses": 231,
"Addresses": [
{
"Address": "aaaaaaaaaaaaaaaaaaaaaa",
"Balance": 2.13
},
{
"Address": "aaaaaaaaaaaaaaaaaaaaaa",
"Balance": 0.001
},
{
"Address": "aaaaaaaaaaaaaaaaaaaaaa",
"Balance": 1.32
}
],
"Transactions": [
{
"Date": "01/02/2015",
"Amount": "2.67",
"USDAmount": "3.90",
"Deposit": true
},
{
"Date": "01/02/2015",
"Amount": "3.14",
"USDAmount": "3.90",
"Deposit": false
}
]
}
]
}
The transactions array can be empty (I don't think any of that has been implemented) and the accounts array can be static (leave it as a MainAccount) but the addresses would be really helpful, especially if they were ordered by recency.
Alternatively I could remove the transactions and address elements from the manage account view, although I think it may be a nifty feature.
For the open-beta we're not worrying about populating the addresses or transactions fields anymore, so that JSON format will not be necessary yet
There is currently no way to send or receive siacoin from the web interface, this should probably be done through a new view (transfer-funds).
To do this, the /wallet/status request should return an array of addresses and their balances (so that people have addresses to send to).
The "Create Address" button needs to be able to create addresses for people to send to eachother and this functionality is built into the API so that portion shouldn't take much time.