-
Notifications
You must be signed in to change notification settings - Fork 6
Usage
ChMarina edited this page Jun 25, 2019
·
5 revisions
This method allows to send transaction in accordance with specified params.
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
hash
- transaction hash
// 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"
}
This method returns current info on proxy node.
none
version
- proxy node version
address
- proxy node address
// Request
'{
"jsonrpc": "2.0",
"method": "getinfo"
}'
// Result
{
"version": "...",
"address": "..."
}