Every API here is available over the APIs.io API and to AI agents over MCP.
{
"openapi": "3.1.0",
"info": {
"title": "Enjin Blockchain REST API",
"description": "REST API for Enjin and Canary Relaychain and Matrixchain. Forked from Parity Technologies' Polkadot REST API.",
"contact": {
"url": "https://github.com/enjin/blockchain-rest-api"
},
"license": {
"name": "GPL-3.0-or-later"
},
"version": "0.3.3"
},
"servers": [
{
"url": "http://localhost:8080",
"description": "Localhost"
}
],
"paths": {
"/v1/accounts/compare": {
"get": {
"tags": [
"accounts"
],
"summary": "Compare account addresses",
"description": "Compares multiple SS58 addresses to determine if they have the same underlying public key.",
"operationId": "get_compare",
"parameters": [
{
"name": "addresses",
"in": "query",
"description": "Comma-separated list of SS58 addresses to compare (max 30)",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Comparison result",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountCompareResponse"
}
}
}
},
"400": {
"description": "Invalid parameters"
}
}
}
},
"/v1/accounts/{accountId}/balance-info": {
"get": {
"tags": [
"accounts"
],
"summary": "Account balance info",
"description": "Returns balance information for a given account including free, reserved, and locked balances.",
"operationId": "get_balance_info",
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "SS58-encoded account address",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "at",
"in": "query",
"description": "Block hash or number to query at",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat 'at' as relay chain block identifier",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "token",
"in": "query",
"description": "Token symbol for chains with multiple tokens",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "denominated",
"in": "query",
"description": "When true, denominate balances using chain decimals",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Account balance information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BalanceInfoResponse"
}
}
}
},
"400": {
"description": "Invalid account or block parameter"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/accounts/{accountId}/convert": {
"get": {
"tags": [
"accounts"
],
"summary": "Convert account format",
"description": "Converts an account address between different SS58 formats and key types.",
"operationId": "get_convert",
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "SS58-encoded account address or hex public key",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "scheme",
"in": "query",
"description": "Cryptographic scheme: ed25519, sr25519, or ecdsa (default: sr25519)",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "prefix",
"in": "query",
"description": "SS58 prefix number (default: 42)",
"required": false,
"schema": {
"type": "integer",
"format": "int32",
"minimum": 0
}
},
{
"name": "publicKey",
"in": "query",
"description": "If true, treat input as a public key",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Converted account information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountConvertResponse"
}
}
}
},
"400": {
"description": "Invalid parameters"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/accounts/{accountId}/proxy-info": {
"get": {
"tags": [
"accounts"
],
"summary": "Account proxy info",
"description": "Returns proxy information for a given account including delegated proxies and their types.",
"operationId": "get_proxy_info",
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "SS58-encoded account address",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "at",
"in": "query",
"description": "Block hash or number to query at",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat 'at' as relay chain block identifier",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Proxy information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProxyInfoResponse"
}
}
}
},
"400": {
"description": "Invalid parameters"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/accounts/{accountId}/staking-info": {
"get": {
"tags": [
"accounts"
],
"summary": "Account staking info",
"description": "Returns staking information for a given stash account including bonded amount, controller, and nominations.",
"operationId": "get_staking_info",
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "SS58-encoded stash account address",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "at",
"in": "query",
"description": "Block hash or number to query at",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat 'at' as relay chain block identifier",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "includeClaimedRewards",
"in": "query",
"description": "When true, include claimed rewards in the response",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Staking information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StakingInfoResponse"
}
}
}
},
"400": {
"description": "Invalid parameters"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/accounts/{accountId}/staking-payouts": {
"get": {
"tags": [
"accounts"
],
"summary": "Account staking payouts",
"description": "Returns staking payout history for a given account including era rewards and claimed status.",
"operationId": "get_staking_payouts",
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "SS58-encoded stash account address",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "at",
"in": "query",
"description": "Block hash or number to query at",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "depth",
"in": "query",
"description": "Number of eras to query (default: 1)",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "era",
"in": "query",
"description": "The era to query at (default: active_era - 1)",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "unclaimedOnly",
"in": "query",
"description": "Only show unclaimed rewards (default: true)",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat 'at' as relay chain block identifier",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Staking payout information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StakingPayoutsResponse"
}
}
}
},
"400": {
"description": "Invalid parameters"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/accounts/{accountId}/validate": {
"get": {
"tags": [
"accounts"
],
"summary": "Validate account address",
"description": "Validates an SS58-encoded account address and returns details about its format.",
"operationId": "get_validate",
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "SS58-encoded account address to validate",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "at",
"in": "query",
"description": "Block hash or number (accepted for API consistency)",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Validation result",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountValidateResponse"
}
}
}
}
}
}
},
"/v1/accounts/{accountId}/vesting-info": {
"get": {
"tags": [
"accounts"
],
"summary": "Account vesting info",
"description": "Returns vesting information for a given account including vesting schedules and locked amounts.",
"operationId": "get_vesting_info",
"parameters": [
{
"name": "accountId",
"in": "path",
"description": "SS58-encoded account address",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "at",
"in": "query",
"description": "Block hash or number to query at",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat 'at' as relay chain block identifier",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "includeClaimable",
"in": "query",
"description": "When true, calculate vested amounts",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Vesting information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VestingInfoResponse"
}
}
}
},
"400": {
"description": "Invalid parameters"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/blocks": {
"get": {
"tags": [
"blocks"
],
"summary": "Get blocks by range",
"description": "Returns a collection of blocks given a numeric range. Range is inclusive and limited to 500 blocks. An entry that could not be decoded is still returned at its own index, with `decodeError` set, no `method` or `args`, and `era` as an empty object, and the response carries `partial: true`; its `events`, `success` and `paysFee` come from the block's events, and `success` is false when the block carried no outcome event for that index. Events emitted after the last extrinsic, by the FRAME poll hook or a multi block migration, are returned in a separate `afterExtrinsics` object, omitted when the block has none.",
"operationId": "get_blocks",
"parameters": [
{
"name": "range",
"in": "query",
"description": "Block range in format 'start-end' (e.g. '100-200')",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "eventDocs",
"in": "query",
"description": "Include documentation for events",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "extrinsicDocs",
"in": "query",
"description": "Include documentation for extrinsics",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "noFees",
"in": "query",
"description": "Skip fee calculation for extrinsics",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat range as Relay Chain blocks",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "useEvmFormat",
"in": "query",
"description": "Convert AccountId32 addresses to EVM format for revive pallet events",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Array of block information",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
},
"400": {
"description": "Invalid range parameter"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/blocks/head": {
"get": {
"tags": [
"blocks"
],
"summary": "Get latest block",
"description": "Returns the latest finalized or canonical block with full extrinsic and event details. An entry that could not be decoded is still returned at its own index, with `decodeError` set, no `method` or `args`, and `era` as an empty object, and the response carries `partial: true`; its `events`, `success` and `paysFee` come from the block's events, and `success` is false when the block carried no outcome event for that index. Events emitted after the last extrinsic, by the FRAME poll hook or a multi block migration, are returned in a separate `afterExtrinsics` object, omitted when the block has none.",
"operationId": "get_block_head",
"parameters": [
{
"name": "finalized",
"in": "query",
"description": "When true (default), returns finalized head. When false, returns canonical head.",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "eventDocs",
"in": "query",
"description": "Include documentation for events",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "extrinsicDocs",
"in": "query",
"description": "Include documentation for extrinsics",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "noFees",
"in": "query",
"description": "Skip fee calculation for extrinsics",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "decodedXcmMsgs",
"in": "query",
"description": "Decode and include XCM messages",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "paraId",
"in": "query",
"description": "Filter XCM messages by parachain ID",
"required": false,
"schema": {
"type": "integer",
"format": "int32",
"minimum": 0
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "When true, use relay chain head to find corresponding Matrixchain blocks",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "useEvmFormat",
"in": "query",
"description": "Convert AccountId32 addresses to EVM format for revive pallet events",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Latest block information",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/blocks/head/header": {
"get": {
"tags": [
"blocks"
],
"summary": "Get head block header",
"description": "Returns the header of the latest finalized or canonical block (lightweight, no extrinsics/events).",
"operationId": "get_blocks_head_header",
"parameters": [
{
"name": "finalized",
"in": "query",
"description": "When true (default), returns finalized head header. When false, returns canonical head header.",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat as Relay Chain block and return Matrixchain blocks",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Block header information",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/blocks/{blockId}": {
"get": {
"tags": [
"blocks"
],
"summary": "Get block by ID",
"description": "Returns block information for a given block identifier (hash or number), including extrinsics, events, and fees. An entry that could not be decoded is still returned at its own index, with `decodeError` set, no `method` or `args`, and `era` as an empty object, and the response carries `partial: true`; its `events`, `success` and `paysFee` come from the block's events, and `success` is false when the block carried no outcome event for that index. Events emitted after the last extrinsic, by the FRAME poll hook or a multi block migration, are returned in a separate `afterExtrinsics` object, omitted when the block has none.",
"operationId": "get_block",
"parameters": [
{
"name": "blockId",
"in": "path",
"description": "Block height number or block hash",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "eventDocs",
"in": "query",
"description": "Include documentation for events",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "extrinsicDocs",
"in": "query",
"description": "Include documentation for extrinsics",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "noFees",
"in": "query",
"description": "Skip fee calculation for extrinsics",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "finalizedKey",
"in": "query",
"description": "When true (default), include finalized status in response",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "decodedXcmMsgs",
"in": "query",
"description": "Decode and include XCM messages",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "paraId",
"in": "query",
"description": "Filter XCM messages by parachain ID",
"required": false,
"schema": {
"type": "integer",
"format": "int32",
"minimum": 0
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat blockId as Relay Chain block and return Matrixchain blocks",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "useEvmFormat",
"in": "query",
"description": "Convert AccountId32 addresses to EVM format for revive pallet events",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Block information",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"description": "Invalid block identifier"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/blocks/{blockId}/extrinsics-raw": {
"get": {
"tags": [
"blocks"
],
"summary": "Get raw extrinsics",
"description": "Returns raw block data with hex-encoded extrinsics for a given block identifier. The extrinsics are returned as raw hex strings without decoding.",
"operationId": "get_block_extrinsics_raw",
"parameters": [
{
"name": "blockId",
"in": "path",
"description": "Block height number or block hash",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "When true, treat blockId as Relay Chain block and return Matrixchain blocks",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Raw block data with hex-encoded extrinsics",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"description": "Invalid block identifier"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/blocks/{blockId}/extrinsics/{extrinsicIndex}": {
"get": {
"tags": [
"blocks"
],
"summary": "Get extrinsic by index",
"description": "Returns a specific extrinsic from a block by its index within the block. If that entry could not be decoded it is still returned, with `decodeError` set, no `method` or `args`, and `era` as an empty object; its `events`, `success` and `paysFee` come from the block's events, and `success` is false when the block carried no outcome event for that index.",
"operationId": "get_extrinsic",
"parameters": [
{
"name": "blockId",
"in": "path",
"description": "Block height number or block hash",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "extrinsicIndex",
"in": "path",
"description": "Index of the extrinsic within the block",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "eventDocs",
"in": "query",
"description": "Include documentation for events",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "extrinsicDocs",
"in": "query",
"description": "Include documentation for extrinsics",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "noFees",
"in": "query",
"description": "Skip fee calculation",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "When true, treat blockId as Relay Chain block and return Matrixchain extrinsics",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "useEvmFormat",
"in": "query",
"description": "Convert AccountId32 addresses to EVM format for revive pallet events",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Extrinsic details",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"description": "Invalid block identifier or extrinsic index"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/blocks/{blockId}/header": {
"get": {
"tags": [
"blocks"
],
"summary": "Get block header by ID",
"description": "Returns the header of the specified block (lightweight, no extrinsics/events).",
"operationId": "get_block_header",
"parameters": [
{
"name": "blockId",
"in": "path",
"description": "Block height number or block hash",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "useRcBlock",
"in": "query",
"description": "Treat blockId as Relay Chain block and return Matrixchain blocks",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Block header information",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"description": "Invalid block identifier"
},
"500": {
"description": "Internal server error"
},
"503": {
"description": "Service unavailable"
}
}
}
},
"/v1/blocks/{blockId}/para-inclusions": {
"get": {
"tags": [
"blocks"
# --- truncated at 32 KB (174 KB total) ---
# Full source: https://artifacts.apis.io/enjin/openapi/_original/enjin-openapi-openapi.json