Instruction

Build

git clone https://github.com/qitmeer/qitmeer-wallet ~/github.com/qitmeer/qitmeer-wallet
 cd ~/github.com/qitmeer/qitmeer-wallet
make build

Config

vi config.toml

# make sure ui=false

Run

./qitmeer-wallet web

Call API

Command

# by cURL
curl -k -u "${USER}:${PASSWORD}" -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"1.0","method":"${METHOD}","params":[${PARAMS}],"id":1}' ${API_URL} | jq

Parameters

  1. USER: (string) rpcUser in the config
  2. PASSWORD: (string) rpcPass in the config
  3. API_URL: (string) listeners in the config
  4. METHOD: (string) RPC call name
  5. PARAMS: (array) RPC call parameters

Example

curl -k -u "user:password" -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"1.0","method":"wallet_createAccount","params":["account"],"id":1}' http://127.0.0.1:38130/api | jq
Contribute on GitHub

Report an Issue | View File | Edit File

© Copyright Qitmeer 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License Creative Commons License