Phasing
Approve Transaction
Approve (vote for) a phased transaction. POST only.
Request: Refer to Create Transaction Request for common parameters.
- requestType is approveTransaction
- transactionFullHash is the full hash of the transaction to be approved (may be used up to 10 times per API request)
- revealedSecret is the secret phrase (required only for phasingVotingModel 5, refer to Create Phasing Poll)
- revealedSecretIsText is a way of specifying whether revealedSecret is text or binary.
Note: This transaction will be accepted in the blockchain only if all phased transactions it is voting for are already in it.
Response: Refer to Create Transaction Response.
Approve Transaction Example
http://localhost:7876/nxt?
requestType=approveTransaction&
transactionFullHash=5016cc59b0665675f00513e8c647288e0a668a78c4964c84d0de8f768b89060a&
revealedSecretText=secret&
secretPhrase=secretPhrase&
feeNQT=100000000&
deadline=60
{
"signatureHash": "db429ccecd7d13b54b43cf9db7656cef6df6152c60e626b393000ed00a652c95",
"transactionJSON": {
"senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
"signature": "380e1a94e40d58e9382aa742ca998373e27c5d30890d91a74d83bfead849e507e93c51...",
"feeNQT": "100000000",
"type": 1,
"fullHash": "2bb80af156e70067f509df9ad5a88b687040cff4a8c778c69aef77863d3d15ef",
"version": 1,
"phased": false,
"ecBlockId": "704052112466096836",
"signatureHash": "db429ccecd7d13b54b43cf9db7656cef6df6152c60e626b393000ed00a652c95",
"attachment": {
"transactionFullHashes": [
"5016cc59b0665675f00513e8c647288e0a668a78c4964c84d0de8f768b89060a"
],
"version.PhasingVoteCasting": 1,
"revealedSecret": "736563726574"
},
"senderRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"subtype": 9,
"amountNQT": "0",
"sender": "15295723609781267838",
"ecBlockHeight": 262493,
"deadline": 60,
"transaction": "7422186546503792683",
"timestamp": 43965004,
"height": 2147483647
},
"unsignedTransactionBytes": "01194cda9e023c0010f09c34f225d425306e5be55a494690...",
"broadcasted": true,
"requestProcessingTime": 20,
"transactionBytes": "01194cda9e023c0010f09c34f225d425306e5be55a4946908156072a...",
"fullHash": "2bb80af156e70067f509df9ad5a88b687040cff4a8c778c69aef77863d3d15ef",
"transaction": "7422186546503792683"
}
Create Phasing Poll
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. POST only.
Request: Refer to Create Transaction Request for common parameters.
- requestType is any type from the Create Transaction list which is phasing-safe, indicated with italics such as Send Money
- phased is true to create a phased transaction (optional but required for all of the following parameters, which are all optional for unphased transactions)
- phasingFinishHeight is the block height at which the poll will finish; the transaction will be executed at this block height only if all conditions (if any) have been met, otherwise the transaction will never be executed
- phasingVotingModel is an integer code for the method of approval:
- -1 for None
- 0 for Vote By Account
- 1 for Vote By Account Balance
- 2 for Vote By Asset Balance
- 3 for Vote By Currency Balance
- 4 for By Linked Transactions
- 5 for By Secret
- phasingQuorum is the number of "votes" needed for transaction approval (required if phasingVotingModel >= 0, default 0):
- 0 for voting model -1
- the number of accounts for model 0
- total NQT for model 1
- total QNT for models 2 and 3
- the number of transactions for model 4
- 1 for model 5
- phasingMinBalance is the minimum balance (in NQT or QNT) required for voting (optional, default 0)
- phasingMinBalanceModel is (required if phasingMinBalance > 0, must match phasingVotingModel when phasingVotingModel = 1, 2 or 3):
- 1 for NXT balance
- 2 for an asset balance
- 3 for a currency balance
- phasingHolding is the asset or currency ID (required if phasingMinBalanceModel = 2 or 3)
- phasingWhitelisted is the account ID of an account allowed to vote for the transaction; once used, only whitelisted accounts are allowed to vote (optional, may be used up to ten times per API request)
- phasingLinkedFullHash is the full hash of a transaction that must be in the blockchain at the phasingFinishHeight; transactions already in the blockchain before the acceptance of the phased transaction can also be linked, as long as they are not more than 60 days old, or themselves phased transactions (required only for voting model 4, may be used up to ten times per API request)
- phasingHashedSecret is the hash of a secret phrase (up to 100 bytes long) required for approval (required only for voting model 5)
- phasingHashedSecretAlgorithm is the hash function used: 2 for SHA256, 6 for RIPEMD160 and 62 for SHA256 followed by RIPEMD160, according to Get Constants (required for a phasingHashedSecret)
Note: When a balance affects the poll result, the result depends only on the balance (including pending outgoing phased transfers) computed just prior to the finish height.
Response: Refer to Create Transaction Response.
Create Phasing Poll Example
http://localhost:7876/nxt?
requestType=sendMoney&
recipient=NXT-BMUV-8QQR-47VK-CR7F3&
secretPhrase=secretPhrase&
feeNQT=200000000&
deadline=60&
phased=true&
phasingFinishHeight=261550&
phasingVotingModel=0&
phasingQuorum=2
{
"signatureHash": "df6c2dfcaf17f83256cfe388f408e091c08f208a060d54d1fbdb407ffdca121c",
"transactionJSON": {
"senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
"signature": "418a5453329d6c8d29b1b49dff30653a7f1e66992cece404d8ae997413deaa015b749a...",
"feeNQT": "200000000",
"type": 0,
"fullHash": "6fd876512477ef4fab089ec2ffa084d6db75ba3cd0cef2541675515470dca374",
"version": 1,
"phased": true,
"ecBlockId": "17522485785088843392",
"signatureHash": "df6c2dfcaf17f83256cfe388f408e091c08f208a060d54d1fbdb407ffdca121c",
"attachment": {
"phasingFinishHeight": 261550,
"phasingHolding": "0",
"phasingQuorum": "2",
"version.Phasing": 1,
"phasingMinBalance": "0",
"phasingMinBalanceModel": 0,
"version.OrdinaryPayment": 0,
"phasingVotingModel": 0
},
"senderRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"subtype": 0,
"amountNQT": "2000000000",
"sender": "15295723609781267838",
"recipientRS": "NXT-BMUV-8QQR-47VK-CR7F3",
"recipient": "11580081983047651163",
"ecBlockHeight": 261454,
"deadline": 60,
"transaction": "5759953446299424879",
"timestamp": 43874749,
"height": 2147483647
},
"unsignedTransactionBytes": "0010bd799d023c0010f09c34f225d425306e5be55a494690...",
"broadcasted": true,
"requestProcessingTime": 760,
"transactionBytes": "0010bd799d023c0010f09c34f225d425306e5be55a4946908156072a...",
"fullHash": "6fd876512477ef4fab089ec2ffa084d6db75ba3cd0cef2541675515470dca374",
"transaction": "5759953446299424879"
}
Get Account Phased Transaction Count
Get the number of pending phased transactions associated with an account given the account ID.
Request:
- requestType is getAccountPhasedTransactionCount
- account is the account ID
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response:
- numberOfPhasedTransactions (N) is the number of pending phased transactions
- lastBlock (S) is the last block ID on the blockchain (applies if requireBlock is provided but not requireLastBlock)
- requestProcessingTime (N) is the API request processing time (in millisec)
Get Account Phased Transaction Count Example
http://localhost:7876/nxt?
requestType=getAccountPhasedTransactionCount&
account=15295723609781267838
{
"requestProcessingTime": 1,
"numberOfPhasedTransactions": 3
}
Get Account Phased Transactions
Get pending phased transactions associated with an account given the account ID in reverse chronological creation order.
Request:
- requestType is getAccountPhasedTransactions
- account is the account ID
- firstIndex is a zero-based index to the first phased transaction to retrieve (optional)
- lastIndex is a zero-based index to the last phased transaction to retrieve (optional)
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response: Refer to Get Transaction for details.
Get Account Phased Transactions Example
http://localhost:7876/nxt?
requestType=getAccountPhasedTransactions&
account=15295723609781267838&
lastIndex=0
{
"requestProcessingTime": 2,
"transactions": [
{
"signature": "803d3fad7076bfe3f48a8ced40bb7075539858bf2b9d23b7653671a7204e6108234d...",
"transactionIndex": 0,
"type": 0,
"phased": true,
"ecBlockId": "14167949999961480077",
"signatureHash": "693b18675d813dcc2de1a889fd919d0c4a0eaa679df0b0f8b0ec703bc2e278d4",
"attachment": {
"phasingFinishHeight": 262450,
"phasingHolding": "17091401215301664836",
"phasingQuorum": "500",
"version.Phasing": 1,
"phasingMinBalance": "100",
"phasingMinBalanceModel": 2,
"version.OrdinaryPayment": 0,
"phasingVotingModel": 2
},
"senderRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"subtype": 0,
"amountNQT": "500000000",
"recipientRS": "NXT-BMUV-8QQR-47VK-CR7F3",
"block": "11015494088798322289",
"blockTimestamp": 43957876,
"deadline": 60,
"timestamp": 43957682,
"height": 262418,
"senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
"feeNQT": "2100000000",
"confirmations": 27,
"fullHash": "e57462c46447f8bd7a0bafd9ab65bde8743ca6c13213185271d7ea6c48118861",
"version": 1,
"sender": "15295723609781267838",
"recipient": "11580081983047651163",
"ecBlockHeight": 262409,
"transaction": "13688769565509711077"
}
]
}
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.
Request:
- requestType is getAssetPhasedTransactions
- asset is the asset ID
- account is an account ID of the account that created the phased transactions (optional)
- withoutWhitelist is true to omit phased transactions that include a whitelist (optional)
- firstIndex is a zero-based index to the first phased transaction to retrieve (optional)
- lastIndex is a zero-based index to the last phased transaction to retrieve (optional)
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response: Refer to Get Transaction for details.
Get Asset Phased Transactions Example
http://localhost:7876/nxt?
requestType=getAssetPhasedTransactions&
asset=17091401215301664836
{
"requestProcessingTime": 2,
"transactions": [
{
"signature": "803d3fad7076bfe3f48a8ced40bb7075539858bf2b9d23b7653671a7204e6108234d...",
"transactionIndex": 0,
"type": 0,
"phased": true,
"ecBlockId": "14167949999961480077",
"signatureHash": "693b18675d813dcc2de1a889fd919d0c4a0eaa679df0b0f8b0ec703bc2e278d4",
"attachment": {
"phasingFinishHeight": 262450,
"phasingHolding": "",
"phasingQuorum": "500",
"version.Phasing": 1,
"phasingMinBalance": "100",
"phasingMinBalanceModel": 2,
"version.OrdinaryPayment": 0,
"phasingVotingModel": 2
},
"senderRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"subtype": 0,
"amountNQT": "500000000",
"recipientRS": "NXT-BMUV-8QQR-47VK-CR7F3",
"block": "11015494088798322289",
"blockTimestamp": 43957876,
"deadline": 60,
"timestamp": 43957682,
"height": 262418,
"senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
"feeNQT": "2100000000",
"confirmations": 27,
"fullHash": "e57462c46447f8bd7a0bafd9ab65bde8743ca6c13213185271d7ea6c48118861",
"version": 1,
"sender": "15295723609781267838",
"recipient": "11580081983047651163",
"ecBlockHeight": 262409,
"transaction": "13688769565509711077"
}
]
}
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.
Request:
- requestType is getCurrencyPhasedTransactions
- currency is the currency ID
- account is an account ID of the account that created the phased transactions (optional)
- withoutWhitelist is true to omit phased transactions that include a whitelist (optional)
- firstIndex is a zero-based index to the first phased transaction to retrieve (optional)
- lastIndex is a zero-based index to the last phased transaction to retrieve (optional)
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response: Refer to Get Transaction for details.
Get Currency Phased Transactions Example
http://localhost:7876/nxt?
requestType=getCurrencyPhasedTransactions&
currency=12366259387060174981
{
"requestProcessingTime": 2,
"transactions": [
{
"signature": "ec467483307c73c08e7e9195eeddf23ce129ce30d703881cca505cbb0569c2009...",
"transactionIndex": 0,
"type": 0,
"phased": true,
"ecBlockId": "7353294686633135686",
"signatureHash": "12cc1d54a453c3d1231b991a54f3323db6a51c00387ca5480db268164d5b7cfa",
"attachment": {
"phasingFinishHeight": 263500,
"phasingHolding": "12366259387060174981",
"phasingQuorum": "100",
"version.Phasing": 1,
"phasingMinBalance": "10",
"phasingMinBalanceModel": 3,
"version.OrdinaryPayment": 0,
"phasingVotingModel": 3
},
"senderRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"subtype": 0,
"amountNQT": "800000000",
"recipientRS": "NXT-BMUV-8QQR-47VK-CR7F3",
"block": "699750272975612223",
"blockTimestamp": 44042909,
"deadline": 60,
"timestamp": 44042827,
"height": 263430,
"senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
"feeNQT": "4100000000",
"confirmations": 2,
"fullHash": "5799d135aacf48a317c813fea405c317e7ab90888afb701b92c17914744f244f",
"version": 1,
"sender": "15295723609781267838",
"recipient": "11580081983047651163",
"ecBlockHeight": 263424,
"transaction": "11765882356459739479"
}
]
}
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). Since the corresponding table is trimmed after finish height however, the result will not include those transactions that finished before the last trimming height.
Request:
- requestType is getLinkedPhasedTransactions
- linkedFullHash is the full hash of the transaction transaction
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response:
- transactions (A) is an array of transactions (refer to Get Transaction for details)
- requestProcessingTime (N) is the API request processing time (in millisec)
Get Linked Phased Transactions Example
http://localhost:7876/nxt?
requestType=getLinkedPhasedTransactions&
linkedFullHash=083eba49bb481c38752a14493f0d40b3c60635935f13dd1fb33f6831fb997079
{
"requestProcessingTime": 1,
"transactions": [
{
"signature": "d20a8bb84dcb335182ddc81ceaa1c5464881137d32eb195805ad460c9fcdba0...",
"transactionIndex": 0,
"type": 0,
"phased": true,
"ecBlockId": "4351283327032663440",
"signatureHash": "77dfa3ff467a3b253530ad1b7a227633fa21fa064efe1df8206690bafb06f42c",
"attachment": {
"phasingFinishHeight": 770000,
"version.Message": 1,
"phasingHolding": "0",
"phasingQuorum": "1",
"version.Phasing": 1,
"messageIsText": true,
"phasingLinkedFullHashes": [
"083eba49bb481c38752a14493f0d40b3c60635935f13dd1fb33f6831fb997079"
],
"phasingMinBalance": "0",
"message": "I givef Nxt",
"phasingMinBalanceModel": 0,
"version.OrdinaryPayment": 0,
"phasingVotingModel": 4
},
"senderRS": "NXT-7A48-47JL-T7LD-D5FS3",
"subtype": 0,
"amountNQT": "500000000",
"recipientRS": "NXT-5MYN-AP7M-NKMH-CRQJZ",
"block": "13425992991123879393",
"blockTimestamp": 80870662,
"deadline": 1440,
"timestamp": 80870626,
"height": 768864,
"senderPublicKey": "373522bcd8904f4707472e590cbb67976d40e7af39650ea11cb2be...",
"feeNQT": "300000000",
"confirmations": 11,
"fullHash": "a1d845b3daf08493a2b299639b71422a41fcf923e1b68a4533d2bd0e22ad694d",
"version": 1,
"sender": "12745647715474645062",
"recipient": "12664921794733526996",
"ecBlockHeight": 768850,
"transaction": "10629885842602449057"
}
]
}
Get Phasing Poll
Get the details of a phasing poll.
Request:
- requestType is getPhasingPoll
- transaction is the transaction ID of the phasing poll
- countVotes is true to compute the poll result while the votes are still available (optional)
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response:
- transaction (S) is the transaction ID of the phasing poll
- account (S) is the number of the account that created the phasing poll
- accountRS (S) is the Reed-Solomon address of the account that created the phasing poll
- finishHeight (N) is the block height at which the poll finished or will finish
- votingModel (N) is the voting model (refer to Create Transaction Request)
- quorum (S) is the minimum number of votes needed to approve the poll
- transactionFullHash (S) is the full hash of the phasing poll transaction
- finished (B) is true if the poll is finished, false otherwise (omitted if finished is false)
- result (S) is the sum of the result of each account that approved (voted for) the transaction; an account's result is 1 if the voting model is 0, 4 or 5; it is the NQT, asset QNT or currency QNT balance of the account if the voting model is 1, 2 or 3 respectively; however, the result is 0 if minBalance is not met
- approved (B) is true if the poll was approved, false otherwise
- minBalance (S) is the required minimum balance of voting accounts to be eligible to vote
- minBalanceModel (N) is the minimum balance model (refer to Create Transaction Request)
- hashedSecret (S) is the hash of a secret that must be included in each approval (vote) transaction for the approval to be accepted (refer to Create Transaction Request)
- linkedFullHashes (A) is an array of full hashes of linked transactions (omitted if votingModel != 4)
- whitelist (A) is an array of whitelist objects containing the following two fields (omitted if votingModel != 5):
- whitelisted (S) is the number of the whitelisted account
- whitelistedRS (S) is the Reed-Solomon address of the whitelisted account
- lastBlock (S) is the last block ID on the blockchain (applies if requireBlock is provided but not requireLastBlock)
- requestProcessingTime (N) is the API request processing time (in millisec)
Get Phasing Poll Example
http://localhost:7876/nxt?
requestType=getPhasingPoll&
transaction=15402897900571339064
{
"votingModel": 0,
"quorum": "2",
"transactionFullHash": "38292a530816c2d5693bf5d0afb20847a3c4d2f37c3665fd294a7d2fdc278d56",
"finished": true,
"whitelist": [
{
"whitelistedRS": "NXT-BMUV-8QQR-47VK-CR7F3",
"whitelisted": "11580081983047651163"
},
{
"whitelistedRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"whitelisted": "15295723609781267838"
}
],
"requestProcessingTime": 1,
"result": "2",
"approved": true,
"minBalance": "0",
"accountRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"finishHeight": 259600,
"minBalanceModel": 0,
"transaction": "15402897900571339064",
"account": "15295723609781267838",
"hashedSecret": ""
}
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.
Request:
- requestType is getPhasingPollVote
- transaction is the phased transaction ID
- account is the account ID of a voter in the poll
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response:
- voter (S) is the account ID of the voter in the poll
- voterRS (S) is the Reed-Solomon address of the voter
- transaction (S) is the phased transaction ID
- lastBlock (S) is the last block ID on the blockchain (applies if requireBlock is provided but not requireLastBlock)
- requestProcessingTime (N) is the API request processing time (in millisec)
Get Phasing Poll Vote Example
http://localhost:7876/nxt?
requestType=getPhasingPollVote&
transaction=12580288379938056583&
account=15295723609781267838
{
"voterRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"voter": "15295723609781267838",
"requestProcessingTime": 1,
"transaction": "9761138556025135837"
}
Get Phasing Poll Votes
Get all cast phasing poll votes in a phasing poll given a phased transaction ID, if they are still available.
Request:
- requestType is getPhasingPollVotes
- transaction is the phased transaction ID
- firstIndex is a zero-based index to the first vote to retrieve (optional)
- lastIndex is a zero-based index to the last vote to retrieve (optional)
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response: Refer to Get Phasing Poll Vote
Get Phasing Poll Votes Example
http://localhost:7876/nxt?
requestType=getPhasingPollVotes&
account=12580288379938056583
{
"votes": [
{
"voterRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"voter": "15295723609781267838",
"transaction": "9761138556025135837"
}
],
"requestProcessingTime": 2
}
Get Phasing Polls
Get phasing poll details given multiple phased transaction IDs.
Request:
- requestType is getPhasingPolls
- transaction is one of the multiple phased transaction IDs
- transaction is one of the multiple phased transaction IDs
⋮
- countVotes is true to compute the poll result while the votes are still available (optional)
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response: Refer to Get Phasing Poll.
Get Phasing Polls Example
http://localhost:7876/nxt?
requestType=getPhasingPolls&
transaction=12580288379938056583&
transaction=13688769565509711077&
countVotes=true
{
"polls": [
{
"votingModel": 1,
"quorum": "100000000000",
"transactionFullHash": "87a92edaa02996aeaf59a619ca513563775870c2b8ca490b61b02535745cdd34",
"finished": true,
"whitelist": [],
"result": "186700000000",
"approved": true,
"minBalance": "10000000000",
"accountRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"finishHeight": 262450,
"minBalanceModel": 1,
"transaction": "12580288379938056583",
"account": "15295723609781267838",
"hashedSecret": ""
},
{
"votingModel": 2,
"quorum": "500",
"transactionFullHash": "e57462c46447f8bd7a0bafd9ab65bde8743ca6c13213185271d7ea6c48118861",
"finished": true,
"whitelist": [],
"result": "500",
"holding": "17091401215301664836",
"approved": true,
"minBalance": "100",
"accountRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"finishHeight": 262450,
"minBalanceModel": 2,
"transaction": "13688769565509711077",
"account": "15295723609781267838",
"hashedSecret": ""
}
],
"requestProcessingTime": 1
}
Get Voter Phased Transactions
Get pending phased transactions which include a whitelist in reverse chronological creation order. These transactions can be considered transaction approval requests.
Request:
- requestType is getVoterPhasedTransactions
- account is a whitelisted account ID included in the phased transactions
- firstIndex is a zero-based index to the first phased transaction to retrieve (optional)
- lastIndex is a zero-based index to the last phased transaction to retrieve (optional)
- requireBlock is the block ID of a block that must be present in the blockchain during execution (optional)
- requireLastBlock is the block ID of a block that must be last in the blockchain during execution (optional)
Response: Refer to Get Transaction for details.
Get Voter Phased Transactions Example
http://localhost:7876/nxt?
requestType=getVoterPhasedTransactions&
account=15295723609781267838
{
"requestProcessingTime": 1,
"transactions": [
{
"signature": "e527fce6591049b61d232ebbf4171319ae4e208f34d8a055ffb09f07dec7d9033527...",
"transactionIndex": 0,
"type": 0,
"phased": true,
"ecBlockId": "13625660527605830055",
"signatureHash": "2a3cc644b1cb48130a172de92a418d48522b45a25a36d4d48c2347f032e430ab",
"attachment": {
"phasingFinishHeight": 263850,
"phasingHolding": "0",
"phasingQuorum": "2",
"version.Phasing": 1,
"phasingWhitelist": [
"11580081983047651163",
"15295723609781267838"
],
"phasingMinBalance": "0",
"phasingMinBalanceModel": 0,
"version.OrdinaryPayment": 0,
"phasingVotingModel": 0
},
"senderRS": "NXT-4VDY-LNVT-LMAY-FMCKA",
"subtype": 0,
"amountNQT": "1100000000",
"recipientRS": "NXT-BMUV-8QQR-47VK-CR7F3",
"block": "16550954176569210781",
"blockTimestamp": 44074579,
"deadline": 1440,
"timestamp": 44074556,
"height": 263813,
"senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
"feeNQT": "200000000",
"confirmations": 0,
"fullHash": "b54a7e14c910e0750af0b29c0328347e27411dbe5d158d5d358ee2165b781968",
"version": 1,
"sender": "15295723609781267838",
"recipient": "11580081983047651163",
"ecBlockHeight": 263804,
"transaction": "8493807353039047349"
}
]
}