1
2
3
4
5
6
7
8
9
export async function foo() {
const { createPublicClient, http } = await import("npm:viem");
const { mainnet } = await import("npm:viem/chains");
const client = createPublicClient({
chain: mainnet,
transport: http(),
});
console.log(client);
}