Submit Transaction
Broadcast a signed transaction to the blockchain network. Returns the transaction hash upon successful submission.
Request
Transaction ID from build step
Signed transaction in hex format (if not using signatures array)
Array of signatures (alternative to signedTxHex)
Response
Internal transaction identifier
Blockchain transaction hash
Transaction status (1 = Submitted)
Example
curl -X POST https://api.axonvault.io/v1/transactions/submit \
-H "X-Access-Key: ak_live_abc123" \
-H "X-Signature: 5d41402abc4b2a76b9719d911017c592" \
-H "X-Timestamp: 2024-01-15T10:30:00Z" \
-H "Content-Type: application/json" \
-d '{
"txId": "tx_abc123",
"signedTxHex": "0xf86c0a8502540be400825208..."
}'
Response Example
{
"txId": "tx_abc123",
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"status": 1
}
Transaction Status
| Status | Description |
|---|
| 0 | Pending (not yet submitted) |
| 1 | Submitted (awaiting confirmation) |
| 2 | Confirmed |
| 3 | Failed |
Errors
| Error Type | Status | Description |
|---|
invalid_request | 400 | Missing txId or signature |
not_found | 404 | Transaction not found |
already_submitted | 409 | Transaction already submitted |
broadcast_failed | 502 | Failed to broadcast to network |
Webhook Notifications
After submission, you’ll receive webhook notifications for status changes:
{
"event": "transaction.confirmed",
"data": {
"txId": "tx_abc123",
"txHash": "0x1234...",
"status": 2,
"blockNumber": 12345678,
"confirmations": 12
}
}
Configure Webhooks
Set up transaction notifications