Prizm API Examples

Examples of PRIZM API calls are collected on this page, individually linked from the main PRIZM API page. The organization and ordering is the same for both pages so that the section numbers in the table of contents are identical. The preliminary sections preceding the examples simply link back to the main page.

Prizm API

Create transaction

Delete Account Property

Request:

http://localhost:9976/prizm?
  requestType=deleteAccountProperty&
  recipient=PRIZM-7A48-47JL-T7LD-D5FS3&
  property=testkey1&
  secretPhrase=iWontTellYou&
  feeNQT=100000000&
  deadline=60

Response:

{
  "signatureHash": "4ff58a03d056ee8a3fee89766bf8e4acd008c2147216...",
  "transactionJSON": {
    "senderPublicKey": "373522bcd8904f4707472e590cbb67976d40e7af...",
    "signature": "26ed697fc82f3b15e6d2c972eff5b195445314aa4bacc8...",
    "feeNQT": "100000000",
    "type": 1,
    "fullHash": "33f7edaec1034153f8e28a996b13b2b2665d0d0a3e4a194...",
    "version": 1,
    "phased": false,
    "ecBlockId": "10023643060833833497",
    "signatureHash": "4ff58a03d056ee8a3fee89766bf8e4acd008c21472...",
    "attachment": {
        "property": "940296349549404868",
        "version.AccountPropertyDelete": 1
    },
    "senderRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
    "subtype": 11,
    "amountNQT": "0",
    "sender": "12745647715474645062",
    "recipientRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
    "recipient": "12745647715474645062",
    "ecBlockHeight": 754255,
    "deadline": 60,
    "transaction": "5999080309032613683",
    "timestamp": 80189128,
    "height": 2147483647
  },
  "unsignedTransactionBytes": "011bc896c7043c00373522bcd8904f4707472e590cbb67976d40e7af39650ea11c...",
  "broadcasted": false,
  "requestProcessingTime": 3,
  "transactionBytes": "011bc896c7043c00373522bcd8904f4707472e590cbb67976d40e7af39650ea11cb2be5734...",
  "fullHash": "33f7edaec1034153f8e28a996b13b2b2665d0d0a3e4a1942718aa480c6097cf6",
  "transaction": "5999080309032613683"
}

Get Account

Request:

http://localhost:9976/prizm?
  requestType=getAccount&
  account=PRIZM-4VNQ-RWZC-4WWQ-GVM8S

Response:

{
 "unconfirmedBalanceNQT": "2501162882344",
 "effectiveBalancePrizm": 13983,
 "forgedBalanceNQT": "0",
 "balanceNQT": "2501162882344",
 "publicKey": "73080c6a224062660184f10ebb7fb431d4593...",
 "requestProcessingTime": 2,
 "accountRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
 "name": "mystical",
 "account": "17013046603665206934",
}

Get Account Block Count

Request:

http://localhost:9976/prizm?
  requestType=getAccountBlockCount&
  account=7114946486381367146

Response:

{
 "numberOfBlocks": 460,
 "requestProcessingTime": 70
}

Get Account Block Ids

Request:

http://localhost:9976/prizm?
  requestType=getAccountBlockIds&
  account=7114946486381367146&
  lastIndex=5

Response:

{
 "blockIds": [
  "6021945980475236545",
  "11040962152457477526",
  "1157648883168692101",
  "9322994768555364845",
  "12862636636638339558",
  "11535040705139271493"
 ],
 "requestProcessingTime": 3
}

Get Account Blocks

Request:

http://localhost:9976/prizm?
  requestType=getAccountBlocks&
  account=7114946486381367146&
  lastIndex=0

Response:

{
 "blocks": [
  {
   "previousBlockHash": "bd8948556e968f1d532cd286a5dd8fde0159d7950467f1ed8fbf26a31d663e99",
   "payloadLength": 386,
   "totalAmountNQT": "0",
   "generationSignature": "74138446cacdb30075492670f7e24fb839434818cb877bba174e37361fc899a1",
   "generator": "7114946486381367146",
   "generatorPublicKey": "dbc809e8237914f25add0d349ea16b2ac05cae6882d0a1782d23605af264d97a",
   "baseTarget": "325377698",
   "payloadHash": "32df67383f63b74f1331bbdb6f1be424c87a1e6423fc7091d81683481eb6c4ca",
   "generatorRS": "PRIZM-TMVC-69YC-SJB4-8YCH7",
   "nextBlock": "3553212706398858282",
   "numberOfTransactions": 2,
   "blockSignature": "d30e3f95d547fa922feb31303f877a345d0ad8c232778a4507adf9082b5df3...",
   "transactions": [
    "1199750337785535382",
    "8975701802988160413"
   ],
   "version": 3,
   "totalFeeNQT": "200000000",
   "previousBlock": "2130086549390920125",
   "block": "6021945980475236545",
   "height": 278953,
   "timestamp": 30130340
  }
 ],
 "requestProcessingTime": 3
}

Get Account Id

Request:

http://localhost:9976/prizm?
  requestType=getAccountId&
  secretPhrase=IWontTellYou

Response:

{
 "accountRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
 "publicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
 "requestProcessingTime": 2,
 "account": "15323192282528158131"
}

Get Account Ledger

Request:

http://localhost:9976/prizm?
  requestType=getAccountLedger&
  account=PRIZM-7A48-47JL-T7LD-D5FS3

Response:

{
  "entries": [
    {
      "change": "100",
      "eventType": "CURRENCY_OFFER_EXPIRED",
      "ledgerId": "532246",
      "holding": "6112509426732269765",
      "isTransactionEvent": true,
      "balance": "90000",
      "holdingType": "UNCONFIRMED_CURRENCY_BALANCE",
      "accountRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
      "block": "2303344830040052747",
      "event": "13236557417702245931",
      "account": "12745647715474645062",
      "height": 736757,
      "timestamp": 78995635
    }
  ],
    "requestProcessingTime": 1
}

Get Account Ledger Entry

Request:

http://localhost:9976/prizm?
  requestType=getAccountLedgerEntry&
  ledgerId=532246

Response:

{
  "change": "100",
  "eventType": "CURRENCY_OFFER_EXPIRED",
  "requestProcessingTime": 1,
  "ledgerId": "532246",
  "holding": "6112509426732269765",
  "isTransactionEvent": true,
  "balance": "90000",
  "holdingType": "UNCONFIRMED_CURRENCY_BALANCE",
  "accountRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
  "block": "2303344830040052747",
  "event": "13236557417702245931",
  "account": "12745647715474645062",
  "height": 736757,
  "timestamp": 78995635
}

Get Account Lessors

Request:

http://localhost:9976/prizm?
  requestType=getAccountLessors&
  account=7114946486381367146&
  height=282497

Response:

{
 "lessors": [
  {
   "guaranteedBalanceNQT": "2643314085738687",
   "lessorRS": "PRIZM-MRBN-8DFH-PFMK-A4DBM",
   "lessor": "9918441724915080500"
  }
 ],
 "accountRS": "PRIZM-TMVC-69YC-SJB4-8YCH7",
 "requestProcessingTime": 1,
 "account": "7114946486381367146",
 "height": 282497
}

Get Account Properties

Request:

http://localhost:9976/prizm?
  requestType=getAccountProperties&
  recipient=PRIZM-7A48-47JL-T7LD-D5FS3

Response:

{
  "recipientRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
  "recipient": "12745647715474645062",
  "requestProcessingTime": 0,
  "properties": [
    {
      "setterRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
      "property": "testkey1",
      "setter": "12745647715474645062",
      "value": "testvalue1"
    }
  ]
}

Get Account Public Key

Request:

http://localhost:9976/prizm?
  requestType=getAccountPublicKey&
  account=PRIZM-L6FM-89WK-VK8P-FCRBB

Response:

{
 "publicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d...",
 "requestProcessingTime": 36
}

Get Account Transaction Ids

Request:

http://localhost:9976/prizm?
  requestType=getAccountTransactionIds&
  account=PRIZM-L6FM-89WK-VK8P-FCRBB

Response:

{
 "transactionIds": [
  "15200507403046301754",
  "10900022216391397990"
 ],
 "requestProcessingTime": 1
}

Get Account Transactions

Request:

http://localhost:9976/prizm?
  requestType=getAccountTransactions&
  account=PRIZM-L6FM-89WK-VK8P-FCRBB

Response:

{
 "requestProcessingTime": 1,
 "transactions": [
  {
   "senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
   "signature": "5f0378b7390ff5a815eadd1354de533eef682f139362b153576e2207320a6...",
   "feeNQT": "100000000",
   "transactionIndex": 2,
   "type": 0,
   "confirmations": 1704,
   "fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
   "version": 1,
   "ecBlockId": "17321329645912574173",
   "signatureHash": "b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7",
   "senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
   "subtype": 0,
   "amountNQT": "100000000",
   "sender": "15323192282528158131",
   "recipientRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
   "recipient": "17013046603665206934",
   "ecBlockHeight": 275727,
   "block": "8455642159445842600",
   "blockTimestamp": 29797208,
   "deadline": 60,
   "transaction": "15200507403046301754",
   "timestamp": 29796934,
   "height": 275730
  },
  {
   "senderPublicKey": "73080c6a224062660184f10ebb7fb431d459364a12403320c7f601f9d75cc547",
   "signature": "7f4a5b70e3f91dd1e7a089c7985bb08f7035666dbfe3e857e706f08ad93f6...",
   "feeNQT": "100000000",
   "transactionIndex": 0,
   "type": 0,
   "confirmations": 1706,
   "fullHash": "6612e07b74a84497b02d5bafea020391dcefadc157dc1cbd56611c66dc11f974",
   "version": 1,
   "ecBlockId": "4218793004869721496",
   "signatureHash": "0fc3d917e37111752004ac13a280ea121799388ff7aaf611f22f3ce93f1df5e0",
   "attachment": {
    "version.PublicKeyAnnouncement": 1,
    "recipientPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c"
   },
   "senderRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
   "subtype": 0,
   "amountNQT": "200000000",
   "sender": "17013046603665206934",
   "recipientRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
   "recipient": "15323192282528158131",
   "ecBlockHeight": 275723,
   "block": "14241452309033661857",
   "blockTimestamp": 29796841,
   "deadline": 60,
   "transaction": "10900022216391397990",
   "timestamp": 29796542,
   "height": 275728
  }
 ]
}

Get Balance

Request:

http://localhost:9976/prizm?
  requestType=getBalance&
  account=7114946486381367146

Response:

{
 "unconfirmedBalanceNQT": "9246231058415",
 "guaranteedBalanceNQT": "9242231058415",
 "effectiveBalancePrizm": 92422,
 "forgedBalanceNQT": "260560000000",
 "balanceNQT": "9246231058415",
 "requestProcessingTime": 1
}

Get Blockchain Transactions

Request:

http://localhost:9976/prizm?
  requestType=getBlockchainTransactions&
  account=PRIZM-4VDY-LNVT-LMAY-FMCKA&
  lastIndex=0

Response:

{
 "requestProcessingTime": 2,
 "transactions": [
  {
   "signature": "0bc2045c2e4291e9595702fc6a9e805f11b65a88a867d515e44b980ef72b440a2...",
   "transactionIndex": 0,
   "type": 0,
   "phased": false,
   "ecBlockId": "441034190304176853",
   "signatureHash": "31f92d5612115e174748c7a261cd0412e00028639301aae0f0c1ddfc7618b7e7",
   "attachment": {
    "version.OrdinaryPayment": 0
   },
   "senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
   "subtype": 0,
   "amountNQT": "1400000000",
   "recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
   "block": "6752144003309284467",
   "blockTimestamp": 46567698,
   "deadline": 1440,
   "timestamp": 46567612,
   "height": 291611,
   "senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
   "feeNQT": "100000000",
   "confirmations": 2046,
   "fullHash": "a26a2a36086e5d13f069dd9da06ce4e6b0418e9a299bec0cda39bfa04a2ca5e3",
   "version": 1,
   "sender": "15295723609781267838",
   "recipient": "11580081983047651163",
   "ecBlockHeight": 291600,
   "transaction": "1395392441102264994"
  }
 ]
}

Get Guaranteed Balance

Request:

http://localhost:9976/prizm?
  requestType=getGuaranteedBalance&
  account=7114946486381367146&
  numberOfConfirmations=1440

Response:

{
 "guaranteedBalanceNQT": "9242231058415",
 "requestProcessingTime": 0
}

Get Unconfirmed Transaction Ids

Request:

http://localhost:9976/prizm?
  requestType=getUnconfirmedTransactionIds&
  account=PRIZM-L6FM-89WK-VK8P-FCRBB

Response:

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

Get Unconfirmed Transactions

Request:

http://localhost:9976/prizm?
  requestType=getUnconfirmedTransactions&
  account=PRIZM-L6FM-89WK-VK8P-FCRBB

Response:

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

Search Accounts

Request:

http://localhost:9976/prizm?
  requestType=searchAccounts&
  query=testnet AND tyler

Response:

{
 "accounts": [
  {
   "accountRS": "PRIZM-7C4U-3Z9K-GZM8-CU8EJ",
   "name": "Tyler Jordan",
   "description": "testnet account",
   "account": "12119426358687475802"
  }
 ],
 "requestProcessingTime": 16
}

Send Money

Request:

http://localhost:9976/prizm?
  requestType=sendMoney&
  secretPhrase=IWontTellYou&
  recipient=PRIZM-4VNQ-RWZC-4WWQ-GVM8S&
  amountNQT=100000000&
  feeNQT=100000000&
  deadline=60

Response:

{
 "signatureHash": "b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7",
 "unsignedTransactionBytes": "001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143...",
 "transactionJSON": {
  "senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
  "signature": "5f0378b7390ff5a815eadd1354de533eef682f139362b153576e2207320a6...",
  "feeNQT": "100000000",
  "type": 0,
  "fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
  "version": 1,
  "ecBlockId": "17321329645912574173",
  "signatureHash": "b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7",
  "senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
  "subtype": 0,
  "amountNQT": "100000000",
  "sender": "15323192282528158131",
  "recipientRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
  "recipient": "17013046603665206934",
  "ecBlockHeight": 275727,
  "deadline": 60,
  "transaction": "15200507403046301754",
  "timestamp": 29796934,
  "height": 2147483647
 },
 "broadcasted": true,
 "requestProcessingTime": 8475,
 "transactionBytes": "001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143...",
 "fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
 "transaction": "15200507403046301754"
}

Set Account Info

Request:

http://localhost:9976/prizm?
  requestType=setAccountInfo&
  secretPhrase=IWontTellYou&
  name=iwonttellyou
  description=example account
  feeNQT=100000000&
  deadline=60

Response:

{
 "signatureHash": "15917aafd59ad9cece7dfc127ab256711d1c58a8ed1a0dc7334949ca826d8a32",
 "unsignedTransactionBytes": "0115dfeecb013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b...",
 "transactionJSON": {
  "senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
  "signature": "3f5167a3a23677c85aba7fbbc8bc31cddf540a632abebee4a80fe08ba92b9a0...",
  "feeNQT": "100000000",
  "type": 1,
  "fullHash": "2d31c26aa2b0ae4cf233cc4035c555bca0c579bdcef24bc9819132dc2ce5b2e5",
  "version": 1,
  "ecBlockId": "17558522603047297060",
  "signatureHash": "15917aafd59ad9cece7dfc127ab256711d1c58a8ed1a0dc7334949ca826d8a32",
  "attachment": {
   "name": "iwonttellyou",
   "description": "example account",
   "version.AccountInfo": 1
  },
  "senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
  "subtype": 5,
  "amountNQT": "0",
  "sender": "15323192282528158131",
  "ecBlockHeight": 279080,
  "deadline": 60,
  "transaction": "5525548004452479277",
  "timestamp": 30142175,
  "height": 2147483647
 },
 "broadcasted": true,
 "requestProcessingTime": 8553,
 "transactionBytes": "0115dfeecb013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b...",
 "fullHash": "2d31c26aa2b0ae4cf233cc4035c555bca0c579bdcef24bc9819132dc2ce5b2e5",
 "transaction": "5525548004452479277"
}

Set Account Property

Request:

http://localhost:9976/prizm?requestType=setAccountProperty&secretPhrase=
iwonttellyou&property=country&value=switzerland&recipient=
PRIZM-EZQ9-35P5-XZ8C-4LW87&feeNQT=100000000&deadline=60

The request is shown above in URL format for consistency. The actual request must be an HTTP POST request with a multipart content type. For example, the corresponding cURL command is as follows:

[cURL command?]

Response:

{
    "signatureHash": "34a690abc9f7fe4749da49d996e875e961aa0d38d6b80cdca9a01a7614004089",
    "transactionJSON": {
        "senderPublicKey": "b0db10704a831f1a0fd028e947784811e88fbe0fde25dc1f68209a2d9f93be13",
        "signature": "f5fd4b881c5625c778ffe38bced33d44231eda406e95d9068dea69407ea3370dc873f52a123a0cbe590ecf4adf2a3c6238dc26c73ee63aeb7ac4331958b53a1e",
        "feeNQT": "100000000",
        "type": 1,
        "fullHash": "d94baf764f0b7e47dbbe30c5aef1694fef6dfd2ecc7c86e29eefee7e6d1b2b39",
        "version": 1,
        "phased": false,
        "ecBlockId": "1026208230615777523",
        "signatureHash": "34a690abc9f7fe4749da49d996e875e961aa0d38d6b80cdca9a01a7614004089",
        "attachment": {
            "property": "\"switzerland\"",
            "value": "\"country\"",
            "version.AccountProperty": 1
        },
        "senderRS": "PRIZM-EZQ9-35P5-XZ8C-4LW87",
        "subtype": 10,
        "amountNQT": "0",
        "sender": "2493747385666535111",
        "recipientRS": "PRIZM-EZQ9-35P5-XZ8C-4LW87",
        "recipient": "2493747385666535111",
        "ecBlockHeight": 684730,
        "deadline": 360,
        "transaction": "5151567459679947737",
        "timestamp": 72072027,
        "height": 2147483647
    },
    "unsignedTransactionBytes": "011a5bbb4b046801b0db10704a831f1a0fd028e947784811e88fbe0fde25dc1f68209a2d9f93be13c77e36ea08929b22000000000000000000e1f5050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ba720a00f3806fdbf2d23d0e010d22737769747a65726c616e64220922636f756e74727922",
    "broadcasted": true,
    "requestProcessingTime": 83,
    "transactionBytes": "011a5bbb4b046801b0db10704a831f1a0fd028e947784811e88fbe0fde25dc1f68209a2d9f93be13c77e36ea08929b22000000000000000000e1f505000000000000000000000000000000000000000000000000000000000000000000000000f5fd4b881c5625c778ffe38bced33d44231eda406e95d9068dea69407ea3370dc873f52a123a0cbe590ecf4adf2a3c6238dc26c73ee63aeb7ac4331958b53a1e00000000ba720a00f3806fdbf2d23d0e010d22737769747a65726c616e64220922636f756e74727922",
    "fullHash": "d94baf764f0b7e47dbbe30c5aef1694fef6dfd2ecc7c86e29eefee7e6d1b2b39",
    "transaction": "5151567459679947737"

Decrypt From

Request:

http://localhost:9976/prizm?
  requestType=decryptFrom&
  secretPhrase=IWontTellYou&
  account=PRIZM-L6FM-89WK-VK8P-FCRBB&
  data=5c30bd27cc86a8ab0349aaf66deae3c0a9db5675b5c4ba973dd47f37e06157...&
  nonce=7f3c9082c73a7bd825aa48d23fc138fd05a466700ff9fc3a040bbb29d3a60ee1&

Response:

{
 "decryptedMessage": "test message",
 "requestProcessingTime": 2
}

Download Prunable Message

Request:

http://localhost:9976/prizm?
  requestType=downloadPrunableMessage&
  transaction=264609232955144528&
  retrieve=true

Response: The file in binary format.

Encrypt To

Request:

http://localhost:9976/prizm?
  requestType=encryptTo&
  secretPhrase=IWontTellYou&
  recipient=PRIZM-L6FM-89WK-VK8P-FCRBB&
  messageToEncrypt=test message&

Response:

{
 "data": "5c30bd27cc86a8ab0349aaf66deae3c0a9db5675b5c4ba973dd47f37e06157...",
 "requestProcessingTime": 48,
 "nonce": "7f3c9082c73a7bd825aa48d23fc138fd05a466700ff9fc3a040bbb29d3a60ee1"
}

Get All Prunable Messages

Request:

http://localhost:9976/prizm?
  requestType=getAllPrunableMessages&
  lastIndex=0

Response:

{
 "prunableMessages": [
  {
   "senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
   "sender": "15295723609781267838",
   "recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
   "recipient": "11580081983047651163",
   "blockTimestamp": 46382992,
   "message": "This is a test prunable plain message.",
   "transaction": "4628485271017409467",
   "isText": true,
   "transactionTimestamp": 46382948
  }
 ],
 "requestProcessingTime": 0
}

Get Prunable Message

Request:

http://localhost:9976/prizm?
  requestType=getPrunableMessage&
  transaction=16832262845403902696&
  secretPhrase=secretPhrase

Response:

{
 "senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
 "encryptedMessage": {
  "data": "ba6baa8361ac5bdb9cb591cee616dc5801a32ddf05b66a4ee527cd8d57b0...",
  "nonce": "41f93e32997c70937a005e5b0b42546a1efa9ea9eb012f98d7a92d0c5a8855a4"
 },
 "sender": "15295723609781267838",
 "decryptedMessage": "test prunable encrypted message",
 "recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
 "recipient": "11580081983047651163",
 "blockTimestamp": 46117919,
 "requestProcessingTime": 3,
 "transaction": "16832262845403902696",
 "encryptedMessageIsText": true,
 "transactionTimestamp": 46117594,
 "isCompressed": true
}

Get Prunable Messages

Request:

http://localhost:9976/prizm?
  requestType=getPrunableMessages&
  account=PRIZM-4VDY-LNVT-LMAY-FMCKA&
  lastIndex=0

Response:

{
 "prunableMessages": [
  {
   "senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
   "encryptedMessage": {
    "data": "ba6baa8361ac5bdb9cb591cee616dc5801a32ddf05b66a4ee527cd8d57b0a...",
    "nonce": "41f93e32997c70937a005e5b0b42546a1efa9ea9eb012f98d7a92d0c5a8855a4"
   },
   "sender": "15295723609781267838",
   "recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
   "recipient": "11580081983047651163",
   "blockTimestamp": 46117919,
   "transaction": "16832262845403902696",
   "isText": true,
   "transactionTimestamp": 46117594,
   "isCompressed": true
  }
 ],
 "requestProcessingTime": 1
}

Get Shared Key

Request:

http://localhost:9976/prizm?
 requestType=getSharedKey&
 account=PRIZM-5MYN-AP7M-NKMH-CRQJZ&
 secretPhrase=IWontTellYou&
 nonce=0102030405060708091011121314151617181920212223242526272829303132

Response:

{
 "sharedKey": "927118faa4850afa7fb3ced7b17eb4968ec4f1c0a405b0890552bb54a67d0eba",
 "requestProcessingTime": 1
}

Read Message

Request:

http://localhost:9976/prizm?
  requestType=readMessage&
  transaction=9908575668289607167&
  secretPhrase=IWontTellYou&

Response:

{
 "requestProcessingTime": 1,
 "message": "Test message.",
 "decryptedMessage": "Test message (encrypted).",
 "decryptedMessageToSelf": "abc123"
}

Send Message

Request:

http://localhost:9976/prizm?
  requestType=sendMessage&
  secretPhrase=IWontTellYou&
  recipient=PRIZM-4VNQ-RWZC-4WWQ-GVM8S&
  message=Test Message.&
  deadline=60

Response:

{
 "signatureHash": "795c58938a50d691f3f2b88bfaf03267236e972e1c068e0a5e11aeb606597f17",
 "unsignedTransactionBytes": "01100593ce013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c14...",
 "transactionJSON": {
  "senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
  "signature": "e916dbbfec51ca97ae76b1b190d1c74328f74c3c43ed3a06f1ca0ea250116...",
  "feeNQT": "100000000",
  "type": 1,
  "fullHash": "ff157b8a125582898b5c50d32a62f725602d5197af236fabcd6ec978b6861528",
  "version": 1,
  "ecBlockId": "6060075251340574063",
  "signatureHash": "795c58938a50d691f3f2b88bfaf03267236e972e1c068e0a5e11aeb606597f17",
  "attachment": {
   "version.Message": 1,
   "messageIsText": true,
   "message": "Test message."
  },
  "senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
  "subtype": 0,
  "amountNQT": "0",
  "sender": "15323192282528158131",
  "recipientRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
  "recipient": "17013046603665206934",
  "ecBlockHeight": 280756,
  "deadline": 60,
  "transaction": "9908575668289607167",
  "timestamp": 30315269,
  "height": 2147483647
 },
 "broadcasted": true,
 "requestProcessingTime": 11379,
 "transactionBytes": "01100593ce013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b...",
 "fullHash": "ff157b8a125582898b5c50d32a62f725602d5197af236fabcd6ec978b6861528",
 "transaction": "9908575668289607167"
}

Verify Prunable Message

Request:

http://localhost:9976/prizm?
  requestType=verifyPrunableMessage&
  message=This is a test prunable plain message.

Response:

{
 "version.PrunablePlainMessage": 1,
 "verify": true,
 "messageIsText": true,
 "messageHash": "da99da8026e30d971340ef54803543af3aa48ea215f80bd9375457bad8effb3f",
 "requestProcessingTime": 1,
 "message": "This is a test prunable plain message."
}

Get Block

Request:

http://localhost:9976/prizm?
  requestType=getBlock&
  block=8455642159445842600

Response:

{
 "previousBlockHash": "c0574d7a7b8497373dbead497c2dc7f60fdcfc8c5a9fcb48f7d373acc9bbb099",
 "payloadLength": 1189,
 "totalAmountNQT": "100000000",
 "generationSignature": "c5098d37267bc71134fc8572a87b4af8727a2e5139d60fe8833fab98af22244a",
 "generator": "11693867635361772359",
 "generatorPublicKey": "fbb72a280228af5c8c74c7c754a290e1539f839553c00bc560cac7bfdb324a7c",
 "baseTarget": "1530224444",
 "payloadHash": "633992be640a593ba04e31ca4028deed70bbf47cff333e2a0372a4e2a4aba205",
 "generatorRS": "PRIZM-TWU9-P3E4-HCDM-CQ9L6",
 "nextBlock": "5937170741469897491",
 "requestProcessingTime": 175,
 "numberOfTransactions": 6,
 "blockSignature": "ff65a82e385c135cf9bd5be0861e9e5d3d3174fbd993e5b7f57935ec4...",
 "transactions": [
  "15184285173972564233",
  "15200280108574630445",
  "15200507403046301754",
  "15900338016714606285",
  "17881859777840687131",
  "18361738217269620028"
 ],
 "version": 3,
 "totalFeeNQT": "600000000",
 "previousBlock": "4005816059437078464",
 "cumulativeDifficulty": "10229109959119715",
 "block": "8455642159445842600",
 "height": 275730,
 "timestamp": 29797208
}

Get Block Id

Request:

http://localhost:9976/prizm?
  requestType=getBlockId&
  height=0

Response:

{
 "block": "2680262203532249785",
 "requestProcessingTime": 1
}

Get Blocks

Request:

http://localhost:9976/prizm?
  requestType=getBlocks&
  lastIndex=1

Response:

{
 "blocks": [
  {
   "previousBlockHash": "f88c75a36317e1795348330cb9a944f33153b517ebdf05d9f3f9a606e997618d",
   "payloadLength": 981,
   "totalAmountNQT": "0",
   "generationSignature": "02f7462b62270c0028c379d838d3a192cf0b782995f3bb1929a5378d26e7e8a9",
   "generator": "2218289317977832095",
   "generatorPublicKey": "98ccf5d5173b13e4c9eab2631372f61ce8ba506db559d73b285073a689872e75",
   "baseTarget": "151761236",
   "payloadHash": "82f8c8ca1f8f2252172ed1e9836d5228432fcb18aecfa7d55a119efcd242321c",
   "generatorRS": "PRIZM-TGNZ-E8VK-69EX-3L9LX",
   "numberOfTransactions": 5,
   "blockSignature": "76a3f7f966256c4985262fb4622190b2b9a19b900f6ce443ab7d581e3176c...",
   "transactions": [
    "10545999940082849455",
    "16751328983055099280",
    "1257496316971695605",
    "2048859884870801838",
    "5105170273384355243"
   ],
   "version": 3,
   "totalFeeNQT": "500000000",
   "previousBlock": "8782326465060769016",
   "block": "7299310714263322546",
   "height": 281683,
   "timestamp": 30416681
  },
  {
   "previousBlockHash": "edc2d65d24883b9b32c46da4eec3792a69a5ff9a9b1e629c4e7e0224432c87c9",
   "payloadLength": 0,
   "totalAmountNQT": "0",
   "generationSignature": "8c4944c7a9ef5700d1b89660fdf83bcbd3dbbfbe191fef005d0f248a573816fe",
   "generator": "15766845356521829337",
   "generatorPublicKey": "11636697faf4ade736cedf6c528bec0142353c4d93fce05cdb818c49e0390422",
   "baseTarget": "303522472",
   "payloadHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
   "generatorRS": "PRIZM-2EYT-C522-VL6G-FQSMP",
   "nextBlock": "7299310714263322546",
   "numberOfTransactions": 0,
   "blockSignature": "90464d183ed01cb0930ef527e746eaa092d1558697c369cc9246add5f6eec...",
   "transactions": [],
   "version": 3,
   "totalFeeNQT": "0",
   "previousBlock": "11185683789279314669",
   "block": "8782326465060769016",
   "height": 281682,
   "timestamp": 30416671
  }
 ],
 "requestProcessingTime": 2
}

Get EC Block

Request:

http://localhost:9976/prizm?
  requestType=getECBlock

Response:

{
 "ecBlockHeight": 281777,
 "requestProcessingTime": 2,
 "ecBlockId": "6565813579609649593",
 "timestamp": 30427868
}

Start / Stop / Get Forging

Request:

http://localhost:9976/prizm?
  requestType=startForging&
  secretPhrase=IWontTellYou

Response:

{
 "requestProcessingTime": 1,
 "deadline": 0,
 "hitTime": 0
}

Get Next Block Generators

Request:

http://localhost:9976/prizm?
  requestType=getNextBlockGenerators&
  limit=3

Response:

{
 "activeCount": 216,
 "lastBlock": "10153073870267066931",
 "generators": [
  {
   "effectiveBalancePrizm": 5400786,
   "accountRS": "PRIZM-8HNT-4ZTF-ZXH3-7RU38",
   "deadline": 4,
   "account": "5982846390354787993",
   "hitTime": 112224054
  },
  {
   "effectiveBalancePrizm": 4061204,
   "accountRS": "PRIZM-HLNR-4HDK-HQUJ-37545",
   "deadline": 35,
   "account": "1263370831364868759",
   "hitTime": 112224085
  },
  {
   "effectiveBalancePrizm": 8847921,
   "accountRS": "PRIZM-ZEKG-CHYB-N8AR-4TQ3U",
   "deadline": 52,
   "account": "3244519536310858286",
   "hitTime": 112224102
  }
  ],
 "requestProcessingTime": 1,
 "timestamp": 112224050,
 "height": 1351776
}

Decode Hallmark

Request:

http://localhost:9976/prizm?
  requestType=decodeHallmark&
  hallmark=827ed8cf83bbd36419002759d960a1bec952f2209db8ed3be958...

Response:

{
 "date": "2013-12-10",
 "valid": true,
 "accountRS": "PRIZM-FEJ5-H4YB-QD3D-2L3W2",
 "host": "nxttyclub.info",
 "weight": 100,
 "requestProcessingTime": 2,
 "account": "31580691533050371"
}

Mark Host

Request:

http://localhost:9976/prizm?
  requestType=markHost&
  secretPhrase=IWontTellYou&
  host=iwonttellyou.com&
  weight=1&
  date=2014-11-22

Response:

{
 "hallmark": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c...",
 "requestProcessingTime": 5
}

Add Peer

Request:

http://localhost:9976/prizm?
  requestType=addPeer&
  peer=example.com

Response:

{
 "hallmark": "4a8fd0f2af5f511e041ad7bee1625ae3a711ddcc056c60cf7ab3523e2c99092f0e006e...",
 "downloadedVolume": 155414,
 "address": "23.95.51.154",
 "weight": 19829,
 "uploadedVolume": 63532,
 "requestProcessingTime": 478,
 "version": "1.9.20",
 "platform": "example.platform",
 "lastUpdated": 37014605,
 "blacklisted": false,
 "announcedAddress": "example.com",
 "application": "PZM",
 "state": 1,
 "shareAddress": true
}

Blacklist API Proxy Peer

Request:

http://localhost:9976/prizm?
  requestType=blacklistAPIProxyPeer&
  peer=52.0.72.67

Response:

{
 "requestProcessingTime": 24,
 "done": true
}

Blacklist Peer

Request:

http://localhost:9976/prizm?
  requestType=blacklistPeer&
  peer=example.com

Response:

{
 "requestProcessingTime": 0,
 "done": true
}

Get Inbound Peers

Request:

http://localhost:9976/prizm?
  requestType=getInboundPeers

Response:

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

Get My Info

Request:

http://localhost:9976/prizm?
  requestType=getMyInfo

Response:

{
 "address": "127.0.0.1",
 "host": "127.0.0.1",
 "requestProcessingTime": 1
}

Get Peer

Request:

http://localhost:9976/prizm?
  requestType=getPeer&
  peer=example.com

Response:

{
 "hallmark": "5f107c33097fc8241f55b9eb23615fe80ed3f87c87dc8c23ed6a08ab9273417a07006...",
 "downloadedVolume": 352,
 "address": "188.226.174.169",
 "inbound": false,
 "weight": 53,
 "uploadedVolume": 2165,
 "requestProcessingTime": 30,
 "version": "1.9.11",
 "platform": "VPS",
 "inboundWebSocket": false,
 "lastUpdated": 48540348,
 "blacklisted": false,
 "announcedAddress": "example.com",
 "application": "PZM",
 "port": 7874,
 "outboundWebSocket": true,
 "lastConnectAttempt": 48540348,
 "state": 1,
 "shareAddress": true
}

Get Peers

Request:

http://localhost:9976/prizm?
  requestType=getPeers&
  state=DISCONNECTED

Response:

{
 "peers": [
  "198.50.146.93",
  "213.46.57.77"
 ],
 "requestProcessingTime": 1
}

Set API Proxy Peer

Request:

http://localhost:9976/prizm?
  requestType=setAPIProxyPeer&
  peer=163.172.154.74

Response:

{
 "downloadedVolume":6176,
 "address":"104.223.53.14",
 "inbound":false,
 "blockchainState":"UP_TO_DATE",
 "weight":0,
 "uploadedVolume":323,
 "services":[
  "HALLMARK","PRUNABLE","API","API_SSL","CORS"
  ],
 "requestProcessingTime":77,
 "version":"1.9.5",
 "platform":"PRIZM-TGFQ-U33C-C37U-CMKWF",
 "inboundWebSocket":false,
 "apiSSLPort":7878,
 "lastUpdated":112610887,
 "blacklisted":false,
 "announcedAddress":"104.223.53.14",
 "apiPort":9976,
 "application":"PZM",
 "port":7874,
 "outboundWebSocket":true,
 "lastConnectAttempt":112610887,
 "state":1,
 "shareAddress":true
}

Event Register

Request:

http://localhost:9976/prizm?
  requestType=eventRegister

Response:

{
 "registered": true,
 "requestProcessingTime": 5780
}

Event Wait

Request:

http://localhost:9976/prizm?
  requestType=eventWait

Response:

{
 "requestProcessingTime": 0,
 "events": [
  {
   "name": "Block.BLOCK_PUSHED",
   "ids": [
    "11748297033830700369"
   ]
  },
  {
   "name": "Transaction.REMOVED_UNCONFIRMED_TRANSACTIONS",
   "ids": []
  },
  {
   "name": "Peer.ADDED_ACTIVE_PEER",
   "ids": [
    "178.150.207.53"
   ]
  }
 ]
}

Get Blockchain Status

Request:

http://localhost:9976/prizm?
  requestType=getBlockchainStatus

Response:

{
 "currentMinRollbackHeight": 445745,
 "numberOfBlocks": 446546,
 "isTestnet": false,
 "includeExpiredPrunable": false,
 "requestProcessingTime": 1,
 "version": "1.9.11",
 "maxRollback": 800,
 "lastBlock": "2164693711802180410",
 "application": "PZM",
 "isScanning": false,
 "isDownloading": false,
 "cumulativeDifficulty": "17966254519242206",
 "lastBlockchainFeederHeight": 446597,
 "maxPrunableLifetime": 1209600,
 "time": 48539846,
 "lastBlockchainFeeder": "84.253.125.186"
}

Get Constants

Request:

http://localhost:9976/prizm?
  requestType=getConstants

Response:

{
  "transactionSubTypes":{
    "ArbitraryMessage":{
      "isPhasable":true,
      "subtype":0,
      "mustHaveRecipient":false,
      "name":"ArbitraryMessage",
      "canHaveRecipient":true,
      "type":1,
      "isPhasingSafe":false
    },
    "AccountInfo":{
      "isPhasable":true,
      "subtype":5,
      "mustHaveRecipient":false,
      "name":"AccountInfo",
      "canHaveRecipient":false,
      "type":1,
      "isPhasingSafe":true
    }
  },
  "genesisAccountId":"1739068987193023818",
  "genesisBlockId":"2680262203532249785",
  "transactionTypes":{
    "0":{
      "subtypes":{
        "0":{
          "isPhasable":true,
          "subtype":0,
          "mustHaveRecipient":true,
          "name":"OrdinaryPayment",
          "canHaveRecipient":true,
          "type":0,
          "isPhasingSafe":true
        }
      }
    },
    "1":{
      "subtypes":{
        "0":{
          "isPhasable":true,
          "subtype":0,
          "mustHaveRecipient":false,
          "name":"ArbitraryMessage",
          "canHaveRecipient":true,
          "type":1,
          "isPhasingSafe":false
        },
        "5":{
          "isPhasable":true,
          "subtype":5,
          "mustHaveRecipient":false,
          "name":"AccountInfo",
          "canHaveRecipient":false,
          "type":1,
          "isPhasingSafe":true
        }
      }
    }
  },
  "maxPrunableMessageLength":43008,
  "disabledAPITags":[

  ],
  "maxBlockPayloadLength":44880,
  "peerStates":{
    "DISCONNECTED":2,
    "NON_CONNECTED":0,
    "CONNECTED":1
  },
  "epochBeginning":1385294400000,
  "maxArbitraryMessageLength":160,
  "apiTags":{
    "NETWORK":{
      "name":"Networking",
      "enabled":true
    },
    "FORGING":{
      "name":"Forging",
      "enabled":true
    },
    "UTILS":{
      "name":"Utils",
      "enabled":true
    },
    "ACCOUNTS":{
      "name":"Accounts",
      "enabled":true
    },
    "SEARCH":{
      "name":"Search",
      "enabled":true
    },
    "TOKENS":{
      "name":"Tokens",
      "enabled":true
    },
    "INFO":{
      "name":"Server Info",
      "enabled":true
    },
    "TRANSACTIONS":{
      "name":"Transactions",
      "enabled":true
    },
    "DEBUG":{
      "name":"Debug",
      "enabled":true
    },
    "CREATE_TRANSACTION":{
      "name":"Create Transaction",
      "enabled":true
    },
    "BLOCKS":{
      "name":"Blocks",
      "enabled":true
    },
    "DATA":{
      "name":"Tagged Data",
      "enabled":false
    },
    "MESSAGES":{
      "name":"Messages",
      "enabled":true
    },
    "ADDONS":{
      "name":"Add-ons",
      "enabled":true
    }
  },
  "minBalanceModels":{
    "NQT":1
  },
  "hashAlgorithms":{
    "SHA256":2,
    "SHA3":3,
    "SCRYPT":5,
    "RIPEMD160":6,
    "Keccak25":25,
    "RIPEMD160_SHA256":62
  },
  "disabledAPIs":[
    [

    ]
  ],
  "requestTypes":{
    "getAccountPublicKey":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "detectMimeType":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "fileParameter":"file",
      "requirePost":true,
      "enabled":false
    },
    "getBlocks":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getAccountBlockCount":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "decodeFileToken":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "fileParameter":"file",
      "requirePost":true,
      "enabled":true
    },
    "getPlugins":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "addPeer":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getSharedKey":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "decodeToken":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "popOff":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "startForging":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "decodeQRCode":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "eventRegister":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "scan":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "hexConvert":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "encodeQRCode":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getAccount":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getPeer":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getUnconfirmedTransactionIds":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "sendMessage":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "getAllBroadcastedTransactions":{
      "allowRequiredBlockParameters":true,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "getAccountBlocks":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getExpectedTransactions":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "searchAccounts":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getAccountLedger":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getBlockchainTransactions":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "sendMoney":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "getMyInfo":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getStackTraces":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "rsConvert":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "getECBlock":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "generateFileToken":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "fileParameter":"file",
      "requirePost":true,
      "enabled":true
    },
    "markHost":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getTime":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "eventWait":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "generateToken":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "longConvert":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "getBlockId":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getBlockchainStatus":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getConstants":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "getTransaction":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getBlock":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getPrunableMessage":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "broadcastTransaction":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "blacklistPeer":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getGuaranteedBalance":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "fullHashToId":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "stopForging":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "downloadPrunableMessage":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "clearUnconfirmedTransactions":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getBalance":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "setLogging":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getTransactionBytes":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "retrievePrunedTransaction":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "getInboundPeers":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "hash":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "verifyPrunableMessage":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getReferencingTransactions":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getForging":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "readMessage":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "luceneReindex":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "fullReset":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getAccountBlockIds":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "decryptFrom":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getPeers":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "rebroadcastUnconfirmedTransactions":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "setAccountInfo":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "decodeHallmark":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "requeueUnconfirmedTransactions":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "signTransaction":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "trimDerivedTables":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getLog":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "getAccountLedgerEntry":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "approveTransaction":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "parseTransaction":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "shutdown":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "dumpPeers":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":true,
      "enabled":true
    },
    "getAllPrunableMessages":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "retrievePrunedData":{
      "allowRequiredBlockParameters":false,
      "requirePassword":true,
      "requireBlockchain":true,
      "requirePost":true,
      "enabled":true
    },
    "getUnconfirmedTransactions":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "encryptTo":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getState":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "getAccountId":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "getPrunableMessages":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    },
    "calculateFullHash":{
      "allowRequiredBlockParameters":false,
      "requirePassword":false,
      "requireBlockchain":false,
      "requirePost":false,
      "enabled":true
    },
    "getAccountProperties":{
      "allowRequiredBlockParameters":true,
      "requirePassword":false,
      "requireBlockchain":true,
      "requirePost":false,
      "enabled":true
    }
  }
}

Get Plugins

Request:

http://localhost:9976/prizm?
  requestType=getPlugins

Response:

{
 "plugins": [
  "hello_world"
 ],
 "requestProcessingTime": 9
}

Get State

Request:

http://localhost:9976/prizm?
  requestType=getState

Response:

{
 "maxMemory": 900726784,
 "isDownloading": false,
 "cumulativeDifficulty": "17966254519242206",
 "freeMemory": 36399744,
 "peerPort": 7874,
 "availableProcessors": 4,
 "currentMinRollbackHeight": 445745,
 "requestProcessingTime": 125533,
 "version": "1.9.19",
 "numberOfActivePeers": 10,
 "maxPrunableLifetime": 1209600,
 "lastBlockchainFeeder": "84.253.125.186",
 "numberOfPeers": 289,
 "numberOfUnlockedAccounts": 0,
 "includeExpiredPrunable": false,
 "numberOfTransactions": 1325666,
 "maxRollback": 800,
 "isScanning": false,
 "numberOfAssets": 539,
 "numberOfPrunableMessages": 45,
 "numberOfVotes": 106,
 "numberOfAccounts": 111301,
 "numberOfDataTags": 3,
 "needsAdminPassword": false,
 "numberOfBlocks": 446546,
 "isTestnet": false,
 "lastBlock": "2164693711802180410",
 "totalMemory": 235929600,
 "application": "PZM",
 "lastBlockchainFeederHeight": 446597,
 "numberOfTrades": 102458,
 "numberOfTags": 723,
 "isOffline": false,
 "time": 48539770
}

Get Time

Request:

http://localhost:9976/prizm?
  requestType=getTime

Response:

{
 "time": 31184078,
 "requestProcessingTime": 1
}

Decode File Token

Request:

http://localhost:9976/prizm?
  requestType=decodeFileToken&
  file=test.txt&
  token=u8q9ps0gdoo2bl158p4llpar583ld0cgejat9qnrgrgde4l5uscgan7fu25hi...

The request is shown above in URL format for consistency. The actual request must be an HTTP POST request with a multipart content type. For example, the corresponding cURL command is as follows:

curl -F requestType=generateFileToken -F file=@test.txt -F secretPhrase="secretPhrase" http://localhost:9976/nxt

Response:

{
"valid": true,
"accountRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
"requestProcessingTime": 3,
"account": "15295723609781267838",
"timestamp": 49748229
}

Decode Token

Request:

http://localhost:9976/prizm?
  requestType=decodeToken&
  website=test&
  token=u8q9ps0gdoo2bl158p4llpar583ld0cgejat9qnrgrgde4l5ut8bgn...

Response:

{
 "valid": true,
 "accountRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
 "requestProcessingTime": 2,
 "account": "15295723609781267838",
 "timestamp": 49762488
}

Generate File Token

Request:

http://localhost:9976/prizm?
  requestType=generateFileToken&
  secretPhrase=secretPhrase&
  file=test.txt

The request is shown above in URL format for consistency. The actual request must be an HTTP POST request with a multipart content type. For example, the corresponding cURL command is as follows:

curl -F requestType=generateFileToken -F file=@test.txt -F secretPhrase="secretPhrase" http://localhost:9976/nxt

Response:

{
"valid": true,
"accountRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
"requestProcessingTime": 4,
"account": "15295723609781267838",
"timestamp": 49748229,
"token": "u8q9ps0gdoo2bl158p4llpar583ld0cgejat9qnrgrgde4l5uscgan7fu25hi..."
}

Generate Token

Request:

http://localhost:9976/prizm?
  requestType=generateToken&
  secretPhrase=secretPhrase&
  website=test

Response:

{
 "valid": true,
 "accountRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
 "requestProcessingTime": 4,
 "account": "15295723609781267838",
 "timestamp": 49762488,
 "token": "u8q9ps0gdoo2bl158p4llpar583ld0cgejat9qnrgrgde4l5ut8bgn..."
}

Broadcast Transaction

Request:

http://localhost:9976/prizm?
  requestType=broadcastTransaction&
  transactionBytes=001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143...

Response:

{
 "requestProcessingTime": 4,
 "fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
 "transaction": "15200507403046301754"
}

Note: If the transaction has already been broadcast, the following INFO notice appears in the console output and log file: Transaction 15200507403046301754 already in blockchain (or unconfirmed pool), will not broadcast again.

Calculate Full Hash

Request:

http://localhost:9976/prizm?
  requestType=calculateFullHash&
  unsignedTransactionBytes=001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f2...&
  signatureHash=b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7

Response:

{
 "requestProcessingTime": 1,
 "fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1"
}

Get Expected Transactions

Request:

http://localhost:9976/prizm?
  requestType=getExpectedTransactions&
  account=PRIZM-X5A4-FTMJ-J97M-F3ANH

Response:

{
 "expectedTransactions": [
 {
   "senderPublicKey": "aaf2ffc347dae1442f218c17ff9ae1e917ab32af0af779360737f6faf7a4023e",
   "signature": "58720e3cb6cd4a9ad1dcb0bede55952e624b02a125aa0ac5934d7312cf87660147b495...",
   "feeNQT": "100000000",
   "type": 2,
   "fullHash": "79df9c85bc30f4a72c5d1899ce57b6533f321e1412f433fc3975cd4142a3c781",
   "version": 1,
   "phased": false,
   "ecBlockId": "17663518922057624367",
   "signatureHash": "687701be20bfb0935b3165ae31c08b685a173be660a9720ed0319ec17cc646eb",
   "senderRS": "PRIZM-X5A4-FTMJ-J97M-F3ANH",
   "subtype": 3,
   "amountNQT": "0",
   "sender": "15551212561974070530",
   "ecBlockHeight": 820879,
   "deadline": 1440,
   "transaction": "12102351684905000825",
   "timestamp": 80248727,
   "height": 2147483647
  }
 ],
 "requestProcessingTime": 1
}

Get Referencing Transactions

Request:

http://localhost:9976/prizm?
  requestType=getReferencingTransactions&
  transaction=9132239833429154693

Response:

{
 "requestProcessingTime": 1,
 "transactions": [
  {
   "senderPublicKey": "36bb17bc15678804a95ed895d524bb361aa5dfc4e78a800901aefff783f48010",
   "signature": "f39849eee16cd534f86915e22bd41d91fd6e965278242c957422196454deb705aa4...",
   "feeNQT": "100000000",
   "transactionIndex": 0,
   "type": 1,
   "confirmations": 216565,
   "fullHash": "c96b60bafc581891be88eae695f773677fe3cf7322cc149831d70de046041ea7",
   "version": 1,
   "phased": false,
   "ecBlockId": "1861841686166492176",
   "referencedTransactionFullHash": "859b376bbe3bbc7ebd5520d0d3fd20256f921e4c6bc3e...",
   "signatureHash": "0ed3aaabc682d4b5242b69930c0f659b62776b92bc2eecc40e37c895c5260eb4",
   "attachment": {
    "version.Message": 1,
    "messageIsText": true,
    "message": "],\"type\":\"payment\",\"oracles\":[{\"name\":\"nayru\"}]}",
    "version.ArbitraryMessage": 0
   },
   "senderRS": "PRIZM-DRGK-5CLR-35AZ-84R5R",
   "subtype": 0,
   "amountNQT": "0",
   "sender": "7750380612824194513",
   "ecBlockHeight": 614622,
   "block": "13844289828761736561",
   "blockTimestamp": 67496993,
   "deadline": 1440,
   "transaction": "10455204377422490569",
   "timestamp": 67496806,
   "height": 614629
  }
 ]
}

Get Transaction

Request:

http://localhost:9976/prizm?
  requestType=getTransaction&
  transaction=15200507403046301754

Response:

{
 "senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
 "signature": "5f0378b7390ff5a815eadd1354de533eef682f139362b153576e2207320a6...",
 "feeNQT": "100000000",
 "transactionIndex": 2,
 "requestProcessingTime": 2842,
 "type": 0,
 "confirmations": 849,
 "fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
 "version": 1,
 "ecBlockId": "17321329645912574173",
 "signatureHash": "b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7",
 "senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
 "subtype": 0,
 "amountNQT": "100000000",
 "sender": "15323192282528158131",
 "recipientRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
 "recipient": "17013046603665206934",
 "ecBlockHeight": 275727,
 "block": "8455642159445842600",
 "blockTimestamp": 29797208,
 "deadline": 60,
 "transaction": "15200507403046301754",
 "timestamp": 29796934,
 "height": 275730
}

Get Transaction Bytes

Request:

http://localhost:9976/prizm?
  requestType=getTransactionBytes&
  transaction=15200507403046301754

Response:

{
 "unsignedTransactionBytes": "001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473...",
 "requestProcessingTime": 66,
 "confirmations": 1019,
 "transactionBytes": "001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473..."
}

Parse Transaction

Request:

http://localhost:9976/prizm?
  requestType=parseTransaction&
  transactionBytes=001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143...

Response:

{
 "senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
 "signature": "5f0378b7390ff5a815eadd1354de533eef682f139362b153576e2207320a6...",
 "feeNQT": "100000000",
 "requestProcessingTime": 2,
 "type": 0,
 "fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
 "version": 1,
 "ecBlockId": "17321329645912574173",
 "signatureHash": "b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7",
 "senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
 "subtype": 0,
 "amountNQT": "100000000",
 "sender": "15323192282528158131",
 "recipientRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
 "recipient": "17013046603665206934",
 "ecBlockHeight": 275727,
 "verify": true,
 "deadline": 60,
 "transaction": "15200507403046301754",
 "timestamp": 29796934,
 "height": 2147483647
}

Retrieve Pruned Transaction

Request:

http://localhost:9976/prizm?
  requestType=retrievePrunedTransaction&
  transaction=9343032000583494722

Response:

{
 "senderPublicKey": "7c94b068c95edcaf6ad588cda8784c7c27421ac334be092a6b487885f40f4f0c",
 "signature": "a4b4b7829b90ae0aa6c6654d364d23b335c64383bacc0e518b5aa1f2746de706121d308ae11244bf0933eddaed170c958bb9520700d63a7ed9ab30eb766717ca",
 "feeNQT": "320000000",
 "transactionIndex": 0,
 "requestProcessingTime": 0,
 "type": 6,
 "confirmations": 41543,
 "fullHash": "42ece25f1a1ea9815a7e6856635c323810efd2a38686bd57b7241fce28841da0",
 "version": 1,
 "phased": false,
 "ecBlockId": "11517076094591827523",
 "signatureHash": "5202c62fafb4b990313f03cf8882c2bad73c7888790794bb8c46a186abfc34ca",
 "attachment": {
  "filename": "7dba799bc6d4439191f89a88a9e50dad.jpg",
  "data": "ffd8ffe000104a46494600010100000100010000ffdb00430003050805050404050a07070...",
  "name": "Darkwing Duck",
  "channel": "Darkwing Duck",
  "description": "Darkwing Duck",
  "type": "image/jpeg",
  "version.TaggedDataUpload": 1,
  "isText": false,
  "hash": "5fb2f476f2556d15e4d419c6ff10bdbd05a7c5284242eba67c4de1adaee185a2",
  "tags": "Darkwing Duck"
 },
 "senderRS": "PRIZM-K8HZ-VMMS-ZX8E-EY5JR",
 "subtype": 0,
 "amountNQT": "0",
 "sender": "14681874272470211071",
 "ecBlockHeight": 788531,
 "block": "17859315470736709713",
 "blockTimestamp": 78307385,
 "deadline": 1440,
 "transaction": "9343032000583494722",
 "timestamp": 78307322,
 "height": 788546
}

Send Transaction

Request:

http://localhost:9976/prizm?
  requestType=sendTransaction&
  transactionBytes=00109e61b606a0052bdd59320496b133052f58c82e8...

Response:

{
 "requestProcessingTime": 2,
 "fullHash": "799ad836f9c65e2985978123f145130b867bab9a86f6fdabae8e8c8f25c087dc",
 "transaction": "2981038777035168377"
}

Sign Transaction

Request:

http://localhost:9976/prizm?
  requestType=signTransaction&
  unsignedTransactionBytes=00100cfb3c03a00510f09c34f225d425306e5be55a494690...&
  secretPhrase=SecretPhrase

Response:

{
 "signatureHash": "3f4830bf28f105d5075f5e084c36e4582a156e713abfe0bc6ee51cbf8b20f2d2",
 "transactionJSON": {
  "senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
  "signature": "24513e93029688100c5a04183ffddc49812fd7a137a15fb3a2545aa9a2bcb5004a3...",
  "feeNQT": "100000000",
  "type": 0,
  "fullHash": "c34af8f1509e3be79c4562e24125ff2a8f026871fdd1a0366ad315bf8fab76b9",
  "version": 1,
  "phased": false,
  "ecBlockId": "15869644242181198665",
  "signatureHash": "3f4830bf28f105d5075f5e084c36e4582a156e713abfe0bc6ee51cbf8b20f2d2",
  "attachment": {
   "version.OrdinaryPayment": 0
  },
  "senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
  "subtype": 0,
  "amountNQT": "1000000000",
  "sender": "15295723609781267838",
  "recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
  "recipient": "11580081983047651163",
  "ecBlockHeight": 382777,
  "deadline": 1440,
  "transaction": "16662085316881435331",
  "timestamp": 54328076,
  "height": 2147483647
 },
 "verify": true,
 "requestProcessingTime": 5,
 "transactionBytes": "00100cfb3c03a00510f09c34f225d425306e5be55a4946908156072afbead4...",
 "fullHash": "c34af8f1509e3be79c4562e24125ff2a8f026871fdd1a0366ad315bf8fab76b9",
 "transaction": "16662085316881435331"
}

Decode QR Code

Request:

http://localhost:9976/prizm?
  requestType=decodeQRCode&
  qrCodeBase64=/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRo...

Response:

{
    "qrCodeData": "PRIZM-7A48-47JL-T7LD-D5FS3",
    "requestProcessingTime": 15
}

Detect Mime Type

Request:

http://localhost:9976/prizm?
  requestType=detectMimeType&
  data=/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRo...&
  isText=false

Response:

{
"requestProcessingTime": 348,
"type": "image/png"
}

Encode QR Code

Request:

http://localhost:9976/prizm?
  requestType=encodeQRCode&
  qrCodeData=PRIZM-7A48-47JL-T7LD-D5FS3&
  width=100&
  height=100

Response:

{
    "qrCodeBase64": "/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UH...",
    "requestProcessingTime": 15
}

Full Hash To Id

Request:

http://localhost:9976/prizm?
  requestType=fullHashToId&
  fullHash=c34af8f1509e3be79c4562e24125ff2a8f026871fdd1a0366ad315bf8fab76b9

Response:

{
 "stringId": "16662085316881435331",
 "requestProcessingTime": 0,
 "longId": "-1784658756828116285"
}

Hash

Request:

http://localhost:9976/prizm?
  requestType=hash&
  hashAlgorithm=2&
  secret=74657374

Note: 74657374 is the UTF-8 hex string for the secret phrase "test".

Response:

{
 "requestProcessingTime": 1,
 "hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}

Hex Convert

Request:

http://localhost:9976/prizm?
  requestType=hexConvert&
  string=616263

Response:

{
 "binary": "363136323633",
 "text": "abc",
 "requestProcessingTime": 1
}

Long Convert

Request:

http://localhost:9976/prizm?
  requestType=longConvert&
  id=15323192282528158131

Response:

{
 "stringId": "15323192282528158131",
 "requestProcessingTime": 0,
 "longId": "-3123551791181393485"
}

RS Convert

Request:

http://localhost:9976/prizm?
  requestType=rsConvert&
  account=PRIZM-L6FM-89WK-VK8P-FCRBB

Response:

{
 "accountRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
 "requestProcessingTime": 1,
 "account": "15323192282528158131"
}

Clear Unconfirmed Transactions

Request:

http://localhost:9976/prizm?
  requestType=clearUnconfirmedTransactions

Response:

{
 "requestProcessingTime": 814,
 "done": true
}

Dump Peers

Request:

http://localhost:9976/prizm?
  requestType=dumpPeers&
  version=1.9.17&
  connect=true

Response:

{
 "peers": "198.105.122.160; 174.140.167.239; ...",
 "count": 37,
 "requestProcessingTime": 176897
}

Full Reset

Request:

http://localhost:9976/prizm?
  requestType=fullReset

Response:

{
 "requestProcessingTime": 4378,
 "done": true
}

Get All Broadcasted Transactions

Request:

http://localhost:9976/prizm?
  requestType=GetAllBroadcastedTransactions

Response:

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

Get All Waiting Transactions

Request:

http://localhost:9976/prizm?
  requestType=getAllWaitingTransactions

Response:

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

Get Log

Request:

http://localhost:9976/prizm?
  requestType=getLog&
  count=3

Response:

{
 "messages": [
  "2015-04-28 18:26:52 FINE: Known peers: 29\n",
  "2015-04-28 18:27:12 FINE: Got 0 confirmations\n",
  "2015-04-28 18:27:12 FINE: Downloaded 230 blocks\n"
 ],
 "requestProcessingTime": 0
}

Get Stack Traces

Request:

http://localhost:9976/prizm?
  requestType=getStackTrace

Response:

{
 "threads": [

  {
   "trace": [
    "java.lang.Object.wait(Native Method)",
    "java.lang.Object.wait(Object.java:502)",
    "java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)"
   ],
   "name": "Reference Handler",
   "id": 2,
   "state": "WAITING"
  }
 ],
 "requestProcessingTime": 5,
 "locks": []
}

Lucene Reindex

Request:

http://localhost:9976/prizm?
  requestType=luceneReindex

Response:

{
 "requestProcessingTime": 4480,
 "done": true
}

Pop Off

Request:

http://localhost:9976/prizm?
  requestType=popOff&
  numBlocks=1

Response:

{
 "blocks": [
  {
   "previousBlockHash": "5dd57ec106d9ba4cb1442017586b9df23c2c31ec5f1cb46fd3206015a96fd057",
   "payloadLength": 0,
   "totalAmountNQT": "0",
   "generationSignature": "e23740a05b65aa01a890a9ba1c9766183a328455b6e347add727a823e151db99",
   "generator": "16120433118765388429",
   "generatorPublicKey": "f35600023d42e79cbf0518a174141bce1decb13332e397553c3f62df7261414a",
   "baseTarget": "268653798",
   "payloadHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
   "generatorRS": "PRIZM-A6NF-JE4R-XB6L-FAUFZ",
   "nextBlock": "12812496435932308379",
   "numberOfTransactions": 0,
   "blockSignature": "d9aba136c708e4f84b7ae1cf0415b25a75f9eefc8a47b1963b237ada9982a...",
   "transactions": [],
   "version": 3,
   "totalFeeNQT": "0",
   "previousBlock": "5528970115590051165",
   "block": "8125766982300698657",
   "height": 212194,
   "timestamp": 23052841
  }
 ],
 "requestProcessingTime": 109
}

Rebroadcast Unconfirmed Transactions

Request:

http://localhost:9976/prizm?
  requestType=RebroadcastUnconfirmedTransactions

Response:

{
 "requestProcessingTime": 2,
 "done": true
}

Requeue Unconfirmed Transactions

Request:

http://localhost:9976/prizm?
  requestType=requeueUnconfirmedTransactions

Response:

{
 "requestProcessingTime": 1,
 "done": true
}

Retrieve Pruned Data

Request:

http://localhost:9976/prizm?
  requestType=retrievePrunedData

Response:

{
  "numberOfPrunedData": 0,
  "requestProcessingTime": 4604,
  "done": true
}

Scan

Request:

http://localhost:9976/prizm?
  requestType=scan

Response:

{
 "scanTime": 8,
 "requestProcessingTime": 8445,
 "done": true
}

Set Logging

Request:

http://localhost:9976/prizm?
  requestType=setLogging

Response:

{
 "loggingUpdated": true
}

Shutdown

Request:

http://localhost:9976/prizm?
  requestType=shutdown

Response:

{
 "requestProcessingTime": 2,
 "shutdown": true
}

Trim Derived Tables

Request:

http://localhost:9976/prizm?
  requestType=trimDerivedTables

Response:

{
 "requestProcessingTime": 394,
 "done": true
}

Last updated