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:

Response:

Get Account Block Count

Request:

Response:

Get Account Block Ids

Request:

Response:

Get Account Blocks

Request:

Response:

Get Account Id

Request:

Response:

Get Account Ledger

Request:

Response:

Get Account Ledger Entry

Request:

Response:

Get Account Lessors

Request:

Response:

Get Account Properties

Request:

Response:

Get Account Public Key

Request:

Response:

Get Account Transaction Ids

Request:

Response:

Get Account Transactions

Request:

Response:

Get Balance

Request:

Response:

Get Blockchain Transactions

Request:

Response:

Get Guaranteed Balance

Request:

Response:

Get Unconfirmed Transaction Ids

Request:

Response:

Get Unconfirmed Transactions

Request:

Response:

Search Accounts

Request:

Response:

Send Money

Request:

Response:

Set Account Info

Request:

Response:

Set Account Property

Request:

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:

Response:

Decrypt From

Request:

Response:

Download Prunable Message

Request:

Response: The file in binary format.

Encrypt To

Request:

Response:

Get All Prunable Messages

Request:

Response:

Get Prunable Message

Request:

Response:

Get Prunable Messages

Request:

Response:

Get Shared Key

Request:

Response:

Read Message

Request:

Response:

Send Message

Request:

Response:

Verify Prunable Message

Request:

Response:

Get Block

Request:

Response:

Get Block Id

Request:

Response:

Get Blocks

Request:

Response:

Get EC Block

Request:

Response:

Start / Stop / Get Forging

Request:

Response:

Get Next Block Generators

Request:

Response:

Decode Hallmark

Request:

Response:

Mark Host

Request:

Response:

Add Peer

Request:

Response:

Blacklist API Proxy Peer

Request:

Response:

Blacklist Peer

Request:

Response:

Get Inbound Peers

Request:

Response:

Get My Info

Request:

Response:

Get Peer

Request:

Response:

Get Peers

Request:

Response:

Set API Proxy Peer

Request:

Response:

Event Register

Request:

Response:

Event Wait

Request:

Response:

Get Blockchain Status

Request:

Response:

Get Constants

Request:

Response:

Get Plugins

Request:

Response:

Get State

Request:

Response:

Get Time

Request:

Response:

Decode File Token

Request:

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:

Response:

Decode Token

Request:

Response:

Generate File Token

Request:

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:

Response:

Generate Token

Request:

Response:

Broadcast Transaction

Request:

Response:

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:

Response:

Get Expected Transactions

Request:

Response:

Get Referencing Transactions

Request:

Response:

Get Transaction

Request:

Response:

Get Transaction Bytes

Request:

Response:

Parse Transaction

Request:

Response:

Retrieve Pruned Transaction

Request:

Response:

Send Transaction

Request:

Response:

Sign Transaction

Request:

Response:

Decode QR Code

Request:

Response:

Detect Mime Type

Request:

Response:

Encode QR Code

Request:

Response:

Full Hash To Id

Request:

Response:

Hash

Request:

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

Response:

Hex Convert

Request:

Response:

Long Convert

Request:

Response:

RS Convert

Request:

Response:

Clear Unconfirmed Transactions

Request:

Response:

Dump Peers

Request:

Response:

Full Reset

Request:

Response:

Get All Broadcasted Transactions

Request:

Response:

Get All Waiting Transactions

Request:

Response:

Get Log

Request:

Response:

Get Stack Traces

Request:

Response:

Lucene Reindex

Request:

Response:

Pop Off

Request:

Response:

Rebroadcast Unconfirmed Transactions

Request:

Response:

Requeue Unconfirmed Transactions

Request:

Response:

Retrieve Pruned Data

Request:

Response:

Scan

Request:

Response:

Set Logging

Request:

Response:

Shutdown

Request:

Response:

Trim Derived Tables

Request:

Response:

Last updated

Was this helpful?