post

Posts a raw transaction to the network and returns its transaction ID.

Endpoint

/v1/CHAIN/NETWORK/tx/post

Example

Request

curl -X POST http://localhost:1031/v1/LTC/regtest/tx/post \
     -H "Content-Type: application/json" \
     -d '{
           "hex": "0100000002b80e0d87611d00c4..."
         }'

Response

Success (200)

"e53c1440f547b51343d46a2acaafe127e915c7ed08a7ef2ed0ffc248360c0cca"

Missing parameter (400)

{ "error": "Missing input hex." }

Error occurred (404)

{ "error": "Error Occured" }

Server error (500)

{ "error": "Internal server error message" }