Skip to content
ChMarina edited this page Jun 25, 2019 · 5 revisions

API List

API Reference

mhc_send

This method allows to send transaction in accordance with specified params.

Parameters

to - recipient wallet address in HEX format

value - amount of transfer

fee - commission fee

nonce - number of outgoing transactions from the address at the time of this transaction, i.e. = count_spent + 1

data - data attached to transaction

pubkey - sender’s public key

sign - transaction signature

Returns

hash - transaction hash

Example

// Request
'{
      "jsonrpc": "2.0",
      "method": "mhc_send",
      "params": {
        "to": "'$send_to'",
        "value": "'$amount'",
        "fee": "'$fee'",
        "nonce": "'$nonce'",
        "data": "'$dataHex'",
        "pubkey": "'$pubkey_der_16'",
        "sign": "'$signed'"
    }
 }'

// Result
{
	"hash": "27853659f2...5f35cce655dcb6ef420"
}

getinfo

This method returns current info on proxy node.

Parameters

none

Returns

version - proxy node version

address - proxy node address

Example

// Request
'{
      "jsonrpc": "2.0",
      "method": "getinfo"
 }'

// Result
{
      "version": "...",
      "address": "..."
}