Simple API

REST API Documentation

The Stashboard REST API is split in two portions. The public facing REST API only responds to GET and lives at the /api/v1/ endpoint. This API requires no authentication.

The admin-only REST API lives at the /api/v1/ endpoint and responsds to GET, POST, PUT, and DELETE.

totalbc

Returns amount ever received minus.

Example

http://api.rutheneum.com/totalbc

addressbalance

Returns amount ever received minus amount ever sent by a given address.

Example

http://api.rutheneum.com/balance/R5ZLCppez5GQZwqbWUrnVrbCM8R2BZeJ4m

live rate

Returns amount ever received minus.

http://api.rutheneum.com/liverate

checkaddress

Checks an address for validity.

Example

http://api.rutheneum.com/checkaddress/R5ZLCppez5GQZwqbWUrnVrbCM8R2BZeJ4m

Generate Address

POST http://api.rutheneum.com/api/v1/addrs
{                                        
    "address": "RvpW7fMSi1nbZhJJDySNS2PUau8ppnu4kY",
    "privateKey": "81ee75559d37cbe4b7cbbfb9931ab1ba32172c5cdfc3ac2d020259b4c1104198",
    "publicKey": "0231ff9ec76820cb36b69061f6ffb125db3793b4aced468a1261b0680e1ef4883a"
    "wif": "cRwGhRjCuuNtPgLcoYd1CuAqjFXCV5YNCQ1LB8RsFCvu61VfSsgR",
}                    

Creating Transactons

POST "{"fromAddress":"REUGZPZnzKUxBjds8EfJzZUM8gsWcKYXET","toAddress": "RCMMZWbDZ3nHrtkAJ4RQQDV4U8LNPfi7sy","fromPrivate": "a1eff78f0308408c2eb5b0f979c37e03ec03ef85eec5617054b96f0876e4587c","fromPublic": "759db2c88f2159d8903a08c6cde0aaace0c1ac5d58531cd4f047fd5d1cdd927aec","value": "1"}" http://api.rutheneum.com/api/v1/txs/create 
   
{         
    "message":"confirm",
    "status":"200",
    "Data":{
        "Block_Height":"",
        "Block_Hash":"",
        "Hash":"0FhiYpHqtpbASqgCsdcC9Yia3ViDW4s46feMvs7LJSebeVGd6oF64TUbhHpCGEUy",
        "TotalInput":45.00000000,
        "TotalOutput":75.00000000,
        "Fees":0.04500000,
        "Size":"",
        "Confirmed":"",
        "Received":"",
        "Confirmation":"3",
        "Confirmation":"3",
        "TransactionDate":"2018-01-29T23:21:48.073",
        "Amount":30.00000000,    
        "Inputs":[{    
            "Value":"30.00000000",    
            "Address":"R5ZLCppez5GQZwqbWUrnVrbCM8R2BZeJ4m"    
        }],    
        "OutPuts":[{
            "Value":"30.00000000",
            "Address":"RnUmnRnMTFm1yLsDfwBWESrp3KmAaa6EH"
        }]
    }
}