How to get bitcoin address from mnemonic?

Viewed 33

Now I am developing a crypto wallet using React Native. I already generated ETH address and mnemonic.

import "react-native-get-random-values"
import "@ethersproject/shims"
import { ethers } from "ethers";


export const wallet = ethers.Wallet.createRandom();
const mnemonic = wallet.mnemonic.phrase;
const ethAddress = wallet.address;
const btcAddress = ???

Now I want to get BTC address from mnemonic. There are several ways to get BTC address from mnemonic, but they are all not working in React Native. Does anyone know how to solve this?

0 Answers
Related