This is the client JSON-RPC server
$ client-rpc --chain_id <CHAIN_ID>
The string passed to chain_id
is the last two hex digits of the chain id.
chain_id
: (Required) The last two hex digits of the chain idhost
: The host name of the serverport
: The port the server should listen to
Most of the JSON-RPC accepts a WalletRequest, which has the following structures:
- name
- Name of the wallet
- passphrase
- Passphrase used to encrypt the wallet
{
"name": "<Wallet Name>",
"passphrase": "<Wallet Passphrase>"
}
- wallet_create
- Create a wallet with a new address
- Arguments
- Wallet Request
- Result
- Wallet ID: String
- wallet_addresses
- List all addresses of a wallet
- Arguments
- Wallet Request
- Result
- Address list: String[]
- wallet_balance
- Return balance of a wallet
- Arguments
- Wallet Request
- Result
- Balance: String
- wallet_sendtoaddress
- Send funds from wallet to an address
- Arguments
- Wallet Request
- To address: String
- Balance: String
- wallet_transactions
- List all transactions of a wallet
- Arguments
- Wallet Request
- Result
- Transaction Change List: TransactionChange[]
- sync
- Synchronize the index
- sync_all
- Clean synchronize of the index