-
Notifications
You must be signed in to change notification settings - Fork 6
Usage
ChMarina edited this page Jun 25, 2019
·
5 revisions
Метод позволяет отправить транзакцию в соответствии с указанными параметрами
to
- recipient wallet address in HEX format
value
- amount of transfer
fee
- комиссия
nonce
- number of outgoing transactions from the address at the time of this transaction, i.e. = count_spent + 1
data
- данные, прикрепленные к транзакции
pubkey
- публичный ключ отправителя
sign
- подпись транзакции
hash
- 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"
}
Метод возвращает текущую информацию о прокси ноде
none
version
- версия прокси ноды
address
- адрес прокси ноды
// Request
'{
"jsonrpc": "2.0",
"method": "getinfo"
}'
// Result
{
"version": "...",
"address": "..."
}