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.
39 lines
562 B
39 lines
562 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.
|
||
|
|
||
|
### 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>"
|
||
|
}
|
||
|
}
|
||
|
```
|