{"info":{"_postman_id":"a778d7f2-e718-4800-ba0f-a22dae73bfda","name":"Kusama Subscan API","description":"<html><head></head><body><p>Subscan API docs</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1618960","collectionId":"a778d7f2-e718-4800-ba0f-a22dae73bfda","publishedId":"TVCe1oMA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-01T09:31:24.000Z"},"item":[{"name":"block","id":"86276312-fc11-4001-ae6e-60e6a4135bfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"block_num\": 1665107\n}","options":{"raw":{"language":"json"}}},"url":"https://kusama.subscan.io/api/open/block","description":"<h3 id=\"payload\">payload</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Require</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>block_num</td>\n<td>int</td>\n<td>no</td>\n</tr>\n<tr>\n<td>block_hash</td>\n<td>string</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response\">Example Response</h3>\n<p><code>200 OK</code> and</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"code\": 0,\n    \"message\": \"Success\",\n    \"ttl\": 1,\n    \"data\": {\n        \"block_num\": 1665107,\n        \"block_timestamp\": 1585530840,\n        \"hash\": \"0xd83ffde9bae4725beb5da14e6aafc84d085a69a68d80194aa72c8bf7b57ffb9a\",\n        \"parent_hash\": \"0xa46c83809179453f488664c122e69e0ca3347b8a4143c37407c142939bd364a1\",\n        \"state_root\": \"0x7ce5e5bb605f41d5a805fa042355e63da5fa7c53759608117359c573e13a521a\",\n        \"extrinsics_root\": \"0x5ccfbdbeebe416f1f2227342374e3255fd567daa05801c6874475f36e437ede5\",\n        \"spec_version\": 1055,\n        \"validator\": \"GC8hwHbQ4TdbYJJPDS96G7Uj9bivnW5z56UEkqujjwhQPp5\",\n        \"finalized\": false\n    }\n}\n</code></pre>","urlObject":{"protocol":"https","path":["api","open","block"],"host":["kusama","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"86276312-fc11-4001-ae6e-60e6a4135bfa"},{"name":"account","id":"0cdd138f-39f3-46c9-a9fa-ad2831f63a57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"address\": \"E457XaKbj2yTB2URy8N4UuzmyuFRkcdxYs67UvSgVr7HyFb\"\n}","options":{"raw":{"language":"json"}}},"url":"https://kusama.subscan.io/api/open/account","description":"<h3 id=\"payload\">payload</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Require</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>yes</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response\">Example Response</h3>\n<p><code>200 OK</code> and</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"code\": 0,\n    \"message\": \"Success\",\n    \"ttl\": 1,\n    \"data\": {\n        \"address\": \"E457XaKbj2yTB2URy8N4UuzmyuFRkcdxYs67UvSgVr7HyFb\",\n        \"balance\": \"295.667207686234\",\n        \"lock\": \"0.887510133275\"\n    }\n}\n</code></pre>","urlObject":{"protocol":"https","path":["api","open","account"],"host":["kusama","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cdd138f-39f3-46c9-a9fa-ad2831f63a57"},{"name":"account-extrinsics","id":"f1daf16c-820e-49ab-936a-7e6c9ed82709","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"address\": \"E457XaKbj2yTB2URy8N4UuzmyuFRkcdxYs67UvSgVr7HyFb\",\n\t\"row\": 20\n}","options":{"raw":{"language":"json"}}},"url":"https://kusama.subscan.io/api/open/account/extrinsics","description":"<h3 id=\"payload\">payload</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Require</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>row</td>\n<td>int</td>\n<td>yes</td>\n</tr>\n<tr>\n<td>page</td>\n<td>int</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response\">Example Response</h3>\n<p><code>200 OK</code> and</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"code\": 0,\n    \"message\": \"Success\",\n    \"ttl\": 1,\n    \"data\": {\n        \"count\": 12,\n        \"extrinsics\": [\n            {\n                \"block_num\": 1631077,\n                \"block_timestamp\": 1585322166,\n                \"call_module\": \"identity\",\n                \"call_module_function\": \"clear_identity\",\n                \"extrinsic_index\": \"1631077-2\",\n                \"finalized\": false,\n                \"from\": \"E457XaKbj2yTB2URy8N4UuzmyuFRkcdxYs67UvSgVr7HyFb\",\n                \"extrinsic_hash\": \"0xe3187c6b8700adc706973cae0dd30c1b1005b7490ec209ba0a9d7261929a018a\",\n                \"params\": [],\n                \"success\": true\n            }\n        ]\n    }\n}\n</code></pre>","urlObject":{"protocol":"https","path":["api","open","account","extrinsics"],"host":["kusama","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1daf16c-820e-49ab-936a-7e6c9ed82709"},{"name":"extrinsic","id":"36c671b3-4826-471c-96fd-2e4bd1447cbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"hash\": \"0xef9d91a8b78f8401e81b1d7d03e995626123fc72a9437e5f8f33d82c6ffcb011\"\n}","options":{"raw":{"language":"json"}}},"url":"https://kusama.subscan.io/api/open/extrinsic","description":"<h3 id=\"payload\">payload</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Require</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>hash</td>\n<td>string</td>\n<td>yes</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response\">Example Response</h3>\n<p><code>200 OK</code> and</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"code\": 0,\n    \"message\": \"Success\",\n    \"ttl\": 1,\n    \"data\": {\n        \"extrinsic\": {\n            \"block_num\": 708556,\n            \"block_timestamp\": 1579536702,\n            \"call_module\": \"balances\",\n            \"call_module_function\": \"transfer\",\n            \"extrinsic_index\": \"708556-3\",\n            \"event\": [\n                {\n                    \"event_index\": \"708556-3\",\n                    \"block_num\": 708556,\n                    \"extrinsic_idx\": 3,\n                    \"module_id\": \"treasury\",\n                    \"event_id\": \"Deposit\",\n                    \"params\": [\n                        {\n                            \"type\": \"Balance\",\n                            \"value\": \"8000000000\",\n                            \"valueRaw\": \"0050d6dc010000000000000000000000\"\n                        }\n                    ],\n                    \"extrinsic_hash\": \"0xef9d91a8b78f8401e81b1d7d03e995626123fc72a9437e5f8f33d82c6ffcb011\",\n                    \"event_idx\": 3,\n                    \"finalized\": false\n                },\n                {\n                    \"event_index\": \"708556-3\",\n                    \"block_num\": 708556,\n                    \"extrinsic_idx\": 3,\n                    \"module_id\": \"balances\",\n                    \"event_id\": \"Deposit\",\n                    \"params\": [\n                        {\n                            \"type\": \"AccountId\",\n                            \"value\": \"0xae6a2559c5da6ebd98821a09c34694dce971dc0740da084915aaa9db23329664\",\n                            \"valueRaw\": \"ae6a2559c5da6ebd98821a09c34694dce971dc0740da084915aaa9db23329664\"\n                        },\n                        {\n                            \"type\": \"Balance\",\n                            \"value\": \"2000000000\",\n                            \"valueRaw\": \"00943577000000000000000000000000\"\n                        }\n                    ],\n                    \"extrinsic_hash\": \"0xef9d91a8b78f8401e81b1d7d03e995626123fc72a9437e5f8f33d82c6ffcb011\",\n                    \"event_idx\": 4,\n                    \"finalized\": false\n                },\n                {\n                    \"event_index\": \"708556-3\",\n                    \"block_num\": 708556,\n                    \"extrinsic_idx\": 3,\n                    \"module_id\": \"indices\",\n                    \"event_id\": \"NewAccountIndex\",\n                    \"params\": [\n                        {\n                            \"type\": \"AccountId\",\n                            \"value\": \"0x7af914682a2d2910eb8c3d63c3f2a19c28d593917fc756decd8b0681d915bb40\",\n                            \"valueRaw\": \"7af914682a2d2910eb8c3d63c3f2a19c28d593917fc756decd8b0681d915bb40\"\n                        },\n                        {\n                            \"type\": \"AccountIndex\",\n                            \"value\": 6096,\n                            \"valueRaw\": \"d0170000\"\n                        }\n                    ],\n                    \"extrinsic_hash\": \"0xef9d91a8b78f8401e81b1d7d03e995626123fc72a9437e5f8f33d82c6ffcb011\",\n                    \"event_idx\": 5,\n                    \"finalized\": false\n                },\n                {\n                    \"event_index\": \"708556-3\",\n                    \"block_num\": 708556,\n                    \"extrinsic_idx\": 3,\n                    \"module_id\": \"balances\",\n                    \"event_id\": \"NewAccount\",\n                    \"params\": [\n                        {\n                            \"type\": \"AccountId\",\n                            \"value\": \"0x7af914682a2d2910eb8c3d63c3f2a19c28d593917fc756decd8b0681d915bb40\",\n                            \"valueRaw\": \"7af914682a2d2910eb8c3d63c3f2a19c28d593917fc756decd8b0681d915bb40\"\n                        },\n                        {\n                            \"type\": \"Balance\",\n                            \"value\": \"1000000000000\",\n                            \"valueRaw\": \"0010a5d4e80000000000000000000000\"\n                        }\n                    ],\n                    \"extrinsic_hash\": \"0xef9d91a8b78f8401e81b1d7d03e995626123fc72a9437e5f8f33d82c6ffcb011\",\n                    \"event_idx\": 6,\n                    \"finalized\": false\n                },\n                {\n                    \"event_index\": \"708556-3\",\n                    \"block_num\": 708556,\n                    \"extrinsic_idx\": 3,\n                    \"module_id\": \"balances\",\n                    \"event_id\": \"Transfer\",\n                    \"params\": [\n                        {\n                            \"type\": \"AccountId\",\n                            \"value\": \"0x41669d79846feec20168230ca4ce89b885162cf7d6fcaae53693dcf3f1b7def4\",\n                            \"valueRaw\": \"41669d79846feec20168230ca4ce89b885162cf7d6fcaae53693dcf3f1b7def4\"\n                        },\n                        {\n                            \"type\": \"AccountId\",\n                            \"value\": \"0x7af914682a2d2910eb8c3d63c3f2a19c28d593917fc756decd8b0681d915bb40\",\n                            \"valueRaw\": \"7af914682a2d2910eb8c3d63c3f2a19c28d593917fc756decd8b0681d915bb40\"\n                        },\n                        {\n                            \"type\": \"Balance\",\n                            \"value\": \"1000000000000\",\n                            \"valueRaw\": \"0010a5d4e80000000000000000000000\"\n                        },\n                        {\n                            \"type\": \"Balance\",\n                            \"value\": \"10000000000\",\n                            \"valueRaw\": \"00e40b54020000000000000000000000\"\n                        }\n                    ],\n                    \"extrinsic_hash\": \"0xef9d91a8b78f8401e81b1d7d03e995626123fc72a9437e5f8f33d82c6ffcb011\",\n                    \"event_idx\": 7,\n                    \"finalized\": false\n                }\n            ],\n            \"finalized\": true,\n            \"from\": \"E457XaKbj2yTB2URy8N4UuzmyuFRkcdxYs67UvSgVr7HyFb\",\n            \"extrinsic_hash\": \"0xef9d91a8b78f8401e81b1d7d03e995626123fc72a9437e5f8f33d82c6ffcb011\",\n            \"nonce\": 7,\n            \"params\": [\n                {\n                    \"name\": \"dest\",\n                    \"type\": \"Address\",\n                    \"value\": \"7af914682a2d2910eb8c3d63c3f2a19c28d593917fc756decd8b0681d915bb40\",\n                    \"valueRaw\": \"ff7af914682a2d2910eb8c3d63c3f2a19c28d593917fc756decd8b0681d915bb40\"\n                },\n                {\n                    \"name\": \"value\",\n                    \"type\": \"Compact&lt;Balance&gt;\",\n                    \"value\": \"1000000000000\",\n                    \"valueRaw\": \"070010a5d4e8\"\n                }\n            ],\n            \"signature\": \"e169f58aa2bd44df0cc49b76f8e5978ef5b29e4ef552f4fb3209954a868e12d560c38277985e832d4cad2a53cb152cfb0d5240c1e4f124696a221ce492c47b02\",\n            \"success\": true\n        }\n    }\n}\n</code></pre>","urlObject":{"protocol":"https","path":["api","open","extrinsic"],"host":["kusama","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"36c671b3-4826-471c-96fd-2e4bd1447cbb"},{"name":"currencies","id":"bf03f0b7-a3cd-4f48-8c54-7f81721325db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://kusama.subscan.io/api/open/currencies","description":"<h3 id=\"desc\">desc</h3>\n<p>List of currencies that support price query and conversion</p>\n<h3 id=\"example-response\">Example Response</h3>\n<p><code>200 OK</code> and</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"code\": 0,\n    \"message\": \"Success\",\n    \"generated_at\": 1593479990,\n    \"data\": {\n        \"currencies\": [\n            \"KSM/USD\"\n        ]\n    }\n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","open","currencies"],"host":["kusama","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf03f0b7-a3cd-4f48-8c54-7f81721325db"},{"name":"price","id":"c8903648-e52c-407d-b4bd-9f04569c4049","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"time\": 1665107\n}","options":{"raw":{"language":"json"}}},"url":"https://kusama.subscan.io/api/open/price","description":"<h3 id=\"desc\">desc</h3>\n<p>Historical price query</p>\n<h3 id=\"payload\">payload</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Require</th>\n<th>desc</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>time</td>\n<td>int</td>\n<td>yes</td>\n<td>unix timestamp or block num</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response\">Example Response</h3>\n<p><code>200 OK</code> and</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"code\": 0,\n    \"message\": \"Success\",\n    \"generated_at\": 1593479990,\n    \"data\": {\n        \"price\": \"5.9032161816\",\n        \"time\": 1593391878,\n        \"height\": 479676,\n        \"records\": [\n            {\n                \"price\": \"5.9032161816\",\n                \"height\": 479676,\n                \"time\": 1593391878\n            }\n        ]\n    }\n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","open","price"],"host":["kusama","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8903648-e52c-407d-b4bd-9f04569c4049"},{"name":"price-converter","id":"38d27ecd-e44a-4526-baf8-ef9f1cb50d0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"time\":3063980,\n\t\"value\":1000,\n\t\"from\":\"USD\",\n\t\"quote\":\"KSM\"\n}","options":{"raw":{"language":"json"}}},"url":"https://kusama.subscan.io/api/open/price_converter","description":"<h3 id=\"desc\">desc</h3>\n<p>The conversion calculator returns the amount of the target currency base on the amount of source currency given historical price</p>\n<h3 id=\"payload\">payload</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Require</th>\n<th>desc</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>value</td>\n<td>decimal</td>\n<td>yes</td>\n<td>currency amount to convert</td>\n</tr>\n<tr>\n<td>from</td>\n<td>string</td>\n<td>yes</td>\n<td>Base Currency, USD or current network token</td>\n</tr>\n<tr>\n<td>quote</td>\n<td>string</td>\n<td>yes</td>\n<td>Quote Currency, USD or current network token</td>\n</tr>\n<tr>\n<td>time</td>\n<td>int</td>\n<td>no</td>\n<td>unix timestamp or block num</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response\">Example Response</h3>\n<p><code>200 OK</code> and</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n        \"code\": 0,\n        \"message\": \"Success\",\n        \"generated_at\": 1593479990,\n        \"data\": {\n            \"output\": \"37.606618692359901\",\n            \"price\": {\n                \"price\": \"5.9032161816\",\n                \"time\": 1593391878,\n                \"height\": 479676,\n                \"records\": [\n                    {\n                        \"price\": \"5.9032161816\",\n                        \"height\": 479676,\n                        \"time\": 1593391878\n                    }\n                ]\n            }\n        }\n    }\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","open","price_converter"],"host":["kusama","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"38d27ecd-e44a-4526-baf8-ef9f1cb50d0a"}],"event":[{"listen":"prerequest","script":{"id":"64faf403-d5a9-4ff0-be1a-13f31bb04881","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d62ae0b0-5de2-4eb4-bf8f-ee1c714e7744","type":"text/javascript","exec":[""]}}]}