BroadcastTransaction
Broadcasts a signed transaction to the network.
Request
POST /nxt?requestType=broadcastTransaction
Parameters
| Name | Type | Description |
|---|---|---|
transactionBytes | string | Signed transaction bytes (hex) |
transactionJSON | string | Signed transaction JSON |
Either transactionBytes or transactionJSON is required.
Response
{
"transaction": "1234567890123456789",
"fullHash": "abc123...",
"errorCode": 0,
"errorDescription": ""
}
Notes
- Automatically validates the transaction
- Re-broadcasts to connected peers
- Stores as unconfirmed transaction
Example
curl -X POST http://localhost:22024/nxt \
-d "requestType=broadcastTransaction" \
-d "transactionBytes=abc123..."