Send transaction

Sends new transaction.

This method will use 10 Compute Units.


Reference: Here

POST /api/v2/sendtx/ (hex tx data in request body)  NB: the '/' symbol at the end is mandatory.

Note: Only the POST request of sendtx is currently supported by Validation Cloud, not the GET version.

Parameters

hex tx data - string, required in request body.

Returns

Successful response:

{
  "result": "7c3be24063f268aaa1ed81b64776798f56088757641a34fb156c4f51ed2e9d25"
}

Or in case of error:

{
  "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"

Last updated