UNPKG

eris-db

Version:

Javascript library that calls an erisdb server over rpc.

130 lines 3.73 kB
{ "it": { "sends ether from one account to another": [ { "input": { "done": false, "value": { "method": "erisdb.sendAndHold", "params": { "priv_key": "A5507595F13BF2052BD9DFD30A46E2358E146B03EDF2B6135CFD12D91A019CC0F26C1850E3D0F50AC8B3A5D2C1C449981DA8C159D094F331028DDB861DEE6304", "to_address": "0000000000000000000000000000000000000010", "amount": 42 }, "id": "eR7DZw4K16qOeE3FggWJrYgHzZnD/zNr5ebYrtMA5sU=", "jsonrpc": "2.0" } } }, { "output": { "done": false, "value": { "result": { "tx_hash": "eR7DZw4K16qOeE3FggWJrYgHzZnD/zNr5ebYrtMA5sU=", "creates_contract": 0, "contract_addr": "" }, "error": null, "id": "eR7DZw4K16qOeE3FggWJrYgHzZnD/zNr5ebYrtMA5sU=", "jsonrpc": "2.0" } } }, { "input": { "done": false, "value": { "method": "erisdb.getAccount", "params": { "address": "0000000000000000000000000000000000000010" }, "id": "190vd9yAkPStx9YRJlj0+1yHYvspQewTXhVypeUHPFM=", "jsonrpc": "2.0" } } }, { "output": { "done": false, "value": { "result": { "address": "0000000000000000000000000000000000000010", "pub_key": null, "sequence": 0, "balance": 42, "code": "", "storage_root": "", "permissions": { "base": { "perms": 0, "set": 0 }, "roles": [] } }, "error": null, "id": "190vd9yAkPStx9YRJlj0+1yHYvspQewTXhVypeUHPFM=", "jsonrpc": "2.0" } } } ] }, "initDir": { "accounts.json": { "test-transactions_full_000": { "address": "4D4EC02DE49581209FA59315C5A660D4B9D63D06", "pubKey": "F26C1850E3D0F50AC8B3A5D2C1C449981DA8C159D094F331028DDB861DEE6304", "privKey": "A5507595F13BF2052BD9DFD30A46E2358E146B03EDF2B6135CFD12D91A019CC0F26C1850E3D0F50AC8B3A5D2C1C449981DA8C159D094F331028DDB861DEE6304" } }, "genesis.json": { "chain_id": "test-transactions", "accounts": [ { "address": "4D4EC02DE49581209FA59315C5A660D4B9D63D06", "amount": 99999999999999, "name": "test-transactions_full_000", "permissions": { "base": { "perms": 16383, "set": 16383 }, "roles": [] } } ], "validators": [ { "pub_key": [ 1, "F26C1850E3D0F50AC8B3A5D2C1C449981DA8C159D094F331028DDB861DEE6304" ], "name": "test-transactions_full_000", "amount": 9999999999, "unbond_to": [ { "address": "4D4EC02DE49581209FA59315C5A660D4B9D63D06", "amount": 9999999999 } ] } ] }, "priv_validator.json": { "address": "4D4EC02DE49581209FA59315C5A660D4B9D63D06", "pub_key": [ 1, "F26C1850E3D0F50AC8B3A5D2C1C449981DA8C159D094F331028DDB861DEE6304" ], "priv_key": [ 1, "A5507595F13BF2052BD9DFD30A46E2358E146B03EDF2B6135CFD12D91A019CC0F26C1850E3D0F50AC8B3A5D2C1C449981DA8C159D094F331028DDB861DEE6304" ], "last_height": 0, "last_round": 0, "last_step": 0 } } }