SendTransaction
Sends a signed transaction to connected peers without validating or storing it as an unconfirmed transaction. Requires admin password.
Endpoint
POST /nxt?requestType=sendTransaction
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transactionJSON | string | No | Signed transaction JSON |
transactionBytes | string | No | Signed transaction bytes (hex) |
prunableAttachmentJSON | string | No | Prunable attachment JSON |
At least one of transactionJSON or transactionBytes is required.
Request Example
curl -X POST http://localhost:22024/nxt \
-d "requestType=sendTransaction" \
-d "transactionBytes=abc123..."
Response
{
"fullHash": "abc123...",
"numberOfPeers": 5,
"requestProcessingTime": 10
}
Response Fields
| Field | Type | Description |
|---|---|---|
fullHash | string | Transaction full hash |
numberOfPeers | number | Number of peers the transaction was sent to |
requestProcessingTime | number | API request processing time in milliseconds |
Errors
| Error | Description |
|---|---|
Not connected to any full client peers | No peers available for broadcasting |
Notes
- Does not validate the transaction
- Does not store as unconfirmed transaction
- Does not re-broadcast to peers
- Requires admin password
- Requires POST method
Source
SendTransaction.java
Tags
TRANSACTIONS