Legacy Wallets

This page contains the API methods from when Snapy was just launched. It has evolved a bit since, and we strongly recommend using the newer endpoints, but they are still available to not break stuff.

post
Create Legacy Wallet

https://snapy.io/api/v1/wallets
This endpoint creates a new wallet.
Request
Response
Headers
Content-type
required
string
Application/json
x-api-key
required
string
The API key you can find in your dashboard. Example: pub_5cc7743fd5f7fd24b2e9336e-61defadc-0e7e-4786-a011–0b9d900e263b
Body Parameters
password
required
string
A password with which encrypt the wallet keys.
Example Request
optional
object
{ "password": "someSecurePassword" }
200: OK
Returns the wallet seed for recovery purposes.
{
"status": "success",
"seed": "e5a9523842d9dc09b7805d8ec16cd507827e877c1526c702062851892abba05a"
}

post
Create new Address

https://snapy.io/api/v1/address
Generates a new address from the legacy wallet.
Request
Response
Headers
x-api-key
required
string
The API key you can find in your dashboard. Example: pub_5cc7743fd5f7fd24b2e9336e-61defadc-0e7e-4786-a011–0b9d900e263b
200: OK
Returns a Nano address and the number of addresses remaining in this wallet.
{
"address": "nano_3dckei7mrrgt9t6ae7pw9bjfqbg61h9bfui6pcxgccccjxj3tr9p383w3e3y",
"remaining": 999,
"status": "success"
}

get
Retrieve Wallet Balance

https://snapy.io/api/v1/balance
Returns your wallet total balance and a list of its addresses with their corresponding balances. NOTE: You can the balance of a specific address by calling /api/v1/balance/{nano_address}
Request
Response
Headers
x-api-key
required
string
The API key you can find in your dashboard. Example: pub_5cc7743fd5f7fd24b2e9336e-61defadc-0e7e-4786-a011–0b9d900e263b
200: OK
{
"addresses": {
"nano_3dckei7mrrgt9t6ae7pw9bjfqbg61h9bfui6pcxgccccjxj3tr9p383w3e3y": "0",
},
"balance": "0",
"status": "success"
}

post
Send

https://snapy.io/api/v1/send
Send Nano to the specified address from the legacy wallet.
Request
Response
Headers
Content-type
required
string
Application/json
x-api-key
required
string
The API key you can find in your dashboard. Example: pub_5cc7743fd5f7fd24b2e9336e-61defadc-0e7e-4786-a011–0b9d900e263b
Body Parameters
from
optional
string
Origin address. If not set Snapy will figure out from where to send the transaction.
to
required
string
Destination Nano address.
amount
required
integer
The amount being sent in nano (rai). 1 Nano = 1000000 nano = 1000000 rai.
password
required
string
Your wallet password is required to decrypt your keys and be able to send the transaction.
Example Request
required
object
{ "to": "nano_16utdnbztf3411etaw....", "from (optional)": "nano_3qx1t....", "amount": 4000, "password": "yourwalletpassword" }
200: OK
{
"hash": "E8339C44117F2C63D3EDC00C64F7277180BCD38BB7DA1B45F0F7B09E9FDD6E95",
"status": "success"
}