Promise that resolves when the alias is set
Give a blockchain an alias, a different name that can be used any place the blockchain's ID is used. Note: The alias is set for each chain on each node individually.
Promise that resolves when the chain alias is set
import { createAvalancheClient} from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
const client = createAvalancheClient({
chain: avalanche,
transport: {
type: "http",
},
})
await client.admin.aliasChain({
chain: "sV6o671RtkGBcno1FiaDbVcFv2sG5aVXMZYzKdP4VQAWmJQnM",
alias: "myBlockchainAlias"
})
Returns the aliases of the chain.
The aliases of the chain. GetChainAliasesReturnType
import { createAvalancheClient} from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
const client = createAvalancheClient({
chain: avalanche,
transport: {
type: "http",
},
})
const aliases = await client.admin.getChainAliases({
chain: "sV6o671RtkGBcno1FiaDbVcFv2sG5aVXMZYzKdP4VQAWmJQnM"
})
Returns log and display levels of loggers.
The log and display levels of loggers. GetLoggerLevelReturnType
Dynamically loads any virtual machines installed on the node as plugins.
The virtual machines installed on the node. LoadVMsReturnType
Writes a profile of mutex statistics to lock.profile
.
Promise that resolves when the profile is written
Writes a memory profile of the node to mem.profile
.
Promise that resolves when the profile is written
Sets log and display levels of loggers.
Promise that resolves when the logger levels are set
import { createAvalancheClient} from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
const client = createAvalancheClient({
chain: avalanche,
transport: {
type: "http",
},
})
await client.admin.setLoggerLevel({
loggerName: "C",
logLevel: "DEBUG",
displayLevel: "INFO"
})
Start profiling the CPU utilization of the node.
To stop, call stopCPUProfiler
. On stop, writes the profile to cpu.profile
.
Promise that resolves when the profiler is started
Stop the CPU profile that was previously started.
Promise that resolves when the profiler is stopped
Assign an API endpoint an alias, a different endpoint for the API. The original endpoint will still work. This change only affects this node.