Methods

This page contains all the available methods in this SDK

List of Methods

Method Name
Description

getCounterFactualAddress()

Gets the address of the Byzanlink wallet created.

getNativeBalance()

Returns the native token amount of the Byzanlink wallet.

addUserOpsToBatch(tx: UserOpsRequest)

Adds a UserOp to the batch before sending.

clearUserOpsFromBatch()

Clears the batch.

estimate()

Returns the estimated amount of gas a transaction will cost.

send(userOp: UserOperationStruct)

Sends a struct of signed UserOps to the bundler.

getUserOpReceipt(userOpHash: string)

Returns the receipt of a UserOp processed by the bundler.

Interfaces

UserOpsRequest

Name
Type
Required

to

string

required

data

string

optional

value

BigNumber /Bytes / bigint / string /number

optional

UserOperationStruct

Name
Type
Required

sender

string

required

nonce

string

required

initCode

string

required

callData

string

required

callGasLimit

string

required

verificationGasLimit

string

required

preVerificationGas

string

required

maxFeePerGas

string

required

maxPriorityFeePerGas

string

required

paymasterAndData

string

required

signature

string

required

Last updated