{"info":{"_postman_id":"dfe43ba7-c55b-42af-b254-cf4f050d535c","name":"Polkadot 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":"dfe43ba7-c55b-42af-b254-cf4f050d535c","publishedId":"TVCe1oRU","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-01T09:32:34.000Z"},"item":[{"name":"block","id":"f4baa411-5eca-4f85-8597-e2641391b3f3","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://polkadot.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":["polkadot","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4baa411-5eca-4f85-8597-e2641391b3f3"},{"name":"search","id":"65b9418d-6367-4a92-bf23-7c4e7fc2880c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"12k6zoi7L6Jd2oCVek7Zktj8CHY2yoY6nxZThDZK7mdWP6Sr\",\n    \"row\": 1,\n    \"page\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://polkadot.api.subscan.io/api/v2/scan/search","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","v2","scan","search"],"host":["polkadot","api","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"65b9418d-6367-4a92-bf23-7c4e7fc2880c"},{"name":"account","id":"38c96f38-0278-4510-a030-a3e6be935ee5","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://polkadot.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":["polkadot","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"38c96f38-0278-4510-a030-a3e6be935ee5"},{"name":"account-extrinsics","id":"88410563-50d8-4dc2-8323-f0edafc6e718","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://polkadot.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":["polkadot","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"88410563-50d8-4dc2-8323-f0edafc6e718"},{"name":"extrinsic","id":"b719dc44-3c4c-4ec2-a6d3-8a8b677c9f1c","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://polkadot.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":["polkadot","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"b719dc44-3c4c-4ec2-a6d3-8a8b677c9f1c"},{"name":"currencies","id":"43445470-50c7-441f-9bef-69be1241a0ab","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://polkadot.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":["polkadot","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"43445470-50c7-441f-9bef-69be1241a0ab"},{"name":"price","id":"4387dbd6-fd88-4e7b-9d9c-fb5f9bdfa24e","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://polkadot.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":["polkadot","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"4387dbd6-fd88-4e7b-9d9c-fb5f9bdfa24e"},{"name":"price-converter","id":"d1ff7826-e802-4fce-a782-fa36f5c16848","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\":594309,\n\t\"value\":1000,\n\t\"from\":\"USD\",\n\t\"quote\":\"DOT\"\n}","options":{"raw":{"language":"json"}}},"url":"https://polkadot.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":["polkadot","subscan","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1ff7826-e802-4fce-a782-fa36f5c16848"}],"event":[{"listen":"prerequest","script":{"id":"cc4abce4-5e55-4ce1-ac28-ee60a2474c08","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"053e7c8c-277e-4c75-ba00-306d0c4c221e","type":"text/javascript","exec":[""]}}]}