Skip to content

getEVMFromBitcoinNetwork ​

Returns the EVM chain configuration for a given Bitcoin network.

Import ​

ts
import { getEVMFromBitcoinNetwork } from "@midl/executor";

Example ​

ts
import { regtest } from "@midl/core";

const evmChain = getEVMFromBitcoinNetwork(regtest);

Parameters ​

NameTypeDescription
networkBitcoinNetworkBitcoin network.

Returns ​

Chain — The EVM chain configuration.

Errors ​

Throws if the network is not supported.

Released under the MIT License