Skip to Content
PasskeysRecipesSats Connect

Usage with Sats Connect

Sats Connect V2

Coming soon!

Sats Connect V1

Sats Connect V1 is extremely easy to use with the embedded wallet. Just pass the Bitcoin provider via the getProvider option to any of the Sats Connect’s methods.

Here’s an example with the getAddress method:

const provider = wallet.providers.bitcoin;
 
const getAddressOptions = {
  payload: {
    getProvider: () => provider,
    purposes: ['ordinals', 'payment'],
    message: 'Address for receiving Ordinals and payments',
    network: { type: 'Mainnet' },
  },
  onFinish: (response) => console.log(response),
  onCancel: () => alert('Request canceled'),
};
 
await getAddress(getAddressOptions);
Last updated on

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right