UNPKG

@polkadot/react-api

Version:

A collection of RxJs React components the Polkadot JS API

10 lines (9 loc) 278 B
import React from 'react'; import ApiPromise from '@polkadot/api/promise'; interface Props { children: React.ReactNode; url?: string; } declare let api: ApiPromise; export { api }; export default function Api({ children, url }: Props): React.ReactElement<Props> | null;