Web3LibAdapter
@bosonprotocol/common / Exports / Web3LibAdapter
Interface: Web3LibAdapter
Table of contents
Methods
Methods
call
▸ call(transactionRequest
): Promise
<string
>
Parameters
Name | Type |
---|---|
transactionRequest | Partial <{ 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
Name | Type |
---|---|
addressOrName | string |
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
Name | Type |
---|---|
txHash | string |
Returns
Promise
<TransactionReceipt
>
Defined in
src/types/web3-lib-adapter.ts:44
send
▸ send(rpcMethod
, payload
): Promise
<string
>
Parameters
Name | Type |
---|---|
rpcMethod | string |
payload | unknown [] |
Returns
Promise
<string
>
Defined in
src/types/web3-lib-adapter.ts:43
sendTransaction
▸ sendTransaction(transactionRequest
): Promise
<TransactionResponse
>
Parameters
Name | Type |
---|---|
transactionRequest | Partial <{ data : string ; from : string ; gasLimit : BigNumberish ; gasPrice : BigNumberish ; nonce : number ; to : string ; value : BigNumberish }> |
Returns
Promise
<TransactionResponse
>