import { ApiPromise } from "https://deno.land/x/polkadot@0.2.27/api/promise/index.ts";
Examples
import Api from 'https://deno.land/x/polkadot@0.2.27/api/promise/index.ts';
Api.create().then(async (api) => {
const timestamp = await api.query.timestamp.now();
console.log(`lastest block timestamp ${timestamp}`);
});
Returns
Promise<ApiPromise>