The client to use. AvalancheCoreClient
Promise that resolves when the profile is written
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { memoryProfile } from '@avalanche-sdk/client/methods/admin'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
});
await memoryProfile(client);
Writes a memory profile of the node to
mem.profile
.