EthersAdapter
@bosonprotocol/ethers-sdk / Exports / EthersAdapter
Class: EthersAdapter
Web3LibAdapter
implementation targeting ethers
.
Implements
Web3LibAdapter
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new EthersAdapter(provider
, signer?
)
Parameters
Name | Type |
---|---|
provider | Provider |
signer? | Signer |
Defined in
Properties
_provider
• Private
_provider: Provider
Defined in
_signer
• Private
_signer: Signer
Defined in
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
>
Implementation of
Web3LibAdapter.call
Defined in
getBalance
▸ getBalance(addressOrName
, blockNumber?
): Promise
<BigNumberish
>
Parameters
Name | Type |
---|---|
addressOrName | string |
blockNumber? | string | number |
Returns
Promise
<BigNumberish
>
Implementation of
Web3LibAdapter.getBalance
Defined in
getChainId
▸ getChainId(): Promise
<number
>
Returns
Promise
<number
>
Implementation of
Web3LibAdapter.getChainId
Defined in
getSignerAddress
▸ getSignerAddress(): Promise
<string
>
Returns
Promise
<string
>
Implementation of
Web3LibAdapter.getSignerAddress
Defined in
getTransactionReceipt
▸ getTransactionReceipt(txHash
): Promise
<TransactionReceipt
>
Parameters
Name | Type |
---|---|
txHash | any |
Returns
Promise
<TransactionReceipt
>
Defined in
send
▸ send(rpcMethod
, payload
): Promise
<string
>
Parameters
Name | Type |
---|---|
rpcMethod | string |
payload | unknown [] |
Returns
Promise
<string
>
Implementation of
Web3LibAdapter.send
Defined in
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
>
Implementation of
Web3LibAdapter.sendTransaction