Getting Started

Getting Started with Sender Wallet

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

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 here.

Integration Examples

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!');
}

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

Integration Examples

Last updated