Class ERC4337EthersSigner

Hierarchy

  • Signer
    • ERC4337EthersSigner

Index

Constructors

constructor

Properties

Readonly _isSigner

_isSigner: boolean

Optional address

address: string

Readonly config

config: ClientConfig

Readonly erc4337provider

erc4337provider: ERC4337EthersProvider

Readonly httpRpcClient

httpRpcClient: HttpRpcClient

Readonly originalSigner

originalSigner: Signer

Optional Readonly provider

provider: Provider

Readonly smartAccountAPI

smartAccountAPI: BaseAccountAPI

Methods

_checkProvider

  • _checkProvider(operation?: string): void

call

  • call(transaction: Deferrable<TransactionRequest>, blockTag?: BlockTag): Promise<string>
  • Parameters

    • transaction: Deferrable<TransactionRequest>
    • Optional blockTag: BlockTag

    Returns Promise<string>

checkTransaction

  • checkTransaction(transaction: Deferrable<TransactionRequest>): Deferrable<TransactionRequest>

connect

  • connect(provider: Provider): Signer
  • Parameters

    • provider: Provider

    Returns Signer

estimateGas

  • estimateGas(transaction: Deferrable<TransactionRequest>): Promise<BigNumber>

getAddress

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

getBalance

  • getBalance(blockTag?: BlockTag): Promise<BigNumber>

getChainId

  • getChainId(): Promise<number>

getFeeData

  • getFeeData(): Promise<FeeData>

getGasPrice

  • getGasPrice(): Promise<BigNumber>

getTransactionCount

  • getTransactionCount(blockTag?: BlockTag): Promise<number>

populateTransaction

  • populateTransaction(transaction: Deferrable<TransactionRequest>): Promise<TransactionRequest>

resolveName

  • resolveName(name: string): Promise<string>

sendTransaction

  • sendTransaction(transaction: Deferrable<TransactionRequest>): Promise<TransactionResponse>
  • Parameters

    • transaction: Deferrable<TransactionRequest>

    Returns Promise<TransactionResponse>

signMessage

  • signMessage(message: Bytes | string): Promise<string>
  • Parameters

    • message: Bytes | string

    Returns Promise<string>

signTransaction

  • signTransaction(transaction: Deferrable<TransactionRequest>): Promise<string>
  • Parameters

    • transaction: Deferrable<TransactionRequest>

    Returns Promise<string>

signUserOperation

unwrapError

  • unwrapError(errorIn: any): Error
  • Parameters

    • errorIn: any

    Returns Error

verifyAllNecessaryFields

  • verifyAllNecessaryFields(transactionRequest: TransactionRequest): Promise<void>
  • Parameters

    • transactionRequest: TransactionRequest

    Returns Promise<void>

Static isSigner

  • isSigner(value: any): value is Signer