You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
677 B

6 years ago
# PushTX
Push a transaction to the network.
```
POST /pushtx/
```
## 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 the `Authorization` HTTP header (with the `Bearer` scheme).
6 years ago
6 years ago
### Example
```
POST /pushtx/?tx=abcdef0123456789
```
#### Success
Status code 200 with JSON response:
```json
{
"status": "ok",
"data": "<txid>"
}
```
#### Failure
Status code 400 with JSON response:
```json
{
"status": "error",
"error": {
"message": "<error message>",
"code": "<error code>"
}
}
```