Page cover

plug-circle-plusIntegrations

Session for the best basic examples of using the Kinera network for d-apps

For this basic example, are use React with Typescript template:

Dependencies:
@polkadot/api
@polkadot/types/interfaces/jsonrpc

Use all dependencies for create a basic Api service for chain:

import { ApiPromise, WsProvider } from '@polkadot/api'

import jsonrpc from '@polkadot/types/interfaces/jsonrpc'
import { metadata } from './metadata'

Create a a ws provider:

const wsProvider = new WsProvider('wss://node.kinera.network')

Sendo types:

const types = metadata

Create a promise:

const api = await ApiPromise.create({
			provider: wsProvider,
			types,
			rpc: jsonrpc,
		})

Full example:

Example usage:

Get Contellation detail by Id:

Last updated