Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RawWallet

Raw wallet is for server side

Hierarchy

  • RawWallet

Implements

Index

Constructors

constructor

  • new RawWallet(secretKey: string): RawWallet

Properties

secretKey

secretKey: string

walletType

walletType: string

Any string that you can recognize your wallet type. For example: PrivateKey, Phantom, Sollet, ...

Methods

disconnect

  • disconnect(): Promise<void>

getAddress

  • getAddress(): Promise<string>

getProvider

  • getProvider(): Promise<ExpanedProvider>
  • Wallet providers are varied from the original wallet (Coin98, Slope, ...). Seems there is no single common standard, thus we only require disconnect method for the returned provider.

    Returns Promise<ExpanedProvider>

signAllTransactions

  • signAllTransactions(transactions: Transaction[]): Promise<Transaction[]>

signMessage

  • signMessage(message: string): Promise<{ address: string; message: string; signature: string }>
  • Sign a message and return a signed messaged

    Parameters

    • message: string

    Returns Promise<{ address: string; message: string; signature: string }>

signTransaction

  • signTransaction(transaction: Transaction): Promise<Transaction>

verifySignature

  • verifySignature(signature: string, message: string, address?: string): Promise<boolean>

Generated using TypeDoc