Description

Represents a Solflare wallet.

Example

import { createProvider, SolflareProvider } from '@rarimo/provider'

const getSolflareWalletAddress = async () => {
// Connect to the Solflare wallet in the browser using Web3.js, using the SolflareProvider interface to limit bundle size.
const provider = await createProvider(SolflareProvider)
await provider.connect()

// Get the address of the wallet
console.log(provider.address)
}

Hierarchy

Implements

Constructors

Properties

address?: string
chainId?: ChainId
emitter: EventEmitter<ProviderEventMap> = ...
provider: SolanaProvider
rawProvider: RawProvider

Accessors

  • get defaultEventPayload(): {
        address: undefined | string;
        chainId: undefined | ChainId;
        isConnected: boolean;
    }
  • Returns {
        address: undefined | string;
        chainId: undefined | ChainId;
        isConnected: boolean;
    }

    • address: undefined | string
    • chainId: undefined | ChainId
    • isConnected: boolean

Methods

Generated using TypeDoc