How to connect and interact with the new Bitcoin wallet in metamask

There is not documentation for how to integrate with the new Bitcoin accounts in the Metamask wallet.

I’ve tried to use the wallet api, but the documentation for bitcoin is limited, and the multichain APi doesn’t document how to use it with btc.

Resources already consulted.

Yes, please escalate this to the product team.

HI @tomide.LI.FI You may need to use Embedded Wallets Web SDK instead. Please refer to this page: Integrate Embedded Wallets with the Bitcoin Blockchain | MetaMask developer documentation

Correct me if I’m wrong but an embedded wallet solution is not quite what I’m looking for, this requires use to create an account with web3Auth. Every new user creates a new wallet that we manage via web3Auth.

I want to be able to connect with the actual bitcoin wallet inside an existing Metamask wallet.
From the source code, I see it uses the bitcoin-snap internally to provide this functionality, but when I try to connect via the snaps, I get an error saying that the bitcoin wallet doesn’t have endowment:rpc permission

I have tried to use the Multichain API, I was able to connect, but I can’t request call signPSBT method.

@holyyy Can you point me to a guide or example that does this?

MetaMask SDK is not Embedded Wallets (Web3Auth) SDK. They are different things. There should be no need to have a Web3Auth account for using MetaMask SDK.

As mentioned on this page about the Wallet API, for non-EVM networks, MetaMask just supports Solana and Starknet. So Bitcoin is not supported. You may explore Snaps like this one and see if they can help you.

CC @shahbaz to check this out

@shahbaz can you please check this out?