🤝
Help
  • GETTING STARTED
    • About Oyl
    • Sharing Feedback and Bug Reports
    • Partnering with Oyl
  • OYL WALLET
    • Create a New Wallet
    • Import an Existing Wallet
    • Back Up Seed Phrase
    • Spend and Change Addresses
    • Deposit/Receive Assets
    • Balances and UTXOs
    • Wallet Accounts
    • Send Assets
    • Buy and Trade Assets
  • FAQ / TROUBLESHOOTING
  • OYL CONNECT
    • Getting started
    • Provider API
    • Partner Wallet Adapters
  • SAFETY AND SECURITY
    • Protecting Against Scams
    • Seed Phrase Security
  • BTC AND CRYPTO
    • Bitcoin Addresses
    • UTXOs
    • BRC-20 Tokens
Powered by GitBook
On this page
  • Detecting the provider
  • Connecting to your wallet
  1. OYL CONNECT

Getting started

PreviousOYL CONNECTNextProvider API

Last updated 8 months ago

Detecting the provider

The Oyl Connect Provider can be accessed by every new browser tab after the extension is running.

You can verify whether your browser is running Oyl by checking for window.oyl:

if (typeof window.oyl !== 'undefined') {
  console.log('Oyl is installed!');
}

In the event it can’t be found, likely possible reasons are:

  • You are running an older version (< v1.8)

  • You are trying to access the object in the context of an old browser tab (opened before installing the extension)

Connecting to your wallet

The Oyl Connect Provider uses an authorization-based model, meaning that any method requesting account information, signing, or broadcasting will trigger the Oyl Connect Flow.

This flow is rendered as a single window popup instance.

  1. Unlock: prompts the user to unlock their wallet ⎯ wallet is locked

  2. Connect: prompts the user to approve connecting the current site origin to the wallet ⎯ wallet has not been connected in the last day

  3. Approve: prompts the user to approve the request (e.g. sign a PSBT, sign a message, etc)

This makes integrating with dApps a lot easier since there's no need to explicitly make a connection request or a call to requestAccounts. Just invoke the method you need and it will handle the rest.

Checkout the Oyl Connect Provider API methods .

here
Oyl Connect Flow