Send Transaction

Request

Sends coin.

Parameters

  • from : Account to send from

  • to: Account to send to

  • value: Amount in smallest unit such as wei

  • data : (optional)

curl --location --request POST "localhost:9680/rpc" \
--header 'Content-Type: application/json' \
--data-raw '{
    "request": {
        "method": "eth_sendTransaction",
        "params": [{
            "from": "0x638105AA1B69406560f6428aEFACe3DB9da83c64",
            "to": "0x638105AA1B69406560f6428aEFACe3DB9da83c64",
            "value": "123000000000000",
            "data": ""
        }]
    },
    "chain": {
        "chainId": "1"
    }
}'

Response

The transaction hash

0xa27e68e665f4bafe045dacdf2d0ace14617c02f20325d081e98dd5e3413ecece

Last updated