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
  1. Guide
  2. Sign in Applications

Sign in Applications in Ethereum

Once you have Sender installed, you'll be able to sign in and interact with the applications in Ethereum chain.

Sign In

To interact with smart contracts, users need to sign in the application. Once sign in, the application will be authorized to call the change methods defined in the scope.

// Sender will show a popup dialog to ask user to authorize your dApp
// This method will give you an accounts array which is from Sender wallet extension. 
// window.sender.ethereum.isConnected will be true.
await window.sender.ethereum.requestAccounts(); 

Disconnect

window.sender.ethereum._handleDisconnect(); // true

PreviousSign in Applications in NearNextAccess Accounts

Last updated 2 years ago