evmToMeer

wallet_evmToMeer

sends the passed amount to the given address.

NOTE

  • This function requires to the wallet to be unlocked. See wallet_unlock
  • The amount cannot exceed 21,000,000

Parameters

  1. address: (hex string) the given address
  2. amount: (numeric) passed amount
  3. coinID: (numeric) 0 => MEER 1=> MEER balance

Returns

Success

TxID: (hex string) the TxID for the created transaction

Error

-32000 -13 Enter the wallet passphrase with walletpassphrase first

Example

Request Send EVM To MEER

$ curl -sk -u "test:test" -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"1.0","method":"wallet_evmToMeer","params":["Tk6uJDaurxqPrg2bZqBa9XSpUcakebZ6EU1u9qqHNDcNW2MyeTtbX", 10 , 0],"id":1}' http://127.0.0.1:8130/api |jq .

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "86140f1fa1e7d95707ec7e61748b91838e24a00ca8803f299c7caca591ff1af4"
}
Contribute on GitHub

Report an Issue | View File | Edit File

© Copyright Qitmeer 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License Creative Commons License