useEmbeddedBitcoinWallet
hook from the @privy-io/expo
package to get the user’s embedded Bitcoin wallets:wallets
array is an object with the following fields:create
method returned by useEmbeddedBitcoinWallet
also returns this same type of object.address
field of the wallet
object:getProvider
method on the wallet
interface returned by useEmbeddedBitcoinWallet
:signTransaction
method on the wallet’s provider.
This method will return an object with a signedTransaction
field, containing a hex-encoded string for the signed transaction.sign
method on the wallet’s provider.
This method will return a signature over the provided hash
, encoded as a base64 string.