Description

Represents a Solflare wallet.

Example

import { createProvider } from '@rarimo/provider'
import { SolflareProvider } from '@rarimo/providers-solana

const getSolflareWalletAddress = async () => {
// Connect to the Solflare wallet in the browser, 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

  • BaseSolanaProvider
    • SolflareProvider

Implements

  • ProviderProxy

Constructors

Properties

#address?: string
#chainId?: ChainId
#private: any
#provider: SolanaProvider

Accessors

  • get address(): undefined | string
  • Returns undefined | string

  • get chainId(): undefined | ChainId
  • Returns undefined | ChainId

  • get emitter(): EventEmitter<ProviderEventMap>
  • Returns EventEmitter<ProviderEventMap>

Methods

  • Returns void

  • Parameters

    • event: ProviderEventBusEvents
    • payload: ProviderEventPayload

    Returns void

  • Parameters

    • chain: Chain
    • address: string

    Returns string

  • Parameters

    • txResponse: TransactionResponse

    Returns string

  • Parameters

    • chain: Chain
    • txHash: string

    Returns string

  • Parameters

    • cb: ProviderEventCallback

    Returns void

  • Parameters

    • cb: ProviderEventCallback

    Returns void

  • Parameters

    • cb: ProviderEventCallback

    Returns void

  • Parameters

    • cb: ProviderEventCallback

    Returns void

  • Parameters

    • cb: ProviderEventCallback

    Returns void

  • Parameters

    • txRequestBody: TransactionRequestBody

    Returns Promise<TransactionResponse>

  • Parameters

    • chainId: ChainId

    Returns Promise<void>

Generated using TypeDoc