API reference
Available API methods
API endpoint
http://localhost:20000/cliRequest structure
{
qid: "XXX", // Request ID. The response will echo back the same qid
method: "XXX", // Requested method name
account: "XXX", // Account for sign
pwd: "XXX", // Account password
params: {} // Input parameters for the requested method
}Response structure
{
qid: "XXX", // Request ID
method: "XXX", // Requested method name
result: { // Response result
signed_tx: "XXX" // Signed transaction
},
error_code: 0, // Error code,zero represents success, non-zero represents failure
error_info: "" // Error description
}Error codes
Last updated