Creating an outgoing transaction
api/v3
Create a transaction on the Hycon network.
Body (Content-Type: application/json):
Parameter | Type | Required | Description |
from | string | Required | A Hycon wallet address of the sender. |
to | string | Required | A Hycon wallet address of the receiver. |
amount | string | Required | Amount of Hycon to send to the recipient. |
fee | string | Required | Transaction fee that the sender pays for the transaction transfer. |
signature | string | Required | A value signed to the transaction by the private key of the sender. |
recovery | number | Required | Transaction recovery value. |
nonce | number | Required | The transaction number sent by the from address. |
POST/api/v3/tx/
Example request
curl -X POST http://localhost:2442/api/v3/tx \
-H 'Content-Type: application/json;charset=utf-8' \
-d '{
"from": "H497fHm8gbPZxaXySKpV17a7beYBF9Ut3",
"to":"H2EBExNn9xLpoZYZSfarHCvhufP1y63mw",
"amount":"1",
"fee":"0.0001",
"signature":"af036fc39ee75301c4ed5c051fb80b37481cd045e713e034b4420e9eb652ac721f8e30d3c08391311deecb883e02301c4b8e78372427e4f787f838b32",
"recovery":0,
"nonce":310
}'
Last modified 1yr ago