API Reference
TODO: break this out into a separate space, organizing the methods by category.
Raylz Native
Request body sample: {"jsonrpc":"2.0","method":"/eth_call","params":[{ "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567" }, "latest"],"id":1}
POST /eth_call HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.
Request body sample: {"jsonrpc":"2.0","method":"/eth_estimateGas","params":[{ "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567" }, "latest"],"id":1}
POST /eth_estimateGas HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],"id":1}
POST /eth_getBalance HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getBlockByHash","params":["0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae", false],"id":1}
POST /eth_getBlockByHash HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getBlockByNumber","params":["0x1b4", true],"id":1}
POST /eth_getBlockByNumber HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getTransactionCount","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","latest"],"id":1}
POST /eth_getBlockTransactionCountByHash HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getBlockTransactionCountByHash","params":["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],"id":1}
POST /eth_getBlockTransactionCountByNumber HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getCode","params":["0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "0x2"],"id":1}
POST /eth_getCode HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getFilterChanges","params":["0x16"],"id":73}
POST /eth_getFilterChanges HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getFilterLogs","params":["0x16"],"id":74}
POST /eth_getFilterLogs HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getLogs","params":[{"topics":["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b"]}],"id":74}
POST /eth_getLogs HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],"id":1}
POST /eth_getStorageAt HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getTransactionByBlockHashAndIndex","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x0"],"id":1}
POST /eth_getTransactionByBlockHashAndIndex HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getTransactionByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":1}
POST /eth_getTransactionByBlockNumberAndIndex HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getTransactionByHash","params":["0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"],"id":1}
POST /eth_getTransactionByHash HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0", "method": "/eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x0", "latest"], "id": 1}
POST /eth_getTransactionCount HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getTransactionReceipt","params":["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],"id":1}
POST /eth_getTransactionReceipt HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getUncleByBlockHashAndIndex","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x0"],"id":1}
POST /eth_getUncleByBlockHashAndIndex HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getUncleByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":1}
POST /eth_getUncleByBlockNumberAndIndex HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getBlockTransactionCountByNumber","params":["0xe8"],"id":1}
POST /eth_getUncleCountByBlockHash HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_getUncleCountByBlockNumber","params":["0xe8"],"id":1}
POST /eth_getUncleCountByBlockNumber HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_newFilter","params":[{ "fromBlock": "0x1", "toBlock": "0x2", "address": "0x8888f1f195afa192cfee860698584c030f4c9db1", "topics": ["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b", null, ["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b", "0x0000000000000000000000000aff3454fce5edbc8cca8697c15331677e6ebccc"]] }],"id":73}
POST /eth_newFilter HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_sendRawTransaction","params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],"id":1}
POST /eth_sendRawTransaction HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: { "id": 1, "jsonrpc": "2.0", "method": "/eth_sendTransaction", "params": [{ "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675" }] }
POST /eth_sendTransaction HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))).
Request body sample: {"jsonrpc":"2.0","method":"/eth_sign","params":["0x9b2055d370f73ec7d8a03e965129118dc8f5bf83", "0xdeadbeaf"],"id":1}
POST /eth_sign HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
The sync status object may need to be different depending on the details of Tendermint's sync protocol. However, the 'synced' result is simply a boolean, and can easily be derived from Tendermint's internal sync state.
POST /eth_syncing HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Request body sample: {"jsonrpc":"2.0","method":"/eth_uninstallFilter","params":["0xb"],"id":73}
POST /eth_uninstallFilter HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"id": 1,
"jsonrpc": "text",
"method": "text",
"params": []
}
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Raylz Transactions
POST /transaction HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"wallet_id": "text",
"password": "text",
"index": 1,
"transaction": {
"to": "text",
"data": "text",
"value": "text"
}
}
{
"tx_hash": "text"
}
POST /list_all_transfers HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Raylz Wallets
POST /wallet HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"type": "KEYSTORE_V3",
"password": "text",
"address_quantity": 1
}
[
{
"id": "text",
"type": "KEYSTORE_V3",
"address": "text",
"public_key": "text",
"index": 1,
"data": "text"
}
]
GET /wallet/{id} HTTP/1.1
Host:
Accept: */*
[
{
"id": "text",
"type": "KEYSTORE_V3",
"address": "text",
"public_key": "text",
"index": 1,
"data": "text"
}
]
Raylz Members
POST /register_new_member HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
POST /list_all_members HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Raylz Token Management
POST /trasport_token HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
POST /transport_token_with_data HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
POST /transport_arbitrary_message HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
POST /transfer_tokens HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
POST /list_all_transports HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
POST /deploy_new_contract HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
POST /create_new_ERC20_token HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
POST /create_new_ERC721_token HTTP/1.1
Host:
Accept: */*
OK
{
"id": 1,
"jsonrpc": "text",
"result": "text"
}
Last updated