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.

pagePrizm 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":{