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 { lockProfile } from '@avalanche-sdk/client/methods/admin'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
});
await lockProfile(client);
Writes a profile of mutex statistics to
lock.profile
.