Fewcha Wallet Dev Docs
  • Introduction
  • Get Started
    • Connect
    • Get data
    • Sign and Submit Transaction
  • Response Format and Types
  • Serializer/Deserializer
  • Status codes
  • TypeScript Wrapper
  • React Connect Button
  • Reference
    • Wallet Methods
      • Connection
      • Account Data
      • Transactions
        • Aptos transaction
        • SUI transaction
    • Token (NFT) Methods (Aptos)
    • SDK Get Data Methods
      • Account
      • Transaction
      • Miscellaneous
  • Github
  • Chrome Extension
Powered by GitBook
On this page
  • Connect to Fewcha Wallet
  • Disconnecting

Was this helpful?

  1. Get Started

Connect

PreviousGet StartedNextGet data

Last updated 2 years ago

Was this helpful?

Connect to Fewcha Wallet

To connect to Fewcha Wallet, you simply call this method window.fewcha.connect()

await window.fewcha.connect();

connect(): the method will return a Promise that resolves when the user accepts the connection request to the DApp website. The response will look like

{
    "method": "connect",
    "status": 200,
    "data": {
        "address": "0x...",
        "publicKey": "0x..."
    }
}

To get all methods of Wallet, learn more at

To use with TypeScript support, please learn more at TypeScript Wrapper, and use with React Select Wallet Popup, learn more at React Connect Button

Disconnecting

await window.fewcha.disconnect();

and check current status of connect with

Wallet methods
isConnected