Sender Wallet Developer Documentation
  • Guide
    • Introduction
    • Getting Started
    • Sign in Applications
      • Sign in Applications in Near
      • Sign in Applications in Ethereum
    • Access Accounts
      • Access Accounts in Near
      • Access Account in Ethereum
    • Send Transactions
      • Send Transactions in Near
      • Send Transactions in Ethereum
  • API Reference
    • Near
      • NEAR Provider API
      • Deprecated APIs
    • Ethereum
      • Sign Data
      • Ethereum Provider API
    • Ton
      • Mobile Dapp Provider
  • Best Practices
    • Define App's Icon
Powered by GitBook
On this page
  • Sender Detection
  • For version 1.11.7 and below
  • For version 2.0.0 and above
  1. Guide

Getting Started

Getting Started with Sender Wallet

PreviousIntroductionNextSign in Applications

Last updated 2 years ago

To build with Sender, install Sender in your preferred browser.

Once Sender is installed and running, you will find that newly opened browser tabs have a window.near or window.sender object available in the developer console. Your website now can interact with Sender via the object.

Sender Detection

For version 1.11.7 and below

To verify if the browser has installed Sender Wallet for Near chain, you can copy and paste the code snippet below in the developer console of your web browser:

// For near chain
if (typeof window.near !== 'undefined' && window.near.isSender) {
  console.log('Sender is installed!');
}

You can review the full API for the window.near object .

Integration Examples

  • Example:

  • Guest Book: coming soon

For version 2.0.0 and above

To verify if the browser has installed Sender Wallet for above version 2.0.0, you can copy and paste the code snippet below in the developer console of your web browser:

// For version 2.0.0 and above, you can use window.sender.near to interact with near chain,
// but you can still use window.near api to connect near chain.
if (typeof window.sender !== 'undefined' && window.sender.near) {
    console.log('Sender is installed!');
}

// For ethereum chain
if (typeof window.sender !== 'undefined' && window.sender.ethereum) {
    console.log('Sender is installed!');
}

Integration Examples

You can review the full API for the window.sender.ethereum object .

Example:

Download here
here
https://github.com/SenderWallet/sender-wallet-dapp-example
here
https://metamask.github.io/test-dapp/