# Getting Started

To develop for Sensilet, install Sensilet on your development machine. Download here (opens new window).

A quick note...

This guide assumes intermediate knowledge of HTML, CSS, and JavaScript.

Once Sensilet is installed and running, you should find that new browser tabs have a window.sensilet object available in the developer console. This is how your website will interact with Sensilet.

# Web3 Browser Detection

To verify if the browser is running Sensilet, copy and paste the code snippet below in the developer console of your web browser:

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

You can review the full API for the window.sensilet object here.

# Connecting to Sensilet

"Connecting" or "logging in" to Sensilet effectively means "to access the user's BitcoinSV account(s)".

You should only initiate a connection request in response to direct user action, such as clicking a button. You should always disable the "connect" button while the connection request is pending. You should never initiate a connection request on page load.

We recommend that you provide a button to allow the user to connect Sensilet to your dapp. Clicking this button should call the following method:

sensilet.requestAccount()

Example: