Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kusama contracts API

The contracts API from Kusama — 1 operation(s) for contracts.

Kusama contracts API is one of 21 APIs that Kusama publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include contracts. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 1 operation across 1 path, and defines 3 schemas. It is described by OpenAPI 3.0.0, at version 20.14.1.

Requests are made against 5 base URLs: https://polkadot-public-sidecar.parity-chains.parity.io/, https://kusama-public-sidecar.parity-chains.parity.io/, https://polkadot-asset-hub-public-sidecar.parity-chains.parity.io/, https://kusama-asset-hub-public-sidecar.parity-chains.parity.io/, http://localhost:8080.

1 operations 1 paths 3 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
20.14.1
Base URL
https://kusama-rpc.polkadot.io/
Resource Areas
1

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

contracts 1
POST
/contracts/ink/{address}/query
Query an !Ink contract with a given message (method).
callContractQuery 5 params body → 200400

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are ContractsInkQuery (6 properties), Error (4 properties). Each schema is shown below with its type and property counts.

Error
object
4 properties
ContractMetadata
object
Metadata used to instantiate a ContractPromise. This metadata can be generated by compiling the contract you are querying.
ContractsInkQuery
object
Result from calling a query to a Ink contract.
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kusama-contracts-api-openapi.yml Raw ↑

Other APIs Kusama publishes across the network.

Kusama JSON-RPC API
Kusama accounts API
Kusama ahm API
Kusama blocks API
Kusama coretime API
Kusama node API
Kusama pallets API
Kusama paras API
Kusama rc accounts API
Kusama rc API
Kusama rc blocks API
Kusama rc node API