PushTX
Push a transaction to the network.
POST /pushtx/Parameters must be passed in the body of the request as url encoded arguments.
Parameters
Section titled “Parameters”- tx -
hex string- The raw transaction hex - at -
string(optional) - Access Token (json web token). Required if authentication is activated. Alternatively, the access token can be passed through theAuthorizationHTTP header (with theBearerscheme). - strict_mode_vouts (optional) -
string- A pipe-separated list of outpoints indices. A strict verification is enforced on these outpoints before the transaction is pushed. Strict mode checks that addresses associated to these outputs aren’t reused. If verifications fail, push is aborted and an error is returned.
Example
Section titled “Example”POST /pushtx/
tx=abcdef0123456789strict_mode_vouts=0|2|3Success
Section titled “Success”Status code 200 with JSON response:
{ "status": "ok", "data": "<txid>"}Failure
Section titled “Failure”Status code 400 with JSON response:
{ "status": "error", "error": "<error message>"}or status code 200 with JSON response:
{ "status": "error", "error": { "message": [<vout>], "code": "VIOLATION_STRICT_MODE_VOUTS" }}