docker-compose up -Vd *mainnet or testnet*`To check if the node is currently synchronizing:
curl --data '{"method":"eth_syncing","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545The response should look like the following:
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"startingBlock": "0x384", // 900
"currentBlock": "0x386", // 902
"highestBlock": "0x454" // 1108
} // Or `false` when not syncing
}To simply check the number of the most recent block, run:
curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545The response should look like the following:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x4b7" // 1207
}To create a new account you'd only need to come up with a passphrase which would be later used to access account information
curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"personal_newAccount","params":["pretty_safe_passphrase"],"id":42}' localhost:8545You can check if the account is present on the node and if the passphrase you've used works:
curl --data '{"method":"parity_testPassword","params":["*account address*","*account_passphrase*"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545To get all accounts present on the node:
curl --data '{"method":"parity_allAccountsInfo","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545To get account balance:
curl --data '{"method":"eth_getBalance","params":["*account_address*"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545Feel free to check Parity JSON RPC API for more calls.