Class HttpRpcClient

Hierarchy

  • HttpRpcClient

Index

Constructors

constructor

  • new HttpRpcClient(bundlerUrl: string, entryPointAddress: string, chainId: number): HttpRpcClient
  • Parameters

    • bundlerUrl: string
    • entryPointAddress: string
    • chainId: number

    Returns HttpRpcClient

Properties

Readonly bundlerUrl

bundlerUrl: string

Readonly chainId

chainId: number

Readonly entryPointAddress

entryPointAddress: string

initializing

initializing: Promise<void>

Methods

getBundlerVersion

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

getSkandhaGasPrice

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

getUserOpsReceipt

  • getUserOpsReceipt(uoHash: string): Promise<any>
  • Parameters

    • uoHash: string

    Returns Promise<any>

getVerificationGasInfo

sendAggregatedOpsToBundler

sendUserOpToBundler

  • send a UserOperation to the bundler

    Parameters

    Returns Promise<string>

    userOpHash the id of this operation, for getUserOperationTransaction

validateChainId

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