sends the passed amount to the given address.
address: (hex string)
the given addressamount: (numeric)
passed amountcoinID: (numeric)
0 => MEER 1=> MEER balanceTxID: (hex string)
the TxID for the created transaction
-32000
-13
Enter the wallet passphrase with walletpassphrase first
$ curl -sk -u "test:test" -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"1.0","method":"wallet_sendToAddress","params":["Tmdcmmo7JqxxwHy6r46Sx2ZRbVF2dSjG9mm", 1 , 0],"id":1}' http://127.0.0.1:8130/api |jq .
{
"jsonrpc": "2.0",
"id": 1,
"result": "86140f1fa1e7d95707ec7e61748b91838e24a00ca8803f299c7caca591ff1af4"
}
$ curl -sk -u "test:test" -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"1.0","method":"wallet_sendToAddress","params":["Tk6uJDaurxqPrg2bZqBa9XSpUcakebZ6EU1u9qqHNDcNW2MyeTtbX", 10 , 1],"id":1}' http://127.0.0.1:8130/api |jq .
{
"jsonrpc": "2.0",
"id": 1,
"result": "86140f1fa1e7d95707ec7e61748b91838e24a00ca8803f299c7caca591ff1af4"
}
© Copyright Qitmeer 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License