Skip to main content

Node API - Kusama Sidecar


API AuthenticationClick to view API Authentication details
API calls require authentication with API key via Authorization request header or URL property. Calls are made to one of the Kusama Sidecar Node API endpoints found in your app's dashboard.

For example: https://polkadot-kusama--sidecar.datahub.figment.io

Here's some boilerplate to get you started.
fetch("https://polkadot-kusama--sidecar.datahub.figment.io/accounts/F7fq1jSB3w59f8vMShxvP5eSu3wCJbL5Am5MQ6vP6VzYLWD/balance-info", {
method: 'POST', // can also be 'GET', 'PUT' or any appropriate method
headers: {
"Authorization" : "<api_key>",
"Content-Type": "application/json" // if method is 'POST'
},
body: JSON.stringify({
// JSON Payload
})
})

Available Methods

/accounts/{accountId}/balance-info

Get balance information for an account.

Request Query (try it)
Example Response
{
"at": {
"hash": "0xb66a1cc0197b4a0d8b8b0166879484d82de0fb22c5f7ab469e90ca33672067a0",
"height": "14428644"
},
"nonce": "0",
"tokenSymbol": "KSM",
"free": "123993466417992254",
"reserved": "120000000000000",
"miscFrozen": "0",
"feeFrozen": "0",
"locks": []
}
SpecificationView Specification

Parameters

  • accountId string($SS58) (required) (path) SS58 address of the account.
  • at string($unsignedInteger or $hex (query) Block at which to query balance info for the specified account.
  • token string (query) Token to query the balance of. If not specified it will query the chains native token (e.g. DOT for Polkadot). Note: this is only relevant for chains that support multiple tokens through the ORML tokens pallet.
  • denominated boolean (query) When set to true it will denominate any balance's given atomic value using the chains given decimal value. Default value:false

Response

  • Returns information about an account's balance. Replaces /balance/{address} from versions < v1.0.0.

/accounts/{accountId}/vesting-info

Get vesting information for an account.

Request Query (try it)
Example Response
{
"at": {
"hash": "0x3bd343801bb17175dbda6f1ad6c0ff85c8020435cc938c372ee5949e4a9bdf6a",
"height": "14428650"
},
"vesting": []
}
SpecificationView Specification

Parameters

  • accountId string($SS58) (required) (path) SS58 address of the account.
  • at string($unsignedInteger or $hex) (query) Block at which to query the vesting info for the specified account.

Response

  • Returns the vesting schedule for an account. Replaces /vesting/{address} from versions < v1.0.0.

/accounts/{address}/validate

Validate a given address.

Request Query (try it)
Example Response
{
"isValid": true,
"ss58Prefix": "2"
}
SpecificationView Specification

Parameters

  • address string($SS58 or Hex) (required) (path) SS58 or Hex address of the account.

Response

  • Returns whether the given address is valid ss58 format, the ss58 prefix if the address has one, the network address format, and what the account ID is for this address.

/blocks/{blockId}

Get a block by its height or hash.

Request Query (try it)
Example Response
{
"number": "14428476",
"hash": "0x759db0eb1eb82173502dc42ed7441d0ce4cc0729ba545619f47b684e879293d3",
"parentHash": "0x5e0578aa8bae248b226fe08b2eb183441b7dbeec2cb4d420b77a9e8d26035d78",
"stateRoot": "0x76ea8d2e6ea1fa17fe0767e9fb5e38e81f4ce526d7ed06b1a653439ca7e61bbe",
"extrinsicsRoot": "0x87fbf0de05ee27fa0a6379c6b60a0a8e18b710a34653235fa7de3014af2f847c",
"authorId": "HEo4y9m3TqNKaPXQ4rpS9dRgEDggxe84viKvdKTbTncjvmB",
"logs": [
{
"type": "PreRuntime",
"index": "6",
"value": [
"0x42414245",
"0x01480300003f578510000000009434ee2f8391cec896097b4caea21659c34b60d988e49636c786c6a355a17e14410aadc2e780ac2f2c6d120b4ecafd01ce98269505933f683c5e2085742bd60d0ce343686300e6bf953924dc355d8d134dc585481eda64aa1fcc6a0dd478d80d"
]
},
{
"type": "Seal",
"index": "5",
"value": [
"0x42414245",
"0x42d2562dd22347c17446bd12b362f20f1eb81ac2bbe0e4661a4ab88c8f43e4138c9562d28ffb86dd2e6766ce0efd760bfbf0b99b5a381fa068b0075c0f35c287"
]
}
],
"onInitialize": {
"events": []
},
"extrinsics": [
{
"method": {
"pallet": "timestamp",
"method": "set"
},
"signature": null,
"nonce": null,
"args": {
"now": "1663044474017"
},
"tip": null,
"hash": "0x5c31e9a463d50d5206abff0ad7517d143ffa7c952272d7e41b47da7ba69d3a3d",
"info": {},
"era": {
"immortalEra": "0x00"
},
"events": [
{
"method": {
"pallet": "system",
"method": "ExtrinsicSuccess"
},
"data": [
{
"weight": "158473000",
"class": "Mandatory",
"paysFee": "Yes"
}
]
}
],
"success": true,
"paysFee": false
},
{
"method": {
"pallet": "paraInherent",
"method": "enter"
},
"signature": null,
"nonce": null,
"args": {
"data": {
"bitfields": [
{
"payload": "0x6fa8b0d61000",
"validatorIndex": "0",
"signature": "0xd27c3770fc836389a78faa1e8e5f713636490a39cb45f63f12d2ed233a3aee661c14d5604cbac1b54a6127cc80f61aafa1290da81b6c8ace3d34f791a7305c86"
}
],
"backedCandidates": [
{
"candidate": {
"descriptor": {
"paraId": "2004",
"relayParent": "0x5e0578aa8bae248b226fe08b2eb183441b7dbeec2cb4d420b77a9e8d26035d78",
"collator": "0xa8c81410160c8d48ad8df372f0841a71ec95a4cc9847fbfbd80bde690025af07",
"persistedValidationDataHash": "0x9609a003db67bea022fc12d45df1a44fa5a6fdc9f1af420d72a074beef2adcae",
"povHash": "0x473c6363ef234d5354f2056b31d7f8ed5e5267c81dd415497f7d6195fe74426e",
"erasureRoot": "0x5b1a7208a0a7e2c3502ea4f5e2877681b61af336c8a7d5ffa551d9bce6d7948b",
"signature": "0xda951c15502c7b12721b2efe119aafb7c031f09faa68adfc4bf254a98547df25cdc27aa153e09d08ddf5507685822e6b4886a268eb8fd4a756657977484f8585",
"paraHead": "0xa2cba043ac072453893ed34e1e866374e941d5c122c9ef39abae6fc4876a2cb7",
"validationCodeHash": "0x0cfb5c7a430c32c41aea2fce1f6f92e98bf488318d103ad8f1fedcaeaf488680"
},
"commitments": {
"upwardMessages": [],
"horizontalMessages": [],
"newValidationCode": null,
"headData": "0x90c249c5e3b9610fb80bc0fa9e7db7761b85dbbac1f31243bc84f53bbf04730b463f8d00341d943defa707acbb757e192389485f8bfa4ee5d4a85e6a619240356f273f86054b1a78d7b0af0ade2af82420c4f02a6057a865a9e9d59b4b0912caab0b9c07080661757261209fab42080000000005617572610101048116c253549c16471f3349aa6d872a486a97dab7890467abf8c44113534566af5846c9a4af9e1006dfe2988485999a865ccf1c0ddbafade58c9aaf41b7a088",
"processedDownwardMessages": "0",
"hrmpWatermark": "14428475"
}
},
"validityVotes": [
{
"explicit": "0xa8fee34bd7b8b5c0ac355a12f6f1793d9fc66c3e7c9e030f21945eab829abd39990f15ddf570e761e07f187a3faacbae54be8acd2879efa9224b29a545335488"
}
],
"validatorIndices": "0x1f"
}
],
"disputes": [],
"parentHeader": {
"parentHash": "0xd1be1872092fe146a71b1eaffbbce9914f71c624903e6114edce28fad04d21a0",
"number": "14428475",
"stateRoot": "0x34f67d5fba27e5c632cc347588127e2370135e8a70501b5b953f433bb1a30f0e",
"extrinsicsRoot": "0xa2fb83115ca259e3ed76ae18dcc2583fabf722490f3d0f79b15381d6565bf9db",
"digest": {
"logs": [
{
"preRuntime": [
"0x42414245",
"0x03cc0100003e57851000000000182497b44690138a53648167e18c69bc02856978e5e64911a8c852a4ed291f1cb3c21fe3213e28ab270711a262cb111ccc7ad4863b42f5d8407075d422f7600f51400ce9b60cb90234e8e03aa995119a258f180ebd8ea5d67d0c6e33eba5c009"
]
},
{
"seal": [
"0x42414245",
"0xb8a10be90b2b7a52c60d55bf7248c8b9089d947914b76143edd92a9368d8f67628df432aae4da76f291de789e98fa6831ab2afe01691c0375d741c70e81f7880"
]
}
]
}
}
}
},
"tip": null,
"hash": "0x317d1ce1b9f3b5ecd1dd3db29e131f34c537764f2ec1a6a5e0da27141ec5c2c9",
"info": {},
"era": {
"immortalEra": "0x00"
},
"events": [
{
"method": {
"pallet": "paraInclusion",
"method": "CandidateIncluded"
},
"data": [
{
"descriptor": {
"paraId": "1000",
"relayParent": "0xd1be1872092fe146a71b1eaffbbce9914f71c624903e6114edce28fad04d21a0",
"collator": "0x34f869c34e25bcd2f8f611a715636754d799cf9bdc0ab4e3ee7927340ef2cb15",
"persistedValidationDataHash": "0xea46cb60c650684d4091237ddcd57eb14f82872c2ee61b4e5ba1bf321209cc61",
"povHash": "0xf51c029036f8948ed05cd93a99788677ee23e28b1f2a73b32be5a7cd9d70b821",
"erasureRoot": "0x39140a7e44b3cea2b77d352c61e505ae87540ba224bb68680f4c20c3fec13334",
"signature": "0xfaa7545611e8e064dc2c39ee79a9fafc780bb7cd90f5c7e41b1cbb3c0c5670166adeda87846772eb29d0f6f69b814123b3fcbffe52fc1d0fdcaab065c8d0d58a",
"paraHead": "0x061074a49fb4a467ec8fa4e23bb983876e3c9777129d691488f788af72c2ebf8",
"validationCodeHash": "0x9b4d8c2ab4691fad86447c0c335fa64c33b789f2116e6329c3cfaf2e6ed19744"
},
"commitmentsHash": "0xae9a3f3d19cbfee485b58f0ec62483e892d61be721f5df8467da041b33b11621"
},
"0x5ecce6b1b368caf601f8f6dc05af5340e2f5f8b4f1f119c5d285a424b1e686813689ac005d2a171c86e6ce2f602689675dbc2fb4fe3012ea6cc881dcc3b3c589b8e4804287e5009f2fc0f2467436bd7272a20d78fdad64d149a5a45f4b26880c78d7c0a6080661757261209eab42080000000005617572610101d661537c333b666e869bb7cd637d874d916af63af4bc96976c7b8f8d5d1f241250d393fca6842a8e2aaa109433c451731f9409c2f484653b4cad8e7a7db2fb86",
"0",
"19"
]
},
{
"method": {
"pallet": "system",
"method": "ExtrinsicSuccess"
},
"data": [
{
"weight": "603978931000",
"class": "Mandatory",
"paysFee": "Yes"
}
]
}
],
"success": true,
"paysFee": false
},
{
"method": {
"pallet": "imOnline",
"method": "heartbeat"
},
"signature": null,
"nonce": null,
"args": {
"heartbeat": {
"blockNumber": "14428475",
"networkState": {
"peerId": "0x980024080112209c4a5752249675c3170252dc07cc0895bb5aeead35a91c4425492c82671dac0b",
"externalAddresses": [
"0x742f6970342f39352e3231372e3139382e3136322f7463702f3330333333",
"0x5c2f6970342f31302e322e332e302f7463702f3330333333"
]
},
"sessionIndex": "24467",
"authorityIndex": "37",
"validatorsLen": "999"
},
"signature": "0x58eaed586942bec36053bda12e8fd708506cca935a80792d8e9771c93fa90f6fbc71d2bb318e52de2a5ee3a543dc33acaea1c7efe2bc81277a01fb59d8aefa81"
},
"tip": null,
"hash": "0x498e1dba5b61b5ca6b39b7d9727f8dd00403ca18c74290ad283259883216ef12",
"info": {},
"era": {
"immortalEra": "0x00"
},
"events": [
{
"method": {
"pallet": "imOnline",
"method": "HeartbeatReceived"
},
"data": [
"0x5a725546ff8ac7e3017d695581e4a16a186b93eacb60a98b1ff182d020cafd01"
]
}
],
"success": true,
"paysFee": false
},
{
"method": {
"pallet": "xcmPallet",
"method": "limitedReserveTransferAssets"
},
"signature": {
"signature": "0xde1b4dce2c8de9bebde8d0e19ba9314b223746f4772a1182337d960c205c340dfcfcf98a0c085e39bd1be475f584007c68e13757d61dc9dc33789d6a4dd25c81",
"signer": {
"id": "HvsXi9GG9HMWmVm3XHhFGsEoC5JHAU3xwNnGXujCoSZCktd"
}
},
"nonce": "8",
"args": {
"dest": {
"v1": {
"parents": "0",
"interior": {
"x1": {
"parachain": "2023"
}
}
}
},
"beneficiary": {
"v1": {
"parents": "0",
"interior": {
"x1": {
"accountKey20": {
"network": {
"any": null
},
"key": "0x2c362fd5bd900b73c4bf140b7cd6875a56b0e7b6"
}
}
}
}
},
"assets": {
"v1": [
{
"id": {
"concrete": {
"parents": "0",
"interior": {
"here": null
}
}
},
"fun": {
"fungible": "695129938752236"
}
}
]
},
"fee_asset_item": "0",
"weight_limit": {
"limited": "1100000000"
}
},
"tip": "0",
"hash": "0x579a93f0a09479ed79a2f22829336b78142ba7bf07e0f823d4bf4731875ea8de",
"info": {
"error": "Fee calculation not supported for 9271#kusama"
},
"era": {
"mortalEra": [
"64",
"50"
]
},
"events": [
{
"method": {
"pallet": "balances",
"method": "Withdraw"
},
"data": [
"HvsXi9GG9HMWmVm3XHhFGsEoC5JHAU3xwNnGXujCoSZCktd",
"61581094"
]
}
],
"success": true,
"paysFee": true
}
],
"onFinalize": {
"events": []
},
"finalized": true
}
SpecificationView Specification

Parameters

  • blockId string (required) (path) Block identifier, as the block height or block hash.
  • eventDocs boolean (query) When set to true, every event will have an extra docs property with a string of the events documentation. Default value : false
  • extrinsicDocs boolean (query) When set to true, every extrinsic will have an extra docs property with a string of the extrinsics documentation. Default value : false

Response

  • Returns a single block. BlockId can either be a block hash or a block height. Replaces /block/{number} from versions < v1.0.0.

/blocks/{blockId}/header

Get a block's header by its height or hash. BlockId can either be a block hash or a block height.

Request Query (try it)
Example Response
{
"parentHash": "0x5e0578aa8bae248b226fe08b2eb183441b7dbeec2cb4d420b77a9e8d26035d78",
"number": "14428476",
"stateRoot": "0x76ea8d2e6ea1fa17fe0767e9fb5e38e81f4ce526d7ed06b1a653439ca7e61bbe",
"extrinsicsRoot": "0x87fbf0de05ee27fa0a6379c6b60a0a8e18b710a34653235fa7de3014af2f847c",
"digest": {
"logs": [
{
"preRuntime": [
"0x42414245",
"0x01480300003f578510000000009434ee2f8391cec896097b4caea21659c34b60d988e49636c786c6a355a17e14410aadc2e780ac2f2c6d120b4ecafd01ce98269505933f683c5e2085742bd60d0ce343686300e6bf953924dc355d8d134dc585481eda64aa1fcc6a0dd478d80d"
]
},
{
"seal": [
"0x42414245",
"0x42d2562dd22347c17446bd12b362f20f1eb81ac2bbe0e4661a4ab88c8f43e4138c9562d28ffb86dd2e6766ce0efd760bfbf0b99b5a381fa068b0075c0f35c287"
]
}
]
}
}
SpecificationView Specification

Parameters

  • blockId string (required) (path) Block identifier, as the block height or block hash.

Response

  • Returns a single block's header.

/blocks/{blockId}/extrinsics/{extinsicIndex}

Get an extrinsic by its extrinsicIndex and block height or hash. The pair blockID and extrinsicIndex are sometimes referred to as a timepoint.

Request Query (try it)
Example Response
{
"at": {
"height": "14428476",
"hash": "0x759db0eb1eb82173502dc42ed7441d0ce4cc0729ba545619f47b684e879293d3"
},
"extrinsics": {
"method": {
"pallet": "timestamp",
"method": "set"
},
"signature": null,
"nonce": null,
"args": {
"now": "1663044474017"
},
"tip": null,
"hash": "0x5c31e9a463d50d5206abff0ad7517d143ffa7c952272d7e41b47da7ba69d3a3d",
"info": {},
"era": {
"immortalEra": "0x00"
},
"events": [
{
"method": {
"pallet": "system",
"method": "ExtrinsicSuccess"
},
"data": [
{
"weight": "158473000",
"class": "Mandatory",
"paysFee": "Yes"
}
]
}
],
"success": true,
"paysFee": false
}
}
SpecificationView Specification

Parameters

  • blockId string (required) (path) Block identifier, as the block height or block hash.
  • extrinsicIndex string (required) (path) The extrinsic's index within the block's body.
  • eventDocs boolean (query) When set to true, every event will have an extra docs property with a string of the events documentation. Default value : false
  • extrinsicDocs boolean (query) When set to true, every extrinsic will have an extra docs property with a string of the extrinsics documentation. Default value : false

Response

  • Returns a single extrinsic.

/blocks/head

Get the most recently finalized block.

Request Query (try it)
Example Response
{
"number": "14428476",
"hash": "0x759db0eb1eb82173502dc42ed7441d0ce4cc0729ba545619f47b684e879293d3",
"parentHash": "0x5e0578aa8bae248b226fe08b2eb183441b7dbeec2cb4d420b77a9e8d26035d78",
"stateRoot": "0x76ea8d2e6ea1fa17fe0767e9fb5e38e81f4ce526d7ed06b1a653439ca7e61bbe",
"extrinsicsRoot": "0x87fbf0de05ee27fa0a6379c6b60a0a8e18b710a34653235fa7de3014af2f847c",
"authorId": "HEo4y9m3TqNKaPXQ4rpS9dRgEDggxe84viKvdKTbTncjvmB",
"logs": [
{
"type": "PreRuntime",
"index": "6",
"value": [
"0x42414245",
"0x01480300003f578510000000009434ee2f8391cec896097b4caea21659c34b60d988e49636c786c6a355a17e14410aadc2e780ac2f2c6d120b4ecafd01ce98269505933f683c5e2085742bd60d0ce343686300e6bf953924dc355d8d134dc585481eda64aa1fcc6a0dd478d80d"
]
},
{
"type": "Seal",
"index": "5",
"value": [
"0x42414245",
"0x42d2562dd22347c17446bd12b362f20f1eb81ac2bbe0e4661a4ab88c8f43e4138c9562d28ffb86dd2e6766ce0efd760bfbf0b99b5a381fa068b0075c0f35c287"
]
}
],
"onInitialize": {
"events": []
},
"extrinsics": [
{
"method": {
"pallet": "timestamp",
"method": "set"
},
"signature": null,
"nonce": null,
"args": {
"now": "1663044474017"
},
"tip": null,
"hash": "0x5c31e9a463d50d5206abff0ad7517d143ffa7c952272d7e41b47da7ba69d3a3d",
"info": {},
"era": {
"immortalEra": "0x00"
},
"events": [
{
"method": {
"pallet": "system",
"method": "ExtrinsicSuccess"
},
"data": [
{
"weight": "158473000",
"class": "Mandatory",
"paysFee": "Yes"
}
]
}
],
"success": true,
"paysFee": false
},
{
"method": {
"pallet": "paraInherent",
"method": "enter"
},
"signature": null,
"nonce": null,
"args": {
"data": {
"bitfields": [
{
"payload": "0x6fa8b0d61000",
"validatorIndex": "0",
"signature": "0xd27c3770fc836389a78faa1e8e5f713636490a39cb45f63f12d2ed233a3aee661c14d5604cbac1b54a6127cc80f61aafa1290da81b6c8ace3d34f791a7305c86"
}
],
"backedCandidates": [
{
"candidate": {
"descriptor": {
"paraId": "2004",
"relayParent": "0x5e0578aa8bae248b226fe08b2eb183441b7dbeec2cb4d420b77a9e8d26035d78",
"collator": "0xa8c81410160c8d48ad8df372f0841a71ec95a4cc9847fbfbd80bde690025af07",
"persistedValidationDataHash": "0x9609a003db67bea022fc12d45df1a44fa5a6fdc9f1af420d72a074beef2adcae",
"povHash": "0x473c6363ef234d5354f2056b31d7f8ed5e5267c81dd415497f7d6195fe74426e",
"erasureRoot": "0x5b1a7208a0a7e2c3502ea4f5e2877681b61af336c8a7d5ffa551d9bce6d7948b",
"signature": "0xda951c15502c7b12721b2efe119aafb7c031f09faa68adfc4bf254a98547df25cdc27aa153e09d08ddf5507685822e6b4886a268eb8fd4a756657977484f8585",
"paraHead": "0xa2cba043ac072453893ed34e1e866374e941d5c122c9ef39abae6fc4876a2cb7",
"validationCodeHash": "0x0cfb5c7a430c32c41aea2fce1f6f92e98bf488318d103ad8f1fedcaeaf488680"
},
"commitments": {
"upwardMessages": [],
"horizontalMessages": [],
"newValidationCode": null,
"headData": "0x90c249c5e3b9610fb80bc0fa9e7db7761b85dbbac1f31243bc84f53bbf04730b463f8d00341d943defa707acbb757e192389485f8bfa4ee5d4a85e6a619240356f273f86054b1a78d7b0af0ade2af82420c4f02a6057a865a9e9d59b4b0912caab0b9c07080661757261209fab42080000000005617572610101048116c253549c16471f3349aa6d872a486a97dab7890467abf8c44113534566af5846c9a4af9e1006dfe2988485999a865ccf1c0ddbafade58c9aaf41b7a088",
"processedDownwardMessages": "0",
"hrmpWatermark": "14428475"
}
},
"validityVotes": [
{
"explicit": "0xa8fee34bd7b8b5c0ac355a12f6f1793d9fc66c3e7c9e030f21945eab829abd39990f15ddf570e761e07f187a3faacbae54be8acd2879efa9224b29a545335488"
}
],
"validatorIndices": "0x1f"
}
],
"disputes": [],
"parentHeader": {
"parentHash": "0xd1be1872092fe146a71b1eaffbbce9914f71c624903e6114edce28fad04d21a0",
"number": "14428475",
"stateRoot": "0x34f67d5fba27e5c632cc347588127e2370135e8a70501b5b953f433bb1a30f0e",
"extrinsicsRoot": "0xa2fb83115ca259e3ed76ae18dcc2583fabf722490f3d0f79b15381d6565bf9db",
"digest": {
"logs": [
{
"preRuntime": [
"0x42414245",
"0x03cc0100003e57851000000000182497b44690138a53648167e18c69bc02856978e5e64911a8c852a4ed291f1cb3c21fe3213e28ab270711a262cb111ccc7ad4863b42f5d8407075d422f7600f51400ce9b60cb90234e8e03aa995119a258f180ebd8ea5d67d0c6e33eba5c009"
]
},
{
"seal": [
"0x42414245",
"0xb8a10be90b2b7a52c60d55bf7248c8b9089d947914b76143edd92a9368d8f67628df432aae4da76f291de789e98fa6831ab2afe01691c0375d741c70e81f7880"
]
}
]
}
}
}
},
"tip": null,
"hash": "0x317d1ce1b9f3b5ecd1dd3db29e131f34c537764f2ec1a6a5e0da27141ec5c2c9",
"info": {},
"era": {
"immortalEra": "0x00"
},
"events": [
{
"method": {
"pallet": "paraInclusion",
"method": "CandidateIncluded"
},
"data": [
{
"descriptor": {
"paraId": "1000",
"relayParent": "0xd1be1872092fe146a71b1eaffbbce9914f71c624903e6114edce28fad04d21a0",
"collator": "0x34f869c34e25bcd2f8f611a715636754d799cf9bdc0ab4e3ee7927340ef2cb15",
"persistedValidationDataHash": "0xea46cb60c650684d4091237ddcd57eb14f82872c2ee61b4e5ba1bf321209cc61",
"povHash": "0xf51c029036f8948ed05cd93a99788677ee23e28b1f2a73b32be5a7cd9d70b821",
"erasureRoot": "0x39140a7e44b3cea2b77d352c61e505ae87540ba224bb68680f4c20c3fec13334",
"signature": "0xfaa7545611e8e064dc2c39ee79a9fafc780bb7cd90f5c7e41b1cbb3c0c5670166adeda87846772eb29d0f6f69b814123b3fcbffe52fc1d0fdcaab065c8d0d58a",
"paraHead": "0x061074a49fb4a467ec8fa4e23bb983876e3c9777129d691488f788af72c2ebf8",
"validationCodeHash": "0x9b4d8c2ab4691fad86447c0c335fa64c33b789f2116e6329c3cfaf2e6ed19744"
},
"commitmentsHash": "0xae9a3f3d19cbfee485b58f0ec62483e892d61be721f5df8467da041b33b11621"
},
"0x5ecce6b1b368caf601f8f6dc05af5340e2f5f8b4f1f119c5d285a424b1e686813689ac005d2a171c86e6ce2f602689675dbc2fb4fe3012ea6cc881dcc3b3c589b8e4804287e5009f2fc0f2467436bd7272a20d78fdad64d149a5a45f4b26880c78d7c0a6080661757261209eab42080000000005617572610101d661537c333b666e869bb7cd637d874d916af63af4bc96976c7b8f8d5d1f241250d393fca6842a8e2aaa109433c451731f9409c2f484653b4cad8e7a7db2fb86",
"0",
"19"
]
},
{
"method": {
"pallet": "system",
"method": "ExtrinsicSuccess"
},
"data": [
{
"weight": "603978931000",
"class": "Mandatory",
"paysFee": "Yes"
}
]
}
],
"success": true,
"paysFee": false
},
{
"method": {
"pallet": "imOnline",
"method": "heartbeat"
},
"signature": null,
"nonce": null,
"args": {
"heartbeat": {
"blockNumber": "14428475",
"networkState": {
"peerId": "0x980024080112209c4a5752249675c3170252dc07cc0895bb5aeead35a91c4425492c82671dac0b",
"externalAddresses": [
"0x742f6970342f39352e3231372e3139382e3136322f7463702f3330333333",
"0x5c2f6970342f31302e322e332e302f7463702f3330333333"
]
},
"sessionIndex": "24467",
"authorityIndex": "37",
"validatorsLen": "999"
},
"signature": "0x58eaed586942bec36053bda12e8fd708506cca935a80792d8e9771c93fa90f6fbc71d2bb318e52de2a5ee3a543dc33acaea1c7efe2bc81277a01fb59d8aefa81"
},
"tip": null,
"hash": "0x498e1dba5b61b5ca6b39b7d9727f8dd00403ca18c74290ad283259883216ef12",
"info": {},
"era": {
"immortalEra": "0x00"
},
"events": [
{
"method": {
"pallet": "imOnline",
"method": "HeartbeatReceived"
},
"data": [
"0x5a725546ff8ac7e3017d695581e4a16a186b93eacb60a98b1ff182d020cafd01"
]
}
],
"success": true,
"paysFee": false
},
{
"method": {
"pallet": "xcmPallet",
"method": "limitedReserveTransferAssets"
},
"signature": {
"signature": "0xde1b4dce2c8de9bebde8d0e19ba9314b223746f4772a1182337d960c205c340dfcfcf98a0c085e39bd1be475f584007c68e13757d61dc9dc33789d6a4dd25c81",
"signer": {
"id": "HvsXi9GG9HMWmVm3XHhFGsEoC5JHAU3xwNnGXujCoSZCktd"
}
},
"nonce": "8",
"args": {
"dest": {
"v1": {
"parents": "0",
"interior": {
"x1": {
"parachain": "2023"
}
}
}
},
"beneficiary": {
"v1": {
"parents": "0",
"interior": {
"x1": {
"accountKey20": {
"network": {
"any": null
},
"key": "0x2c362fd5bd900b73c4bf140b7cd6875a56b0e7b6"
}
}
}
}
},
"assets": {
"v1": [
{
"id": {
"concrete": {
"parents": "0",
"interior": {
"here": null
}
}
},
"fun": {
"fungible": "695129938752236"
}
}
]
},
"fee_asset_item": "0",
"weight_limit": {
"limited": "1100000000"
}
},
"tip": "0",
"hash": "0x579a93f0a09479ed79a2f22829336b78142ba7bf07e0f823d4bf4731875ea8de",
"info": {
"error": "Fee calculation not supported for 9271#kusama"
},
"era": {
"mortalEra": [
"64",
"50"
]
},
"events": [
{
"method": {
"pallet": "balances",
"method": "Withdraw"
},
"data": [
"HvsXi9GG9HMWmVm3XHhFGsEoC5JHAU3xwNnGXujCoSZCktd",
"61581094"
]
}
],
"success": true,
"paysFee": true
}
],
"onFinalize": {
"events": []
},
"finalized": true
}
SpecificationView Specification

Parameters

  • finalized boolean (query) Boolean representing whether or not to get the finalized head. If it is not set the value defaults to true. When set to false it will attempt to get the newest known block, which may not be finalized. Default value : true
  • eventDocs boolean (query) When set to true, every event will have an extra docs property with a string of the events documentation. Default value : false
  • extrinsicDocs boolean (query) When set to true, every extrinsic will have an extra docs property with a string of the extrinsics documentation. Default value : false

Response

  • Returns the most recently finalized block. Replaces /block from versions < v1.0.0.

/blocks/head/header

Get information about the header of the most recently finalized block.

Request Query (try it)
Example Response
{
"parentHash": "0x82d24a78846f56844a36b3f5a107613d37d1ffade6cd5d78bc879a8a8ab26671",
"number": "14429118",
"stateRoot": "0x99be219d87ba890ac85ce319dbdfd341624b35195b64b948ed922a66aac56a43",
"extrinsicsRoot": "0x198940b47e51bd71b70458fb990fbd99251aee601d0ef92ac170cf77d39aeafc",
"digest": {
"logs": [
{
"preRuntime": [
"0x42414245",
"0x0399020000c159851000000000b2b75957c35ca9724bee91f105e28acd31b81bb5c96364be0ea7277328471d5b6167ba5eb4735a2acd23a6a0ddd62c2295654750ccd9f7bc3ae41aacec16a70c77bde8a8228310bb18822e12de72f19d7367a12c47d54a3ebf7a3eeb97678408"
]
},
{
"seal": [
"0x42414245",
"0xf4636db97ada162fe502184f071881ea13004f974dcd097f000cf4bf76daff49f5deff7cfe60c88cb7af8ca25183794f1f961b0bfd8427aebf5562e4f6000a8e"
]
}
]
}
}
SpecificationView Specification

Parameters

  • finalized boolean (query) Boolean representing whether or not to get the finalized head. If it is not set the value defaults to true. When set to false it will attempt to get the newest known block, which may not be finalized. Default value : true

Response

  • Returns the most recently finalized block's header.

/node/network

Get information about the Substrate node's activity in the peer-to-peer network.

Request Query (try it)
Example Response
{
"nodeRoles": [
{
"full": null
}
],
"numPeers": "50",
"isSyncing": false,
"shouldHavePeers": true,
"localPeerId": "12D3KooWR6zMM1jiTRtmmFzpP2DJcqMZJkiKn5b9xphCVqpZZTG4",
"localListenAddresses": [
"/ip6/::1/tcp/30333/ws/p2p/12D3KooWR6zMM1jiTRtmmFzpP2DJcqMZJkiKn5b9xphCVqpZZTG4",
"/ip6/fe80::a838:13ff:fef6:96a5/tcp/30333/ws/p2p/12D3KooWR6zMM1jiTRtmmFzpP2DJcqMZJkiKn5b9xphCVqpZZTG4",
"/ip6/fe80::f05a:21ff:fe45:d6e2/tcp/30333/ws/p2p/12D3KooWR6zMM1jiTRtmmFzpP2DJcqMZJkiKn5b9xphCVqpZZTG4",
"/ip4/127.0.0.1/tcp/30333/ws/p2p/12D3KooWR6zMM1jiTRtmmFzpP2DJcqMZJkiKn5b9xphCVqpZZTG4",
"/ip4/143.110.212.180/tcp/30333/ws/p2p/12D3KooWR6zMM1jiTRtmmFzpP2DJcqMZJkiKn5b9xphCVqpZZTG4",
"/ip4/10.20.0.185/tcp/30333/ws/p2p/12D3KooWR6zMM1jiTRtmmFzpP2DJcqMZJkiKn5b9xphCVqpZZTG4",
"/ip4/10.137.255.95/tcp/30333/ws/p2p/12D3KooWR6zMM1jiTRtmmFzpP2DJcqMZJkiKn5b9xphCVqpZZTG4"
],
"peersInfo": "Cannot query system_peers from node."
}
SpecificationView Specification

Parameters

  • None

Response

  • Returns network related information of the node.

/node/transaction-pool

Get pending extrinsics from the substrate node.

Request Query (try it)
Example Response
{
"pool": [
{
"hash": "0xda24d0e413dec9ba25d3b7a8a55457821f1d4b0f4746b0da9c12959fa3e83fc9",
"encodedExtrinsic": "0xd907040b00c32bdc009c98002408011220af131d3257a1b05ac098f5bd6f6ab6626ab7354b6194bb7ed05783be0ff65d903474702f6970342f36352e3130392e35392e3138312f7463702f33303333338c882f6970362f326130313a3466393a35613a346638383a3a322f7463702f333033333368642f6970342f31302e34382e342e37382f7463702f333033333368642f6970342f31302e34382e362e31342f7463702f333033333374702f6970342f31302e34382e3131322e3231332f7463702f3330333333706c2f6970342f31302e34382e32322e3137332f7463702f33303333336c682f6970342f31302e34382e352e3132372f7463702f333033333374702f6970342f31302e34382e3130312e3230332f7463702f333033333374702f6970342f35312e3135392e31312e3133322f7463702f333033333374702f6970342f31302e34382e3131302e3230382f7463702f3330333333605c2f6970342f31302e302e302e312f7463702f3330333333706c2f6970342f31302e34382e3131352e38332f7463702f333033333368642f6970342f31302e34382e39382e382f7463702f3330333333945f00004b010000e8030000540c2e2209075faefdeb698655aac01dcda0324acc6d7a609cb86e6bf69c415b71b00066a93af6b7dd472ed0d437d5a92ca57111cc8cc5335657ec586de7de83"
},
{
"hash": "0xe15cd4244bfdea062d5b242cab25c126920355d93731aeca8dce251dca5a1f70",
"encodedExtrinsic": "0x4d03040b00c32bdc009c98002408011220dc7992446ef598a5711a5e6fcab37fa16dfbe2c9d3f4b769c6fc0922bc3c02df0c706c2f6970342f33352e3138332e3135322e312f7463702f333033333374702f6970342f33352e3138332e35302e3234332f7463702f33303333336c682f6970342f31302e34382e3132352e392f7463702f3330333333945f000090010000e80300007c86012468f8ce14562aa1f5a6fbe018a246baeb89febd3d864da8843b6dac1648fca188e65e62078dc3e8cc343eacfd1ba00f5827afc1be513e4126e443248e"
}
]
}
SpecificationView Specification

Parameters

  • includeFee boolean (query) Boolean representing whether or not to include tips, partialFee, and priority in each extrinsic. Default value : false

Response

  • Returns the extrinsics that the node knows of that have not been included in a block.

/node/version

Get information about the Substrate node's implementation and versioning.

Request Query (try it)
Example Response
{
"clientVersion": "0.9.28-314298c32ac",
"clientImplName": "parity-kusama",
"chain": "Kusama"
}
SpecificationView Specification

Parameters

  • None

Response

  • Returns versioning information of the node.

/pallets/staking/progress

Get progress on the general Staking pallet system.

Request Query (try it)
Example Response
{
"at": {
"hash": "0x303c8634ab5e67f82b66f8240abdbf08c4d666882efaa37ab78dd0c1852fe66b",
"height": "14429121"
},
"activeEra": "4196",
"forceEra": "NotForcing",
"nextSessionEstimate": "14429476",
"unappliedSlashes": [],
"nextActiveEraEstimate": "14432476",
"electionStatus": "Deprecated, see docs",
"idealValidatorCount": "1000",
"validatorSet": [
"CaKh7HmPMXxv22GnLgjEZxWHBUu7y7Twf2k8mP3mxpLYTH4",
"JLeppfg7UTwVtYf6t3SjEwDC6uPi6t7ntYM7yyShUk4vnJq"
]
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve a staking progress report.

Response

  • Returns information on the progress of key components of the staking system and estimates of future points of interest.

/pallets/{palletId}/storage

Get a list of storage items for a pallet.

Request Query (try it)
Example Response
{
"at": {
"hash": "0x50a1974ef3e6f1a40c3968aaa0c6465384edb25f34fdaba62c1e8c63628e8e28",
"height": "14429125"
},
"pallet": "authorship",
"palletIndex": "5",
"items": [
{
"name": "Uncles",
"modifier": "Default",
"type": {
"plain": "220"
},
"fallback": "0x00",
"docs": " Uncles"
},
{
"name": "Author",
"modifier": "Optional",
"type": {
"plain": "0"
},
"fallback": "0x00",
"docs": " Author of current block."
},
{
"name": "DidSetUncles",
"modifier": "Default",
"type": {
"plain": "35"
},
"fallback": "0x00",
"docs": " Whether uncles were already set in this block."
}
]
}
SpecificationView Specification

Parameters

  • palletId string (required) (path) Name or index of the pallet to query the storage of. Note: the pallet name must match what is specified in the runtime metadata.
  • adjustMetadataV13 boolean (query) Instruct sidecar to return StorageEntryType in the V13 metadata format rather than V14. This is a temporary flag to allow existing systems to migrate. It will be deprecated and then removed in the future.
  • onlyIds boolean (query) Only return the names (IDs) of the storage items instead of all of each storage item's metadata.
  • at string($unsignedInteger or $hex) (query) Block at which to retrieve a list of the pallet's storage items.

Response

  • Returns a list of storage item metadata for storage items of the specified palletId.

/pallets/{palletId}/storage/{storageItemId}

Get the value of a storage item. If it is a map, query param key1 is required. If the storage item is double map query params key1 and key2 are required.

Request Query (try it)
Example Response
{
"at": {
"hash": "0xb1469e903eaf1448525af77f16b5cce16ac75061c18506ffc8be819a9beba900",
"height": "14429130"
},
"pallet": "authorship",
"palletIndex": "5",
"storageItem": "didSetUncles",
"value": false
}
SpecificationView Specification

Parameters

  • palletId string (required) (path) Name or index of the pallet to query the storage of. Note: the pallet name must match what is specified in the runtime metadata.
  • storageItemId string (required) (path) Id of the storage item to query for.
  • adjustMetadataV13 boolean (query) Instruct sidecar to return StorageEntryType in the V13 metadata format rather than V14. This is a temporary flag to allow existing systems to migrate. It will be deprecated and then removed in the future.
  • key1 string (query) Key for a map, or first key for a double map. Required for querying a map.
  • key2 string (query) Second key for a double map. Required for querying a double map.
  • at string($unsignedInteger or $hex) (query) Block at which to query the storage item at.
  • metadata boolean (query) Include the storage items metadata (including documentation) if set to true. Default value : false

Response

  • Returns the value stored under the storageItemId.

/runtime/metadata

Get the runtime metadata in decoded, JSON form.

Request Query (try it)
Example Response
{
"magicNumber": "1635018093",
"metadata": {
"v14": {
"lookup": {
"types": [
{
"id": "0",
"type": {
"path": [
"sp_core",
"crypto",
"AccountId32"
],
"params": [],
"def": {
"composite": {
"fields": [
{
"name": null,
"type": "1",
"typeName": "[u8; 32]",
"docs": []
}
]
}
},
"docs": []
}
}
]
}
}
}
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve the metadata at.

Response

  • Returns the runtime metadata as a JSON object. Substrate Reference: - FRAME Support: https://crates.parity.io/frame_support/metadata/index.html - Knowledge Base: https://substrate.dev/docs/en/knowledgebase/runtime/metadata

/runtime/code

Get the runtime wasm blob.

Request Query (try it)
Example Response
{
"at": {
"hash": "0x32a5cf751424fcc3512755a87415eb38473d26e7e3e8afa2db266c0b0e47242c",
"height": "14429207"
},
"code": "0x52bc537"
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve the runtime wasm blob at.

Response

  • Returns the runtime Wasm blob in hex format.

/runtime/spec

Get the version information of the substrate runtime.

Request Query (try it)
Example Response
{
"at": {
"height": "14429219",
"hash": "0xe78dd4bddcf8c8b3226ee62232021d9cc148ccd0f9c70330b1a7d658d8fb2574"
},
"authoringVersion": "2",
"transactionVersion": "12",
"implVersion": "0",
"specName": "kusama",
"specVersion": "9271",
"chainType": {
"live": null
},
"properties": {
"ss58Format": "2",
"tokenDecimals": [
"12"
],
"tokenSymbol": [
"KSM"
]
}
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve runtime version information at.

Response

  • Returns version information related to the runtime.

/transaction

Submit a transaction to the node's transaction pool.

Request Body (try it)
Example Response
{
"hash": "string"
}
SpecificationView Specification

Parameters

  • tx (string) as JSON body parameters.

Response

  • Accepts a valid signed extrinsic and returns the hash of the successfully submitted transaction.

/transaction/dry-run

Use the dryrun call to practice the submission of a transaction.

Request Body (try it)
Example Response
{
"resultType": "DispatchOutcome",
"result": "Ok",
"validityErrorType": "InvalidTransaction"
}
SpecificationView Specification

Parameters

  • tx (string) as JSON body parameters.

Response

  • Returns resultType. result and alidityErrorType.

/transaction/fee-estimate

Send a serialized transaction and receive back a naive fee estimate. Note: partialFee does not include any tips that you may add to increase a transaction's priority. See the reference on compute_fee. Replaces /tx/fee-estimate from versions < v1.0.0. Substrate Reference: - RuntimeDispatchInfo: https://crates.parity.io/pallet_transaction_payment_rpc_runtime_api/struct.RuntimeDispatchInfo.html - query_info: https://crates.parity.io/pallet_transaction_payment/struct.Module.html#method.query_info - compute_fee: https://crates.parity.io/pallet_transaction_payment/struct.Module.html#method.compute_fee

Request Body (try it)
Example Response
{
"weight": "string",
"class": "Normal",
"partialFee": "string"
}
SpecificationView Specification

Parameters

  • tx (string) as JSON body parameter.

Response

  • Returns the fee estimation for the submitted transaction which includes weight, class and partialFee.

/transaction/material

Get all the network information needed to construct a transaction offline.

Request Query (try it)
Example Response
{
"at": {
"hash": "0xe81d701afde0a122eef9834c42cedae456fc4412a78c6543261a033d2eac3e6b",
"height": "14429230"
},
"genesisHash": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",
"chainName": "Kusama",
"specName": "kusama",
"specVersion": "9271",
"txVersion": "12",
"metadata": "0x6d65"
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve the transaction construction material.
  • noMeta boolean (query) Default value : false
  • false metadata string (query)

Response

  • Returns the material that is universal to constructing any signed transaction offline.

/paras

List all registered paras (parathreads and parachains).

Request Query (try it)
Example Response
{
"at": {
"hash": "0x44413b1d42631f76d8372de0379a4954f5f2106ffafd808eefd3482f921dd04d",
"height": "14429233"
},
"paras": [
{
"paraId": "2096",
"paraLifecycle": "Parachain"
}
]
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve paras list at.

Response

  • Returns all registered parachains and parathreads with lifecycle info.

/paras/leases/current

Get general information about the current lease period.

Request Query (try it)
Example Response
{
"at": {
"hash": "0xbbf23da2ea59ec4c9e418923502b23fd14cd8ca7b176b0e0ea11fabbe4fba605",
"height": "14429235"
},
"leasePeriodIndex": "23",
"endOfLeasePeriod": "14515200"
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve current lease period info at.
  • currentLeaseHolders boolean (query) Wether or not to include the currentLeaseHolders property. Inclusion of the property will likely result in a larger payload and increased response time. Default value : true

Response

  • Returns an overview of the current lease period, including lease holders.

/paras/auctions/current

Get the status of the current auction.

Request Query (try it)
Example Response
{
"at": {
"hash": "0x8ccffc6e2636a3b10853b2a383f77496e7bf16edeb59a67b0dac9726f3285df5",
"height": "14429239"
},
"beginEnd": null,
"finishEnd": null,
"phase": null,
"auctionIndex": "52",
"leasePeriods": null,
"winning": null
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve auction progress at.

Response

  • Returns an overview of the current auction. There is only one auction at a time. If there is no auction most fields will be null. If the current auction phase is in vrfDelay and you are looking to retrieve the latest winning bids, it is advised to query one block before finishEnd in the endingPeriod phase for that auction as there technically are no winners during the vrfDelay and thus the field is null.

/paras/crowdloans

List all stored crowdloans.

Request Query (try it)
Example Response
{
"at": {
"hash": "0x309de90dbaed122918f0dd6fb94b3c49cbe9ff038b87d53ca322fedbeb9c2fd3",
"height": "14429240"
},
"funds": [
{
"paraId": "2096",
"fundInfo": {
"depositor": "Ff9JGfDpZ9TjLh7C2NXSUNAd3rAFNFqefxWE35vjCFyXKr4",
"verifier": null,
"deposit": "9999999900000",
"raised": "209494415690158036",
"end": "10281600",
"cap": "222222000000000000",
"lastContribution": {
"ending": "10006672"
},
"firstPeriod": "17",
"lastPeriod": "24",
"fundIndex": "39"
}
},
{
"paraId": "2100",
"fundInfo": {
"depositor": "DQd4dJJs3hiEMAguTQQ9YGCH8Z6Pq8kxpTRMGHMGbWPcMRi",
"verifier": null,
"deposit": "9999999900000",
"raised": "100420606133823646",
"end": "10786200",
"cap": "100420690000000000",
"lastContribution": {
"ending": "10331222"
},
"firstPeriod": "18",
"lastPeriod": "25",
"fundIndex": "48"
}
}
]
}
SpecificationView Specification

Parameters

  • at string($unsignedInteger or $hex) (query) Block at which to retrieve the list of paraIds that have crowdloans at.

Response

  • Returns a list of all the crowdloans and their associated paraIds.

/paras/{paraId}/crowdloan-info

Get crowdloan information for a paraId.

Request Query (try it)
Example Response
{
"at": {
"hash": "0x95b8271b67a4a9db35da0b42e925816a98b98f1bb6441aea4c56d99b9337865a",
"height": "14429245"
},
"fundInfo": {
"depositor": "Ff9JGfDpZ9TjLh7C2NXSUNAd3rAFNFqefxWE35vjCFyXKr4",
"verifier": null,
"deposit": "9999999900000",
"raised": "209494415690158036",
"end": "10281600",
"cap": "222222000000000000",
"lastContribution": {
"ending": "10006672"
},
"firstPeriod": "17",
"lastPeriod": "24",
"fundIndex": "39"
},
"leasePeriods": [
"17"
]
}
SpecificationView Specification

Parameters

  • paraId number (required) (path) paraId to query the crowdloan information of.
  • at string($unsignedInteger or $hex) (query) Block at which to retrieve info at.

Response

  • Returns crowdloan's fundInfo and the set of leasePeriods the crowdloan` covers.

/paras/{paraId}/lease-info

Get current and future leases as well as the lifecycle stage for a given paraId.

Request Query (try it)
Example Response
{
"at": {
"hash": "0xc5900ad69feafe82f51687b37b744a98335fa945e43c1debb49818b9e38afefe",
"height": "14429248"
},
"paraLifecycle": "Parachain",
"leases": [
{
"leasePeriodIndex": "23",
"account": "F3opxRbN5ZZRfqouuW7kW9c5yranmYFgBsizkdWDxSHPWTG",
"deposit": "140949890361938436"
}
]
}
SpecificationView Specification

Parameters

  • paraId number (required) (path) paraId to query the crowdloan information of.
  • at string($unsignedInteger or $hex) (query) Block at which to retrieve para's leases at.

Response

  • Returns a list of leases that belong to the paraId as well as the paraId's current lifecycle stage.

/accounts/{accountId}/staking-info

Get staking information for a stash account.

Request Query (try it)
Example Response
{
"at": {
"hash": "0x22a6166e157e040d4841d122f3e56b1e88296b8ea10a942d55dea3182b6dd285",
"height": "14429267"
},
"controller": "H1Z8HLNj6or4NQA16mcFgeAenTAiPcv6p2ZiEzZhyN19k6b",
"rewardDestination": {
"account": "Du48TJVZUpKGx7P13p1pyLqTuUp5fgcX3Cm9hdmocXTub9n"
},
"numSlashingSpans": "0",
"staking": {
"stash": "GxxV8DAcHCSzBbspu83AK9UoTYxzSQ6VVfdopjnkXfPtE8d",
"total": "50100047134734",
"active": "50100047134734",
"unlocking": [],
"claimedRewards": [
"4111"
]
}
}
SpecificationView Specification

Parameters

  • accountId string($SS58) (required) (path) SS58 address of the account. Must be a Stash account.
  • at string($unsignedInteger or $hex (query) Block at which to query the staking info for the specified account.

Response

  • Returns information about a Stash account's staking activity.

/accounts/{accountId}/staking-payouts

Get payout information for a stash account.

Request Query (try it)
Example Response
{
"at": {
"height": "14429271",
"hash": "0x46ec43a6eccb5167cdb64a3c922ae6da3c91521aaa0647797b53a82293c44c78"
},
"erasPayouts": [
{
"era": "4195",
"totalEraRewardPoints": "5050700",
"totalEraPayout": "548545426494212",
"payouts": [
{
"validatorId": "GxxV8DAcHCSzBbspu83AK9UoTYxzSQ6VVfdopjnkXfPtE8d",
"nominatorStakingPayout": "474644358",
"claimed": false,
"totalValidatorRewardPoints": "140",
"validatorCommission": "30000000",
"totalValidatorExposure": "39925526632463877",
"nominatorExposure": "50100047134734"
}
]
}
]
}
SpecificationView Specification

Parameters

  • accountId string($SS58) (required) (path) SS58 address of the account. Must be a Stash account.
  • depth string($unsignedInteger) (query) The number of eras to query for payouts of. Must be less than or equal to HISTORY_DEPTH. In cases where era - (depth -1) is less than 0, the first era queried will be 0. Default value : 1
  • era string($unsignedInteger) (query) The era to query at. Default value : active_era - 1
  • unclaimedOnly string($boolean) (query) Only return unclaimed rewards. Default value : true

Response

  • Returns payout information for the last specified eras. If specifying both the depth and era query params, this endpoint will return information for (era - depth) through era. (i.e. if depth=5 and era=20 information will be returned for eras 16 through 20). N.B. You cannot query eras less then current_era - HISTORY_DEPTH. N.B. The nominator* fields correspond to the address being queried, even if it is a validator's Stash address. This is because a validator is technically nominating itself.