Transactions

Broadcast Transaction

Broadcast a transaction to the network.

Method: POST

https://ardr.nownodes.io/nxt?requestType=broadcastTransaction

Example body (x-www-form-urlencoded)

requestType = broadcastTransaction
transactionBytes = 02000000000001e0217e022800df21142bd38c04bd5c5c342c6ca36802f9de89b75b2a0a8cbd32d29dca481e5c0069c38ab5c7abe500e40b540200000040420f000000000058cda06a138b59b46b19c5e5d06d65334ed338d0e48d9694ae5c119913d2a00c9b4871989dd367442d1dbd94d22336515135cc3bf35e7c952c244e9d1b6a5c9810851a0069fb1adac03af20c40000000017ac01a000001000000000000000000000000000000016059eed721ae4ad4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Example response: 200

{
    "errorDescription": "Failed to broadcast transaction: Invalid finish height 1753210",
    "errorCode": 4,
    "requestProcessingTime": 2,
    "error": "nxt.NxtException$NotCurrentlyValidException: Invalid finish height 1753210"
}

Calculate Fee

Calculate the minimum fee for a transaction.

Method: GET

https://ardr.nownodes.io/nxt?requestType=calculateFee&transactionBytes=02000000000001e0217e022800df21142bd38c04bd5c5c342c6ca36802f9de89b75b2a0a8cbd32d29dca481e5c0069c38ab5c7abe500e40b540200000040420f000000000058cda06a138b59b46b19c5e5d06d65334ed338d0e48d9694ae5c119913d2a00c9b4871989dd367442d1dbd94d22336515135cc3bf35e7c952c244e9d1b6a5c9810851a0069fb1adac03af20c40000000017ac01a000001000000000000000000000000000000016059eed721ae4ad4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Example response: 200

{
    "minimumFeeFQT": "202000000",
    "feeNQT": "5029800000",
    "requestProcessingTime": 5
}

Calculate Full Hash

Calculate the full hash of a transaction.

Method: GET

https://ardr.nownodes.io/nxt?requestType=calculateFullHash&unsignedTransactionBytes=02000000000001e0217e022800df21142bd38c04bd5c5c342c6ca36802f9de89b75b2a0a8cbd32d29dca481e5c0069c38ab5c7abe500e40b540200000040420f000000000058cda06a138b59b46b19c5e5d06d65334ed338d0e48d9694ae5c119913d2a00c9b4871989dd367442d1dbd94d22336515135cc3bf35e7c952c244e9d1b6a5c9810851a0069fb1adac03af20c40000000017ac01a000001000000000000000000000000000000016059eed721ae4ad4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&signatureHash=b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7Get Blockchain Transactions

Example response: 200

{
    "requestProcessingTime": 0,
    "fullHash": "8820b388d7c5be819e20dac430c44d7dae1474932c9289f4c9c54408a415fed0"
}

Get Blockchain Transactions

Get the transactions associated with an account in reverse block timestamp order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getBlockchainTransactions&chain=1&account=ARDOR-4VDY-LNVT-LMAY-FMCKA&lastIndex=0

Example response: 200

{
    "requestProcessingTime": 1,
    "transactions": []
}

Get Executed Transactions

Returns the transactions ordered by the height at which they were executed, not at which they were included in the blockchain. It simplifies the processing of phased transactions.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getExecutedTransactions&chain=2&sender=ARDOR-X8ZN-WUJ2-SXY3-FBUYC

Example response: 200

{
    "requestProcessingTime": 2,
    "transactions": []
}

Get Expected Transactions

Returns the non-phased unconfirmed transactions expected to be included in the next block (only), plus the phased transactions scheduled to finish in that block (whether approved or not). Since version 2.3.0e it returns both bundled and non-bundled transactions.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getExpectedTransactions&chain=2&account=ARDOR-X5A4-FTMJ-J97M-F3ANH

Example response: 200

{
    "expectedTransactions": [],
    "requestProcessingTime": 3
}

Get Fxt Transactions

Returns the child chain transactions bundled from a parent chain transaction.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getFxtTransaction&transaction=9487776060330762807&fullHash=376278f80e5aab83bb97bcab941cc35c643629f874a215f04b62480684456bdd

Example response: 200

{
    "errorDescription": "Unknown transaction",
    "errorCode": 5
}

Get Referencing Transactions

Gets the transactions referencing a given transaction id.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getReferencingTransactions&chain=2&transactionFullHash=c96b60bafc581891be88eae695f773677fe3cf7322cc149831d70de046041ea7

Example response: 200

{
    "requestProcessingTime": 1,
    "transactions": []
}

Get Transaction

Get a transaction object given a transaction ID.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getTransaction&chain=2&fullHash=91be75425ed620e405948488ff67edc2296b69671ba695f80e9ffdc7e5c88efc

Example response: 200

{
    "errorDescription": "Unknown transaction",
    "errorCode": 5
}

Get Transaction Bytes

Get the bytecode of a transaction.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getTransactionBytes&chain=2&transaction=15200507403046301754

Example response: 200

{
    "errorDescription": "\"fullHash\" not specified",
    "errorCode": 3
}

Get Unconfirmed Transaction Ids

Get all unconfirmed transaction Ids.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getUnconfirmedTransactionIds&chain=2&account=ARDOR-X8ZN-WUJ2-SXY3-FBUYC

Example response: 200

{
    "unconfirmedTransactionHashes": [],
    "requestProcessingTime": 1,
    "unconfirmedTransactionIds": []
}

Get Unconfirmed Transactions

Get all unconfirmed transactions.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getUnconfirmedTransactions&chain=2&account=ARDOR-X8ZN-WUJ2-SXY3-FBUYC

Example response: 200

{
    "unconfirmedTransactions": [],
    "requestProcessingTime": 0
}

Parse Transaction

Get a transaction object given a (signed or unsigned) transaction bytecode, or re-parse a transaction object. Verify the signature.

Method: GET

https://ardr.nownodes.io/nxt?requestType=parseTransaction&transactionBytes=02000000000001e0217e022800df21142bd38c04bd5c5c342c6ca36802f9de89b75b2a0a8cbd32d29dca481e5c0069c38ab5c7abe500e40b540200000040420f000000000058cda06a138b59b46b19c5e5d06d65334ed338d0e48d9694ae5c119913d2a00c9b4871989dd367442d1dbd94d22336515135cc3bf35e7c952c244e9d1b6a5c9810851a0069fb1adac03af20c40000000017ac01a000001000000000000000000000000000000016059eed721ae4ad4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Example response: 200

{
    "errorDescription": "Invalid transaction: Invalid finish height 1753210",
    "signature": "58cda06a138b59b46b19c5e5d06d65334ed338d0e48d9694ae5c119913d2a00c9b4871989dd367442d1dbd94d22336515135cc3bf35e7c952c244e9d1b6a5c98",
    "errorCode": 4,
    "type": 0,
    "error": "nxt.NxtException$NotCurrentlyValidException: Invalid finish height 1753210",
    "fxtTransaction": "0",
    "phased": true,
    "ecBlockId": "932872672786447209",
    "signatureHash": "c398f205e8f20a0bfe45c86a563874216a60091d39f2aa3c8a711d124c72e0d9",
    "attachment": {
        "phasingFinishHeight": 1753210,
        "phasingHolding": "0",
        "phasingQuorum": "1",
        "version.Phasing": 1,
        "phasingWhitelist": [
            "15297230544697186656"
        ],
        "phasingMinBalance": "0",
        "phasingMinBalanceModel": 0,
        "version.OrdinaryPayment": 0,
        "phasingVotingModel": 0
    },
    "senderRS": "ARDOR-X8ZN-WUJ2-SXY3-FBUYC",
    "subtype": 0,
    "amountNQT": "10000000000",
    "recipientRS": "ARDOR-8UA2-QQ7E-BN7G-G9YCD",
    "verify": true,
    "deadline": 40,
    "timestamp": 41820640,
    "height": 2147483647,
    "validate": false,
    "senderPublicKey": "df21142bd38c04bd5c5c342c6ca36802f9de89b75b2a0a8cbd32d29dca481e5c",
    "chain": 2,
    "feeNQT": "1000000",
    "requestProcessingTime": 3,
    "fullHash": "e407147def5982a0e330065939043f0b7c0f3158da7ff6216a730328f9de0a51",
    "version": 1,
    "sender": "15382970207090678772",
    "recipient": "16549540838234089728",
    "ecBlockHeight": 1738000
}

Process Voucher

Process a voucher that has been previously generated.

Method: POST

https://ardr.nownodes.io/nxt?requestType=processVoucher&secretPhrase=IwontTellYou

Example body (x-www-form-urlencoded)

requestType = processVoucher
transactionBytes = 02000000000001e0217e022800df21142bd38c04bd5c5c342c6ca36802f9de89b75b2a0a8cbd32d29dca481e5c0069c38ab5c7abe500e40b540200000040420f000000000058cda06a138b59b46b19c5e5d06d65334ed338d0e48d9694ae5c119913d2a00c9b4871989dd367442d1dbd94d22336515135cc3bf35e7c952c244e9d1b6a5c9810851a0069fb1adac03af20c40000000017ac01a000001000000000000000000000000000000016059eed721ae4ad4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Example response: 200

{
    "errorDescription": "Incorrect \"file\" cannot read file data",
    "errorCode": 4
}

Retrieve Pruned Transaction

Force retrieval of the prunable data for a given transaction, even if past the configured nxt.maxPrunableLifetime.

Method: GET

https://ardr.nownodes.io/nxt?requestType=retrievePrunedTransaction&chain=2&transactionFullHash=bb5dcd17fbe0b27b0ca62c3e22742b6d8ac82624e975ac97a8d56866f8829da1

Example response: 200

{
    "errorDescription": "Incorrect \"file\" cannot read file data",
    "errorCode": 4
}

Send Transaction

It broadcasts a transaction to the network without validating it, without re-broadcasting it and without adding it locally as unconfirmed transaction. Specially intended for roaming or light clients to send transactions to remote peers.

Method: POST

https://ardr.nownodes.io/nxt?requestType=sendTransaction

Example body (x-www-form-urlencoded)

requestType = sendTransaction
transactionBytes = 02000000000001e0217e022800df21142bd38c04bd5c5c342c6ca36802f9de89b75b2a0a8cbd32d29dca481e5c0069c38ab5c7abe500e40b540200000040420f000000000058cda06a138b59b46b19c5e5d06d65334ed338d0e48d9694ae5c119913d2a00c9b4871989dd367442d1dbd94d22336515135cc3bf35e7c952c244e9d1b6a5c9810851a0069fb1adac03af20c40000000017ac01a000001000000000000000000000000000000016059eed721ae4ad4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Example response: 200

{
    "errorDescription": "Incorrect \"adminPassword\" (the specified password does not match nxt.adminPassword)",
    "errorCode": 4
}

Sign Transaction

Calculates the full hash, signature hash, and transaction ID of an unsigned transaction.

Method: GET

https://ardr.nownodes.io/nxt?requestType=signTransaction&unsignedTransactionBytes=02000000000001e0217e022800df21142bd38c04bd5c5c342c6ca36802f9de89b75b2a0a8cbd32d29dca481e5c0069c38ab5c7abe500e40b540200000040420f000000000058cda06a138b59b46b19c5e5d06d65334ed338d0e48d9694ae5c119913d2a00c9b4871989dd367442d1dbd94d22336515135cc3bf35e7c952c244e9d1b6a5c9810851a0069fb1adac03af20c40000000017ac01a000001000000000000000000000000000000016059eed721ae4ad4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&secretPhrase=SecretPhrase

Example response: 200

{
    "errorDescription": "Incorrect unsigned transaction json or bytes: Transaction is already signed",
    "errorCode": 4,
    "requestProcessingTime": 2,
    "error": "nxt.NxtException$NotValidException: Transaction is already signed"
}

Last updated