Skip to main content

Transactions API

Endpoints for creating, signing, broadcasting, and querying transactions.

Transaction Creation​

EndpointDescriptionMethod
createTransactionCreate unsigned transactionPOST
signTransactionSign transactionPOST
sendTransactionCreate and sign transactionPOST

Transaction Broadcasting​

EndpointDescriptionMethod
broadcastTransactionBroadcast transactionPOST
getAllBroadcastedTransactionsGet all broadcasted txsGET
getAllWaitingTransactionsGet waiting transactionsGET

Transaction Queries​

EndpointDescriptionMethod
getTransactionGet transaction by IDGET
getTransactionBytesGet transaction bytesGET
parseTransactionParse transaction bytesGET
getUnconfirmedTransactionsGet unconfirmed txsGET
getUnconfirmedTransactionIdsGet unconfirmed tx IDsGET
getExpectedTransactionsGet expected transactionsGET

Transaction Utilities​

EndpointDescriptionMethod
calculateFullHashCalculate full hashGET
calculateFeeCalculate feeGET
approveTransactionApprove transactionPOST

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