Skip to content

getEVMAddress ​

getEVMAddress(account, network): string

Derives the EVM (Ethereum) address from a Bitcoin account and network.

Usage ​

ts
import { getEVMAddress } from '@midl/executor';

const evmAddress = getEVMAddress(account, network);

Parameters ​

NameTypeDescription
accountAccountThe Bitcoin account object.
networkBitcoinNetworkThe Bitcoin network.

Returns ​

Address — The corresponding EVM address.

Released under the MIT License