Skip to main content

Web3LibAdapter

@bosonprotocol/common / Exports / Web3LibAdapter

Interface: Web3LibAdapter

Table of contents

Methods

Methods

call

call(transactionRequest): Promise<string>

Parameters

NameType
transactionRequestPartial<{ data: string ; from: string ; gasLimit: BigNumberish ; gasPrice: BigNumberish ; nonce: number ; to: string ; value: BigNumberish }>

Returns

Promise<string>

Defined in

src/types/web3-lib-adapter.ts:42


getBalance

getBalance(addressOrName, blockNumber?): Promise<BigNumberish>

Parameters

NameType
addressOrNamestring
blockNumber?string | number

Returns

Promise<BigNumberish>

Defined in

src/types/web3-lib-adapter.ts:35


getChainId

getChainId(): Promise<number>

Returns

Promise<number>

Defined in

src/types/web3-lib-adapter.ts:34


getSignerAddress

getSignerAddress(): Promise<string>

Returns

Promise<string>

Defined in

src/types/web3-lib-adapter.ts:33


getTransactionReceipt

getTransactionReceipt(txHash): Promise<TransactionReceipt>

Parameters

NameType
txHashstring

Returns

Promise<TransactionReceipt>

Defined in

src/types/web3-lib-adapter.ts:44


send

send(rpcMethod, payload): Promise<string>

Parameters

NameType
rpcMethodstring
payloadunknown[]

Returns

Promise<string>

Defined in

src/types/web3-lib-adapter.ts:43


sendTransaction

sendTransaction(transactionRequest): Promise<TransactionResponse>

Parameters

NameType
transactionRequestPartial<{ data: string ; from: string ; gasLimit: BigNumberish ; gasPrice: BigNumberish ; nonce: number ; to: string ; value: BigNumberish }>

Returns

Promise<TransactionResponse>

Defined in

src/types/web3-lib-adapter.ts:39