Main class for interacting with a wallet on EVM blockchains.

You can perform transactions, sign messages, and transfer tokens with the provided high level APIs, or by calling await getSigner() to obtain an ethersJS signer instance.

Type Parameters

Hierarchy

  • BaseWallet<B>
    • EVMAAWallet

Properties

chain: B

Returns

The blockchain of the wallet

Methods

  • Returns string

    The address of the wallet

  • Returns Promise<any>

    An ethersJS signer instance

  • Available in V2

    Parameters

    • page: number

      1-indexed

    • perPage: number

      Results per page

    • Optional tokenType: TokenType

      Only return this kind of tokens

    Returns Promise<Token[]>

  • Parameters

    • transaction: ChainMap[B]["Transaction"]

    Returns Promise<string>

    The transactionId In v1.5 we will add success ands error callbakcs

  • Allow a separate custodian to pause/unpause all activity of the wallet. To disable, pass in a custodian of type NONE.

    Parameters

    • Optional custodian: Custodian

      if not set, uses "CROSSMINT"

    Returns Promise<string>

  • Allow a separate custodian to transfer tokens of the given type without user approval. To disable, pass in a custodian of type NONE. Only NFTs for v1

    Parameters

    • tokenType: TokenType
    • custodian: Custodian

      if not set, uses "CROSSMINT". If external, it errors bc its not supported

    Returns Promise<string>

  • Parameters

    • message: string

      The message to sign

    Returns Promise<string>

    The signature

  • Parameters

    • data: any

      A JSON object representing the data to sign. It should follow the EIP-712 format.

    Returns Promise<string>

    A signature string

  • Parameters

    • toAddress: string
    • token: Token
    • Optional quantity: number

    Returns Promise<string>

    The transactionId In v1.5 we will add success ands error callbakcs v1.5

  • Available in V2

    Parameters

    • toAddress: string
    • tokens: Map<Token, number>

    Returns Promise<string>

Generated using TypeDoc