Transactions API
Endpoints for creating, signing, broadcasting, and querying transactions.
Transaction Creation
| Endpoint | Description | Method |
|---|---|---|
| createTransaction | Create unsigned transaction | POST |
| signTransaction | Sign transaction | POST |
| sendTransaction | Create and sign transaction | POST |
Transaction Broadcasting
| Endpoint | Description | Method |
|---|---|---|
| broadcastTransaction | Broadcast transaction | POST |
| getAllBroadcastedTransactions | Get all broadcasted txs | GET |
| getAllWaitingTransactions | Get waiting transactions | GET |
Transaction Queries
| Endpoint | Description | Method |
|---|---|---|
| getTransaction | Get transaction by ID | GET |
| getTransactionBytes | Get transaction bytes | GET |
| parseTransaction | Parse transaction bytes | GET |
| getUnconfirmedTransactions | Get unconfirmed txs | GET |
| getUnconfirmedTransactionIds | Get unconfirmed tx IDs | GET |
| getExpectedTransactions | Get expected transactions | GET |
Transaction Utilities
| Endpoint | Description | Method |
|---|---|---|
| calculateFullHash | Calculate full hash | GET |
| calculateFee | Calculate fee | GET |
| approveTransaction | Approve transaction | POST |
Transaction Object Structure
All transactions follow this structure:
{
"type": 0,
"subtype": 0,
"chain": 1,
"phased": false,
"timestamp": 123456789,
"deadline": 1440,
"senderPublicKey": "hexPublicKey",
"sender": "1234567890",
"recipient": "9876543210",
"amountMTA": "100000000",
"feeMTA": "1000000",
"signature": "hexSignature",
"fullHash": "hexHash",
"transaction": "1234567890123456789",
"confirmations": 123,
"attachment": {}
}
Tags
TRANSACTIONS, CREATE_TRANSACTION