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.

Create transaction

Delete Account Property

Request:
1
http://localhost:9976/prizm?
2
requestType=deleteAccountProperty&
3
recipient=PRIZM-7A48-47JL-T7LD-D5FS3&
4
property=testkey1&
5
secretPhrase=iWontTellYou&
6
feeNQT=100000000&
7
deadline=60
Copied!
Response:
1
{
2
"signatureHash": "4ff58a03d056ee8a3fee89766bf8e4acd008c2147216...",
3
"transactionJSON": {
4
"senderPublicKey": "373522bcd8904f4707472e590cbb67976d40e7af...",
5
"signature": "26ed697fc82f3b15e6d2c972eff5b195445314aa4bacc8...",
6
"feeNQT": "100000000",
7
"type": 1,
8
"fullHash": "33f7edaec1034153f8e28a996b13b2b2665d0d0a3e4a194...",
9
"version": 1,
10
"phased": false,
11
"ecBlockId": "10023643060833833497",
12
"signatureHash": "4ff58a03d056ee8a3fee89766bf8e4acd008c21472...",
13
"attachment": {
14
"property": "940296349549404868",
15
"version.AccountPropertyDelete": 1
16
},
17
"senderRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
18
"subtype": 11,
19
"amountNQT": "0",
20
"sender": "12745647715474645062",
21
"recipientRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
22
"recipient": "12745647715474645062",
23
"ecBlockHeight": 754255,
24
"deadline": 60,
25
"transaction": "5999080309032613683",
26
"timestamp": 80189128,
27
"height": 2147483647
28
},
29
"unsignedTransactionBytes": "011bc896c7043c00373522bcd8904f4707472e590cbb67976d40e7af39650ea11c...",
30
"broadcasted": false,
31
"requestProcessingTime": 3,
32
"transactionBytes": "011bc896c7043c00373522bcd8904f4707472e590cbb67976d40e7af39650ea11cb2be5734...",
33
"fullHash": "33f7edaec1034153f8e28a996b13b2b2665d0d0a3e4a1942718aa480c6097cf6",
34
"transaction": "5999080309032613683"
35
}
36
Copied!

Get Account

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccount&
3
account=PRIZM-4VNQ-RWZC-4WWQ-GVM8S
Copied!
Response:
1
{
2
"unconfirmedBalanceNQT": "2501162882344",
3
"effectiveBalancePrizm": 13983,
4
"forgedBalanceNQT": "0",
5
"balanceNQT": "2501162882344",
6
"publicKey": "73080c6a224062660184f10ebb7fb431d4593...",
7
"requestProcessingTime": 2,
8
"accountRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
9
"name": "mystical",
10
"account": "17013046603665206934",
11
}
Copied!

Get Account Block Count

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountBlockCount&
3
account=7114946486381367146
Copied!
Response:
1
{
2
"numberOfBlocks": 460,
3
"requestProcessingTime": 70
4
}
Copied!

Get Account Block Ids

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountBlockIds&
3
account=7114946486381367146&
4
lastIndex=5
Copied!
Response:
1
{
2
"blockIds": [
3
"6021945980475236545",
4
"11040962152457477526",
5
"1157648883168692101",
6
"9322994768555364845",
7
"12862636636638339558",
8
"11535040705139271493"
9
],
10
"requestProcessingTime": 3
11
}
Copied!

Get Account Blocks

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountBlocks&
3
account=7114946486381367146&
4
lastIndex=0
Copied!
Response:
1
{
2
"blocks": [
3
{
4
"previousBlockHash": "bd8948556e968f1d532cd286a5dd8fde0159d7950467f1ed8fbf26a31d663e99",
5
"payloadLength": 386,
6
"totalAmountNQT": "0",
7
"generationSignature": "74138446cacdb30075492670f7e24fb839434818cb877bba174e37361fc899a1",
8
"generator": "7114946486381367146",
9
"generatorPublicKey": "dbc809e8237914f25add0d349ea16b2ac05cae6882d0a1782d23605af264d97a",
10
"baseTarget": "325377698",
11
"payloadHash": "32df67383f63b74f1331bbdb6f1be424c87a1e6423fc7091d81683481eb6c4ca",
12
"generatorRS": "PRIZM-TMVC-69YC-SJB4-8YCH7",
13
"nextBlock": "3553212706398858282",
14
"numberOfTransactions": 2,
15
"blockSignature": "d30e3f95d547fa922feb31303f877a345d0ad8c232778a4507adf9082b5df3...",
16
"transactions": [
17
"1199750337785535382",
18
"8975701802988160413"
19
],
20
"version": 3,
21
"totalFeeNQT": "200000000",
22
"previousBlock": "2130086549390920125",
23
"block": "6021945980475236545",
24
"height": 278953,
25
"timestamp": 30130340
26
}
27
],
28
"requestProcessingTime": 3
29
}
Copied!

Get Account Id

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountId&
3
secretPhrase=IWontTellYou
Copied!
Response:
1
{
2
"accountRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
3
"publicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
4
"requestProcessingTime": 2,
5
"account": "15323192282528158131"
6
}
Copied!

Get Account Ledger

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountLedger&
3
account=PRIZM-7A48-47JL-T7LD-D5FS3
Copied!
Response:
1
{
2
"entries": [
3
{
4
"change": "100",
5
"eventType": "CURRENCY_OFFER_EXPIRED",
6
"ledgerId": "532246",
7
"holding": "6112509426732269765",
8
"isTransactionEvent": true,
9
"balance": "90000",
10
"holdingType": "UNCONFIRMED_CURRENCY_BALANCE",
11
"accountRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
12
"block": "2303344830040052747",
13
"event": "13236557417702245931",
14
"account": "12745647715474645062",
15
"height": 736757,
16
"timestamp": 78995635
17
}
18
],
19
"requestProcessingTime": 1
20
}
Copied!

Get Account Ledger Entry

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountLedgerEntry&
3
ledgerId=532246
Copied!
Response:
1
{
2
"change": "100",
3
"eventType": "CURRENCY_OFFER_EXPIRED",
4
"requestProcessingTime": 1,
5
"ledgerId": "532246",
6
"holding": "6112509426732269765",
7
"isTransactionEvent": true,
8
"balance": "90000",
9
"holdingType": "UNCONFIRMED_CURRENCY_BALANCE",
10
"accountRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
11
"block": "2303344830040052747",
12
"event": "13236557417702245931",
13
"account": "12745647715474645062",
14
"height": 736757,
15
"timestamp": 78995635
16
}
Copied!

Get Account Lessors

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountLessors&
3
account=7114946486381367146&
4
height=282497
Copied!
Response:
1
{
2
"lessors": [
3
{
4
"guaranteedBalanceNQT": "2643314085738687",
5
"lessorRS": "PRIZM-MRBN-8DFH-PFMK-A4DBM",
6
"lessor": "9918441724915080500"
7
}
8
],
9
"accountRS": "PRIZM-TMVC-69YC-SJB4-8YCH7",
10
"requestProcessingTime": 1,
11
"account": "7114946486381367146",
12
"height": 282497
13
}
Copied!

Get Account Properties

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountProperties&
3
recipient=PRIZM-7A48-47JL-T7LD-D5FS3
Copied!
Response:
1
{
2
"recipientRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
3
"recipient": "12745647715474645062",
4
"requestProcessingTime": 0,
5
"properties": [
6
{
7
"setterRS": "PRIZM-7A48-47JL-T7LD-D5FS3",
8
"property": "testkey1",
9
"setter": "12745647715474645062",
10
"value": "testvalue1"
11
}
12
]
13
}
Copied!

Get Account Public Key

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountPublicKey&
3
account=PRIZM-L6FM-89WK-VK8P-FCRBB
Copied!
Response:
1
{
2
"publicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d...",
3
"requestProcessingTime": 36
4
}
Copied!

Get Account Transaction Ids

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountTransactionIds&
3
account=PRIZM-L6FM-89WK-VK8P-FCRBB
Copied!
Response:
1
{
2
"transactionIds": [
3
"15200507403046301754",
4
"10900022216391397990"
5
],
6
"requestProcessingTime": 1
7
}
Copied!

Get Account Transactions

Request:
1
http://localhost:9976/prizm?
2
requestType=getAccountTransactions&
3
account=PRIZM-L6FM-89WK-VK8P-FCRBB
Copied!
Response:
1
{
2
"requestProcessingTime": 1,
3
"transactions": [
4
{
5
"senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
6
"signature": "5f0378b7390ff5a815eadd1354de533eef682f139362b153576e2207320a6...",
7
"feeNQT": "100000000",
8
"transactionIndex": 2,
9
"type": 0,
10
"confirmations": 1704,
11
"fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
12
"version": 1,
13
"ecBlockId": "17321329645912574173",
14
"signatureHash": "b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7",
15
"senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
16
"subtype": 0,
17
"amountNQT": "100000000",
18
"sender": "15323192282528158131",
19
"recipientRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
20
"recipient": "17013046603665206934",
21
"ecBlockHeight": 275727,
22
"block": "8455642159445842600",
23
"blockTimestamp": 29797208,
24
"deadline": 60,
25
"transaction": "15200507403046301754",
26
"timestamp": 29796934,
27
"height": 275730
28
},
29
{
30
"senderPublicKey": "73080c6a224062660184f10ebb7fb431d459364a12403320c7f601f9d75cc547",
31
"signature": "7f4a5b70e3f91dd1e7a089c7985bb08f7035666dbfe3e857e706f08ad93f6...",
32
"feeNQT": "100000000",
33
"transactionIndex": 0,
34
"type": 0,
35
"confirmations": 1706,
36
"fullHash": "6612e07b74a84497b02d5bafea020391dcefadc157dc1cbd56611c66dc11f974",
37
"version": 1,
38
"ecBlockId": "4218793004869721496",
39
"signatureHash": "0fc3d917e37111752004ac13a280ea121799388ff7aaf611f22f3ce93f1df5e0",
40
"attachment": {
41
"version.PublicKeyAnnouncement": 1,
42
"recipientPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c"
43
},
44
"senderRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
45
"subtype": 0,
46
"amountNQT": "200000000",
47
"sender": "17013046603665206934",
48
"recipientRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
49
"recipient": "15323192282528158131",
50
"ecBlockHeight": 275723,
51
"block": "14241452309033661857",
52
"blockTimestamp": 29796841,
53
"deadline": 60,
54
"transaction": "10900022216391397990",
55
"timestamp": 29796542,
56
"height": 275728
57
}
58
]
59
}
Copied!

Get Balance

Request:
1
http://localhost:9976/prizm?
2
requestType=getBalance&
3
account=7114946486381367146
Copied!
Response:
1
{
2
"unconfirmedBalanceNQT": "9246231058415",
3
"guaranteedBalanceNQT": "9242231058415",
4
"effectiveBalancePrizm": 92422,
5
"forgedBalanceNQT": "260560000000",
6
"balanceNQT": "9246231058415",
7
"requestProcessingTime": 1
8
}
Copied!

Get Blockchain Transactions

Request:
1
http://localhost:9976/prizm?
2
requestType=getBlockchainTransactions&
3
account=PRIZM-4VDY-LNVT-LMAY-FMCKA&
4
lastIndex=0
Copied!
Response:
1
{
2
"requestProcessingTime": 2,
3
"transactions": [
4
{
5
"signature": "0bc2045c2e4291e9595702fc6a9e805f11b65a88a867d515e44b980ef72b440a2...",
6
"transactionIndex": 0,
7
"type": 0,
8
"phased": false,
9
"ecBlockId": "441034190304176853",
10
"signatureHash": "31f92d5612115e174748c7a261cd0412e00028639301aae0f0c1ddfc7618b7e7",
11
"attachment": {
12
"version.OrdinaryPayment": 0
13
},
14
"senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
15
"subtype": 0,
16
"amountNQT": "1400000000",
17
"recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
18
"block": "6752144003309284467",
19
"blockTimestamp": 46567698,
20
"deadline": 1440,
21
"timestamp": 46567612,
22
"height": 291611,
23
"senderPublicKey": "10f09c34f225d425306e5be55a4946908156072afbead4d574a512d7e086ef5c",
24
"feeNQT": "100000000",
25
"confirmations": 2046,
26
"fullHash": "a26a2a36086e5d13f069dd9da06ce4e6b0418e9a299bec0cda39bfa04a2ca5e3",
27
"version": 1,
28
"sender": "15295723609781267838",
29
"recipient": "11580081983047651163",
30
"ecBlockHeight": 291600,
31
"transaction": "1395392441102264994"
32
}
33
]
34
}
Copied!

Get Guaranteed Balance

Request:
1
http://localhost:9976/prizm?
2
requestType=getGuaranteedBalance&
3
account=7114946486381367146&
4
numberOfConfirmations=1440
Copied!
Response:
1
{
2
"guaranteedBalanceNQT": "9242231058415",
3
"requestProcessingTime": 0
4
}
Copied!

Get Unconfirmed Transaction Ids

Request:
1
http://localhost:9976/prizm?
2
requestType=getUnconfirmedTransactionIds&
3
account=PRIZM-L6FM-89WK-VK8P-FCRBB
Copied!
Response:
1
{
2
"requestProcessingTime": 1,
3
"unconfirmedTransactionIds": []
4
}
Copied!

Get Unconfirmed Transactions

Request:
1
http://localhost:9976/prizm?
2
requestType=getUnconfirmedTransactions&
3
account=PRIZM-L6FM-89WK-VK8P-FCRBB
Copied!
Response:
1
{
2
"unconfirmedTransactions": [],
3
"requestProcessingTime": 1
4
}
Copied!

Search Accounts

Request:
1
http://localhost:9976/prizm?
2
requestType=searchAccounts&
3
query=testnet AND tyler
Copied!
Response:
1
{
2
"accounts": [
3
{
4
"accountRS": "PRIZM-7C4U-3Z9K-GZM8-CU8EJ",
5
"name": "Tyler Jordan",
6
"description": "testnet account",
7
"account": "12119426358687475802"
8
}
9
],
10
"requestProcessingTime": 16
11
}
Copied!

Send Money

Request:
1
http://localhost:9976/prizm?
2
requestType=sendMoney&
3
secretPhrase=IWontTellYou&
4
recipient=PRIZM-4VNQ-RWZC-4WWQ-GVM8S&
5
amountNQT=100000000&
6
feeNQT=100000000&
7
deadline=60
Copied!
Response:
1
{
2
"signatureHash": "b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7",
3
"unsignedTransactionBytes": "001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143...",
4
"transactionJSON": {
5
"senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
6
"signature": "5f0378b7390ff5a815eadd1354de533eef682f139362b153576e2207320a6...",
7
"feeNQT": "100000000",
8
"type": 0,
9
"fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
10
"version": 1,
11
"ecBlockId": "17321329645912574173",
12
"signatureHash": "b35eae7d2f01639810d37694138aa0a86fbbf8a9bf58c2be4f2a5b8f0f30b3f7",
13
"senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
14
"subtype": 0,
15
"amountNQT": "100000000",
16
"sender": "15323192282528158131",
17
"recipientRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
18
"recipient": "17013046603665206934",
19
"ecBlockHeight": 275727,
20
"deadline": 60,
21
"transaction": "15200507403046301754",
22
"timestamp": 29796934,
23
"height": 2147483647
24
},
25
"broadcasted": true,
26
"requestProcessingTime": 8475,
27
"transactionBytes": "001046aac6013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143...",
28
"fullHash": "3a304584f20cf3d2cbbdd9698ff9a166427005ab98fbe9ca4ad6253651ee81f1",
29
"transaction": "15200507403046301754"
30
}
Copied!

Set Account Info

Request:
1
http://localhost:9976/prizm?
2
requestType=setAccountInfo&
3
secretPhrase=IWontTellYou&
4
name=iwonttellyou
5
description=example account
6
feeNQT=100000000&
7
deadline=60
Copied!
Response:
1
{
2
"signatureHash": "15917aafd59ad9cece7dfc127ab256711d1c58a8ed1a0dc7334949ca826d8a32",
3
"unsignedTransactionBytes": "0115dfeecb013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b...",
4
"transactionJSON": {
5
"senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
6
"signature": "3f5167a3a23677c85aba7fbbc8bc31cddf540a632abebee4a80fe08ba92b9a0...",
7
"feeNQT": "100000000",
8
"type": 1,
9
"fullHash": "2d31c26aa2b0ae4cf233cc4035c555bca0c579bdcef24bc9819132dc2ce5b2e5",
10
"version": 1,
11
"ecBlockId": "17558522603047297060",
12
"signatureHash": "15917aafd59ad9cece7dfc127ab256711d1c58a8ed1a0dc7334949ca826d8a32",
13
"attachment": {
14
"name": "iwonttellyou",
15
"description": "example account",
16
"version.AccountInfo": 1
17
},
18
"senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
19
"subtype": 5,
20
"amountNQT": "0",
21
"sender": "15323192282528158131",
22
"ecBlockHeight": 279080,
23
"deadline": 60,
24
"transaction": "5525548004452479277",
25
"timestamp": 30142175,
26
"height": 2147483647
27
},
28
"broadcasted": true,
29
"requestProcessingTime": 8553,
30
"transactionBytes": "0115dfeecb013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b...",
31
"fullHash": "2d31c26aa2b0ae4cf233cc4035c555bca0c579bdcef24bc9819132dc2ce5b2e5",
32
"transaction": "5525548004452479277"
33
}
Copied!

Set Account Property

Request:
1
http://localhost:9976/prizm?requestType=setAccountProperty&secretPhrase=
2
iwonttellyou&property=country&value=switzerland&recipient=
3
PRIZM-EZQ9-35P5-XZ8C-4LW87&feeNQT=100000000&deadline=60
Copied!
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:
1
[cURL command?]
Copied!
Response:
1
{
2
"signatureHash": "34a690abc9f7fe4749da49d996e875e961aa0d38d6b80cdca9a01a7614004089",
3
"transactionJSON": {
4
"senderPublicKey": "b0db10704a831f1a0fd028e947784811e88fbe0fde25dc1f68209a2d9f93be13",
5
"signature": "f5fd4b881c5625c778ffe38bced33d44231eda406e95d9068dea69407ea3370dc873f52a123a0cbe590ecf4adf2a3c6238dc26c73ee63aeb7ac4331958b53a1e",
6
"feeNQT": "100000000",
7
"type": 1,
8
"fullHash": "d94baf764f0b7e47dbbe30c5aef1694fef6dfd2ecc7c86e29eefee7e6d1b2b39",
9
"version": 1,
10
"phased": false,
11
"ecBlockId": "1026208230615777523",
12
"signatureHash": "34a690abc9f7fe4749da49d996e875e961aa0d38d6b80cdca9a01a7614004089",
13
"attachment": {
14
"property": "\"switzerland\"",
15
"value": "\"country\"",
16
"version.AccountProperty": 1
17
},
18
"senderRS": "PRIZM-EZQ9-35P5-XZ8C-4LW87",
19
"subtype": 10,
20
"amountNQT": "0",
21
"sender": "2493747385666535111",
22
"recipientRS": "PRIZM-EZQ9-35P5-XZ8C-4LW87",
23
"recipient": "2493747385666535111",
24
"ecBlockHeight": 684730,
25
"deadline": 360,
26
"transaction": "5151567459679947737",
27
"timestamp": 72072027,
28
"height": 2147483647
29
},
30
"unsignedTransactionBytes": "011a5bbb4b046801b0db10704a831f1a0fd028e947784811e88fbe0fde25dc1f68209a2d9f93be13c77e36ea08929b22000000000000000000e1f5050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ba720a00f3806fdbf2d23d0e010d22737769747a65726c616e64220922636f756e74727922",
31
"broadcasted": true,
32
"requestProcessingTime": 83,
33
"transactionBytes": "011a5bbb4b046801b0db10704a831f1a0fd028e947784811e88fbe0fde25dc1f68209a2d9f93be13c77e36ea08929b22000000000000000000e1f505000000000000000000000000000000000000000000000000000000000000000000000000f5fd4b881c5625c778ffe38bced33d44231eda406e95d9068dea69407ea3370dc873f52a123a0cbe590ecf4adf2a3c6238dc26c73ee63aeb7ac4331958b53a1e00000000ba720a00f3806fdbf2d23d0e010d22737769747a65726c616e64220922636f756e74727922",
34
"fullHash": "d94baf764f0b7e47dbbe30c5aef1694fef6dfd2ecc7c86e29eefee7e6d1b2b39",
35
"transaction": "5151567459679947737"
Copied!

Decrypt From

Request:
1
http://localhost:9976/prizm?
2
requestType=decryptFrom&
3
secretPhrase=IWontTellYou&
4
account=PRIZM-L6FM-89WK-VK8P-FCRBB&
5
data=5c30bd27cc86a8ab0349aaf66deae3c0a9db5675b5c4ba973dd47f37e06157...&
6
nonce=7f3c9082c73a7bd825aa48d23fc138fd05a466700ff9fc3a040bbb29d3a60ee1&
Copied!
Response:
1
{
2
"decryptedMessage": "test message",
3
"requestProcessingTime": 2
4
}
Copied!

Download Prunable Message

Request:
1
http://localhost:9976/prizm?
2
requestType=downloadPrunableMessage&
3
transaction=264609232955144528&
4
retrieve=true
Copied!
Response: The file in binary format.

Encrypt To

Request:
1
http://localhost:9976/prizm?
2
requestType=encryptTo&
3
secretPhrase=IWontTellYou&
4
recipient=PRIZM-L6FM-89WK-VK8P-FCRBB&
5
messageToEncrypt=test message&
Copied!
Response:
1
{
2
"data": "5c30bd27cc86a8ab0349aaf66deae3c0a9db5675b5c4ba973dd47f37e06157...",
3
"requestProcessingTime": 48,
4
"nonce": "7f3c9082c73a7bd825aa48d23fc138fd05a466700ff9fc3a040bbb29d3a60ee1"
5
}
Copied!

Get All Prunable Messages

Request:
1
http://localhost:9976/prizm?
2
requestType=getAllPrunableMessages&
3
lastIndex=0
Copied!
Response:
1
{
2
"prunableMessages": [
3
{
4
"senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
5
"sender": "15295723609781267838",
6
"recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
7
"recipient": "11580081983047651163",
8
"blockTimestamp": 46382992,
9
"message": "This is a test prunable plain message.",
10
"transaction": "4628485271017409467",
11
"isText": true,
12
"transactionTimestamp": 46382948
13
}
14
],
15
"requestProcessingTime": 0
16
}
Copied!

Get Prunable Message

Request:
1
http://localhost:9976/prizm?
2
requestType=getPrunableMessage&
3
transaction=16832262845403902696&
4
secretPhrase=secretPhrase
Copied!
Response:
1
{
2
"senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
3
"encryptedMessage": {
4
"data": "ba6baa8361ac5bdb9cb591cee616dc5801a32ddf05b66a4ee527cd8d57b0...",
5
"nonce": "41f93e32997c70937a005e5b0b42546a1efa9ea9eb012f98d7a92d0c5a8855a4"
6
},
7
"sender": "15295723609781267838",
8
"decryptedMessage": "test prunable encrypted message",
9
"recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
10
"recipient": "11580081983047651163",
11
"blockTimestamp": 46117919,
12
"requestProcessingTime": 3,
13
"transaction": "16832262845403902696",
14
"encryptedMessageIsText": true,
15
"transactionTimestamp": 46117594,
16
"isCompressed": true
17
}
Copied!

Get Prunable Messages

Request:
1
http://localhost:9976/prizm?
2
requestType=getPrunableMessages&
3
account=PRIZM-4VDY-LNVT-LMAY-FMCKA&
4
lastIndex=0
Copied!
Response:
1
{
2
"prunableMessages": [
3
{
4
"senderRS": "PRIZM-4VDY-LNVT-LMAY-FMCKA",
5
"encryptedMessage": {
6
"data": "ba6baa8361ac5bdb9cb591cee616dc5801a32ddf05b66a4ee527cd8d57b0a...",
7
"nonce": "41f93e32997c70937a005e5b0b42546a1efa9ea9eb012f98d7a92d0c5a8855a4"
8
},
9
"sender": "15295723609781267838",
10
"recipientRS": "PRIZM-BMUV-8QQR-47VK-CR7F3",
11
"recipient": "11580081983047651163",
12
"blockTimestamp": 46117919,
13
"transaction": "16832262845403902696",
14
"isText": true,
15
"transactionTimestamp": 46117594,
16
"isCompressed": true
17
}
18
],
19
"requestProcessingTime": 1
20
}
Copied!

Get Shared Key

Request:
1
http://localhost:9976/prizm?
2
requestType=getSharedKey&
3
account=PRIZM-5MYN-AP7M-NKMH-CRQJZ&
4
secretPhrase=IWontTellYou&
5
nonce=0102030405060708091011121314151617181920212223242526272829303132
Copied!
Response:
1
{
2
"sharedKey": "927118faa4850afa7fb3ced7b17eb4968ec4f1c0a405b0890552bb54a67d0eba",
3
"requestProcessingTime": 1
4
}
Copied!

Read Message

Request:
1
http://localhost:9976/prizm?
2
requestType=readMessage&
3
transaction=9908575668289607167&
4
secretPhrase=IWontTellYou&
Copied!
Response:
1
{
2
"requestProcessingTime": 1,
3
"message": "Test message.",
4
"decryptedMessage": "Test message (encrypted).",
5
"decryptedMessageToSelf": "abc123"
6
}
Copied!

Send Message

Request:
1
http://localhost:9976/prizm?
2
requestType=sendMessage&
3
secretPhrase=IWontTellYou&
4
recipient=PRIZM-4VNQ-RWZC-4WWQ-GVM8S&
5
message=Test Message.&
6
deadline=60
Copied!
Response:
1
{
2
"signatureHash": "795c58938a50d691f3f2b88bfaf03267236e972e1c068e0a5e11aeb606597f17",
3
"unsignedTransactionBytes": "01100593ce013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c14...",
4
"transactionJSON": {
5
"senderPublicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
6
"signature": "e916dbbfec51ca97ae76b1b190d1c74328f74c3c43ed3a06f1ca0ea250116...",
7
"feeNQT": "100000000",
8
"type": 1,
9
"fullHash": "ff157b8a125582898b5c50d32a62f725602d5197af236fabcd6ec978b6861528",
10
"version": 1,
11
"ecBlockId": "6060075251340574063",
12
"signatureHash": "795c58938a50d691f3f2b88bfaf03267236e972e1c068e0a5e11aeb606597f17",
13
"attachment": {
14
"version.Message": 1,
15
"messageIsText": true,
16
"message": "Test message."
17
},
18
"senderRS": "PRIZM-L6FM-89WK-VK8P-FCRBB",
19
"subtype": 0,
20
"amountNQT": "0",
21
"sender": "15323192282528158131",
22
"recipientRS": "PRIZM-4VNQ-RWZC-4WWQ-GVM8S",
23
"recipient": "17013046603665206934",
24
"ecBlockHeight": 280756,
25
"deadline": 60,
26
"transaction": "9908575668289607167",
27
"timestamp": 30315269,
28
"height": 2147483647
29
},
30
"broadcasted": true,
31
"requestProcessingTime": 11379,
32
"transactionBytes": "01100593ce013c0057fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b...",
33
"fullHash": "ff157b8a125582898b5c50d32a62f725602d5197af236fabcd6ec978b6861528",
34
"transaction": "9908575668289607167"
35
}
Copied!

Verify Prunable Message

Request:
1
http://localhost:9976/prizm?
2
requestType=verifyPrunableMessage&
3
message=This is a test prunable plain message.
Copied!
Response:
1
{
2
"version.PrunablePlainMessage": 1,
3
"verify": true,
4
"messageIsText": true,
5
"messageHash": "da99da8026e30d971340ef54803543af3aa48ea215f80bd9375457bad8effb3f",
6
"requestProcessingTime": 1,
7
"message": "This is a test prunable plain message."
8
}
Copied!

Get Block

Request:
1
http://localhost:9976/prizm?
2
requestType=getBlock&
3
block=8455642159445842600
Copied!
Response:
1
{
2
"previousBlockHash": "c0574d7a7b8497373dbead497c2dc7f60fdcfc8c5a9fcb48f7d373acc9bbb099",
3
"payloadLength": 1189,
4
"totalAmountNQT": "100000000",
5
"generationSignature": "c5098d37267bc71134fc8572a87b4af8727a2e5139d60fe8833fab98af22244a",
6
"generator": "11693867635361772359",
7
"generatorPublicKey": "fbb72a280228af5c8c74c7c754a290e1539f839553c00bc560cac7bfdb324a7c",
8
"baseTarget": "1530224444",
9
"payloadHash": "633992be640a593ba04e31ca4028deed70bbf47cff333e2a0372a4e2a4aba205",
10
"generatorRS": "PRIZM-TWU9-P3E4-HCDM-CQ9L6",
11
"nextBlock": "5937170741469897491",
12
"requestProcessingTime": 175,
13
"numberOfTransactions": 6,
14
"blockSignature": "ff65a82e385c135cf9bd5be0861e9e5d3d3174fbd993e5b7f57935ec4...",
15
"transactions": [
16
"15184285173972564233",
17
"15200280108574630445",
18
"15200507403046301754",
19
"15900338016714606285",
20
"17881859777840687131",
21
"18361738217269620028"
22
],
23
"version": 3,
24
"totalFeeNQT": "600000000",
25
"previousBlock": "4005816059437078464",
26
"cumulativeDifficulty": "10229109959119715",
27
"block": "8455642159445842600",
28
"height": 275730,
29
"timestamp": 29797208
30
}
Copied!

Get Block Id

Request:
1
http://localhost:9976/prizm?
2
requestType=getBlockId&
3
height=0
Copied!
Response:
1
{
2
"block": "2680262203532249785",
3
"requestProcessingTime": 1
4
}
Copied!

Get Blocks

Request:
1
http://localhost:9976/prizm?
2
requestType=getBlocks&
3
lastIndex=1
Copied!
Response:
1
{
2
"blocks": [
3
{
4
"previousBlockHash": "f88c75a36317e1795348330cb9a944f33153b517ebdf05d9f3f9a606e997618d",
5
"payloadLength": 981,
6
"totalAmountNQT": "0",
7
"generationSignature": "02f7462b62270c0028c379d838d3a192cf0b782995f3bb1929a5378d26e7e8a9",
8
"generator": "2218289317977832095",
9
"generatorPublicKey": "98ccf5d5173b13e4c9eab2631372f61ce8ba506db559d73b285073a689872e75",
10
"baseTarget": "151761236",
11
"payloadHash": "82f8c8ca1f8f2252172ed1e9836d5228432fcb18aecfa7d55a119efcd242321c",
12
"generatorRS": "PRIZM-TGNZ-E8VK-69EX-3L9LX",
13
"numberOfTransactions": 5,
14
"blockSignature": "76a3f7f966256c4985262fb4622190b2b9a19b900f6ce443ab7d581e3176c...",
15
"transactions": [
16
"10545999940082849455",
17
"16751328983055099280",
18
"1257496316971695605",
19
"2048859884870801838",
20
"5105170273384355243"
21
],
22
"version": 3,
23
"totalFeeNQT": "500000000",
24
"previousBlock": "8782326465060769016",
25
"block": "7299310714263322546",
26
"height": 281683,
27
"timestamp": 30416681
28
},
29
{
30
"previousBlockHash": "edc2d65d24883b9b32c46da4eec3792a69a5ff9a9b1e629c4e7e0224432c87c9",
31
"payloadLength": 0,
32
"totalAmountNQT": "0",
33
"generationSignature": "8c4944c7a9ef5700d1b89660fdf83bcbd3dbbfbe191fef005d0f248a573816fe",
34
"generator": "15766845356521829337",
35
"generatorPublicKey": "11636697faf4ade736cedf6c528bec0142353c4d93fce05cdb818c49e0390422",
36
"baseTarget": "303522472",
37
"payloadHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
38
"generatorRS": "PRIZM-2EYT-C522-VL6G-FQSMP",
39
"nextBlock": "7299310714263322546",
40
"numberOfTransactions": 0,
41
"blockSignature": "90464d183ed01cb0930ef527e746eaa092d1558697c369cc9246add5f6eec...",
42
"transactions": [],
43
"version": 3,
44
"totalFeeNQT": "0",
45
"previousBlock": "11185683789279314669",
46
"block": "8782326465060769016",
47
"height": 281682,
48
"timestamp": 30416671
49
}
50
],
51
"requestProcessingTime": 2
52
}
Copied!

Get EC Block

Request:
1
http://localhost:9976/prizm?
2
requestType=getECBlock
Copied!
Response:
1
{
2
"ecBlockHeight": 281777,
3
"requestProcessingTime": 2,
4
"ecBlockId": "6565813579609649593",
5
"timestamp": 30427868
6
}
Copied!

Start / Stop / Get Forging

Request:
1
http://localhost:9976/prizm?
2
requestType=startForging&
3
secretPhrase=IWontTellYou
Copied!
Response:
1
{
2
"requestProcessingTime": 1,
3
"deadline": 0,
4
"hitTime": 0
5
}
Copied!

Get Next Block Generators

Request:
1
http://localhost:9976/prizm?
2
requestType=getNextBlockGenerators&
3
limit=3
Copied!
Response:
1
{
2
"activeCount": 216,
3
"lastBlock": "10153073870267066931",
4
"generators": [
5
{
6
"effectiveBalancePrizm": 5400786,
7
"accountRS": "PRIZM-8HNT-4ZTF-ZXH3-7RU38",
8
"deadline": 4,
9
"account": "5982846390354787993",
10
"hitTime": 112224054
11
},
12
{
13
"effectiveBalancePrizm": 4061204,
14
"accountRS": "PRIZM-HLNR-4HDK-HQUJ-37545",
15
"deadline": 35,
16
"account": "1263370831364868759",
17
"hitTime": 112224085
18
},
19
{
20
"effectiveBalancePrizm": 8847921,
21
"accountRS": "PRIZM-ZEKG-CHYB-N8AR-4TQ3U",
22
"deadline": 52,
23
"account": "3244519536310858286",
24
"hitTime": 112224102
25
}
26
],
27
"requestProcessingTime": 1,
28
"timestamp": 112224050,
29
"height": 1351776
30
}
Copied!

Decode Hallmark

Request:
1
http://localhost:9976/prizm?
2
requestType=decodeHallmark&
3
hallmark=827ed8cf83bbd36419002759d960a1bec952f2209db8ed3be958...
Copied!
Response:
1
{
2
"date": "2013-12-10",
3
"valid": true,
4
"accountRS": "PRIZM-FEJ5-H4YB-QD3D-2L3W2",
5
"host": "nxttyclub.info",
6
"weight": 100,
7
"requestProcessingTime": 2,
8
"account": "31580691533050371"
9
}
Copied!

Mark Host

Request:
1
http://localhost:9976/prizm?
2
requestType=markHost&
3
secretPhrase=IWontTellYou&
4
host=iwonttellyou.com&
5
weight=1&
6
date=2014-11-22
Copied!
Response:
1
{
2
"hallmark": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c...",
3
"requestProcessingTime": 5
4
}
Copied!

Add Peer

Request:
1
http://localhost:9976/prizm?
2
requestType=addPeer&
3
peer=example.com
Copied!
Response:
1
{
2
"hallmark": "4a8fd0f2af5f511e041ad7bee1625ae3a711ddcc056c60cf7ab3523e2c99092f0e006e...",
3
"downloadedVolume": 155414,
4
"address": "23.95.51.154",
5
"weight": 19829,
6
"uploadedVolume": 63532,
7
"requestProcessingTime": 478,
8
"version": "1.9.20",
9
"platform": "example.platform",
10
"lastUpdated": 37014605,
11
"blacklisted": false,
12
"announcedAddress": "example.com",
13
"application": "PZM",
14
"state": 1,
15
"shareAddress": true
16
}
Copied!

Blacklist API Proxy Peer

Request:
1
http://localhost:9976/prizm?
2
requestType=blacklistAPIProxyPeer&
3
peer=52.0.72.67
Copied!
Response:
1
{
2
"requestProcessingTime": 24,
3
"done": true
4
}
Copied!

Blacklist Peer

Request:
1
http://localhost:9976/prizm?
2
requestType=blacklistPeer&
3
peer=example.com
Copied!
Response:
1
{
2
"requestProcessingTime": 0,
3
"done": true
4
}
Copied!

Get Inbound Peers

Request:
1
http://localhost:9976/prizm?
2
requestType=getInboundPeers
Copied!
Response:
1
{
2
"peers": [],
3
"requestProcessingTime": 1
4
}
Copied!

Get My Info

Request:
1
http://localhost:9976/prizm?
2
requestType=getMyInfo
Copied!
Response:
1
{
2
"address": "127.0.0.1",
3
"host": "127.0.0.1",
4
"requestProcessingTime": 1
5
}
Copied!

Get Peer

Request:
1
http://localhost:9976/prizm?
2
requestType=getPeer&
3
peer=example.com
Copied!
Response:
1
{
2
"hallmark": "5f107c33097fc8241f55b9eb23615fe80ed3f87c87dc8c23ed6a08ab9273417a07006...",
3
"downloadedVolume": 352,
4
"address": "188.226.174.169",
5
"inbound": false,
6
"weight": 53,