Class PrimeSdk

Prime-Sdk

Hierarchy

  • PrimeSdk

Index

Constructors

constructor

Accessors

state

state$

  • get state$(): BehaviorSubject<State>
  • Returns BehaviorSubject<State>

supportedNetworks

  • get supportedNetworks(): Network[]

Methods

addUserOpsToBatch

clearUserOpsFromBatch

  • clearUserOpsFromBatch(): Promise<void>
  • Returns Promise<void>

destroy

  • destroy(): void
  • destroys

    Returns void

estimate

getAccountContract

getCounterFactualAddress

  • getCounterFactualAddress(): Promise<string>
  • Returns Promise<string>

getFiatOnRamp

  • Parameters

    Returns Promise<string>

getGasFee

  • getGasFee(): Promise<Gas>
  • Returns Promise<Gas>

getNativeBalance

  • getNativeBalance(): Promise<string>
  • Returns Promise<string>

getUserOpHash

getUserOpReceipt

  • getUserOpReceipt(userOpHash: string): Promise<any>
  • Parameters

    • userOpHash: string

    Returns Promise<any>

send

signMessage

  • signs message

    Parameters

    Returns Promise<string>

    Promise

signTypedData

  • signTypedData(DataFields: TypedDataField[], message: any): Promise<string>
  • Parameters

    • DataFields: TypedDataField[]
    • message: any

    Returns Promise<string>

totalGasEstimated