The client to use to make the request AvalancheCoreClient
The proposed height. GetProposedHeightReturnType
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { getProposedHeight } from '@avalanche-sdk/client/methods/pChain'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
})
const proposedHeight = await getProposedHeight(client)
Get the proposed height of the P-Chain.