Argent
  • Build with Argent
  • Argent Wallets
    • Argent X
      • Adding Custom RPCs
      • Network Switcher for Dapps
      • Verify signature of undeployed account
      • WalletAccount
    • Argent Mobile
      • Argent Mobile for your web app
      • Argent Mobile for your react native app
    • Web Wallet
      • Set up guide
      • Web Wallet UX
      • API reference
      • Key Management
    • Argent Multisig
      • How multisig works
      • Create a multisig
        • With Argent signer
        • With Ledger signer
      • Join a multisig
        • With Argent signer
        • With Ledger signer
      • Replace a multisig signer
      • Airgap
    • Telegram wallet (DEPRECATED)
  • TOOLS
    • 🎨STARKNETKIT
    • ✨Invisible SDK
      • Implementation
      • Other useful endpoints
      • Types and interfaces
      • Gas abstraction
  • Example Dapps
    • StarknetKit + Session keys Demo dapp
  • AA Use Cases
    • Session Keys
      • Implement session keys
      • Session keys with outside execution
      • Demo App
      • FAQ
      • Types
    • Paymasters
    • Verifying signatures and cosigners
      • Identifying a smart account onchain
    • Multicalls
    • Outside Execution
    • Deploy accounts on behalf of users
  • Optimize your Dapp
    • Dappland
    • Known dapps
    • Transaction reviews
    • Brand your token
  • Other Products
    • Argent Card
    • Spoks
    • Perkz
    • Argent Vault on Ethereum L1
  • SUPPORT & RESSOURCES
    • Contracts and audits
    • Get in touch
Powered by GitBook
On this page

Was this helpful?

  1. Argent Wallets
  2. Web Wallet

API reference

PreviousWeb Wallet UXNextKey Management

Last updated 9 months ago

Was this helpful?

The starknetkit package exposes two major methods connect and disconnect. (You could reference the Guides section to see how they are used).

The connect method further exposes other methods you could find useful in your dapps:

  1. isConnected - This method available after an attempt to establish a connection, can be used to confirm if an account was truly connected.

isConnected: true
  1. selectedAddress - This method can be called to get the wallet address of a connected account.

selectedAddress?: string
  1. account - This method gives us access to the account object. It uses and extends the starknet.js Provider.

account?: AccountInterface
  1. chainId - This method returns the connected network chain ID.

chainId?: string
  1. provider - This method gives us access to the Provider object when called. It uses enabling you to interact with the network without signing transactions or messages.

provider: ProviderInterface
  1. enable - This method can be used to create a connection to a specific get-starknet version.

enable: (options?: { starknetVersion?: 'v3' | 'v4' }) => Promise<string[]>
starknet.js AccountInterface
starknet.js Provider Interface