Creates an Avalanche Core Client with a given transport configured for a Chain.
The Avalanche Core Client is a base client that can be used to create other Avalanche clients or make rpc requests.
AvalancheCoreClientConfig
A Avalanche Core Client. AvalancheCoreClient
import { createAvalancheCoreClient } from '@avalanche-sdk/client'import { avalanche } from '@avalanche-sdk/client/chains'const client = createAvalancheCoreClient({ chain: avalanche, transport: { type: "http" },})const block = await client.getBlock("latest") Copy
import { createAvalancheCoreClient } from '@avalanche-sdk/client'import { avalanche } from '@avalanche-sdk/client/chains'const client = createAvalancheCoreClient({ chain: avalanche, transport: { type: "http" },})const block = await client.getBlock("latest")
Creates an Avalanche Core Client with a given transport configured for a Chain.
The Avalanche Core Client is a base client that can be used to create other Avalanche clients or make rpc requests.