Description

Represents a Coinbase wallet.

Example

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

const getCoinbaseWalletAddress = async () => {
// Connect to the Coinbase wallet in the browser using Web3.js, using the CoinbaseProvider interface to limit bundle size.
const provider = await createProvider(CoinbaseProvider)
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: Web3Provider
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