Last updated 1 month ago
Sends new transaction.
This method will use 10 .
10
Note: Only the POST request of sendtx is currently supported by Validation Cloud, not the GET version.
hex tx data - string, required in request body.
hex tx data
Successful response:
Or in case of error:
POST /api/v2/sendtx/ (hex tx data in request body) NB: the '/' symbol at the end is mandatory.
{ "result": "7c3be24063f268aaa1ed81b64776798f56088757641a34fb156c4f51ed2e9d25" }
{ "error": { "message": "error message" } }
curl https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/api/v2/sendtx/ \ -X POST \ -H "Content-Type: application/json"
curl https://testnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/api/v2/sendtx/ \ -X POST \ -H "Content-Type: application/json"