Phasing

Approve Transaction

Approve (vote for) a phased transaction.

Method: POST

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

Example body (x-www-form-urlencoded)

requestType = approveTransaction
secretPhrase = IWontTellYou
phasedTransaction = dcfed8eb4b9c7395e57c7e37f2e269d4915f35e77edfc29075c8050acec1f826
chain = 2
revealedSecretText = secret
feeNQT = 100000
deadline = 60

Example response: 200

{
    "errorDescription": "Incorrect \"dcfed8eb4b9c7395e57c7e37f2e269d4915f35e77edfc29075c8050acec1f826\" must be in chainId:fullHash format",
    "errorCode": 4
}

Create Phased Transaction

Create a phased transaction with conditional deferred execution based on the result of a vote, on a list of linked transactions or on the revelation of a secret; or simply with unconditional deferred execution.

Method: POST

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

Example body (x-www-form-urlencoded)

requestType = sendMoney
chain = 2
recipient = ARDOR-BMUV-8QQR-47VK-CR7F3
secretPhrase = IWontTellYou
feeNQT = 100000
deadline = 60
phased = true
phasingFinishHeight = 261550
phasingVotingModel = 0
phasingQuorum = 2
amountNQT = 10000000

Example response: 200

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

Get Account Phased Transaction Count

Get the number of pending phased transactions associated with an account given the account ID.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAccountPhasedTransactionCount&chain=2&account=15295723609781267838

Example response: 200

{
    "requestProcessingTime": 2,
    "numberOfPhasedTransactions": 0
}

Get Account Phased Transactions

Get pending phased transactions associated with an account given the account ID in reverse chronological creation order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAccountPhasedTransactions&chain=2&account=15382970207090678772&lastIndex=0

Example response: 200

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

Get Asset Phased Transactions

Get pending phased transactions based on an asset in reverse chronological creation order. These transactions can be considered transaction approval requests.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAssetPhasedTransactions&chain=2&asset=17091401215301664836

Example response: 200

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

Get Currency Phased Transactions

Get pending phased transactions based on a currency in reverse chronological creation order. These transactions can be considered transaction approval requests.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getCurrencyPhasedTransactions&chain=2&currency=12366259387060174981

Example response: 200

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

Get Hashed Secret Phased Transactions

Returns a list of phased by hash transactions with phasingHashedSecret and phasingHashedSecretAlgorithm as specified.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getHashedSecretPhasedTransactions&phasingHashedSecret=2e99758548972a8e8822ad47fa1017ff72f06f3ff6a016851f45c398732bc50c&phasingHashedSecretAlgorithm=2

Example response: 200

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

Get Linked Phased Transactions

Gets the phased transactions with by-transaction voting model for a given linkedFullHash, regardless of their phasing status (pending, approved or rejected).

Method: GET

https://ardr.nownodes.io/nxt?requestType=getLinkedPhasedTransactions&chain=2&linkedFullHash=083eba49bb481c38752a14493f0d40b3c60635935f13dd1fb33f6831fb997079

Example response: 200

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

Get Phasing Poll

Get the details of a phasing poll.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getPhasingPoll&chain=2&transaction=15402897900571339064

Example response: 200

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

Get Phasing Poll Vote

Get a cast phasing poll vote given a phased transaction ID and an account ID of a voter, if it is still available.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getPhasingPollVote&chain=2&transaction=12580288379938056583&account=15295723609781267838

Example response: 200

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

Get Phasing Poll Votes

Get all cast phasing poll votes in a phasing poll given a phased transaction ID, if they are still available.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getPhasingPollVotes&account=12580288379938056583

Example response: 200

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

Get Voter Phased Transactions

Get pending phased transactions which include a whitelist in reverse chronological creation order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getVoterPhasedTransactions&chain=2&account=15295723609781267838

Example response: 200

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

Last updated