EthConnectAdapter
@bosonprotocol/eth-connect-sdk / Exports / EthConnectAdapter
Class: EthConnectAdapter
Web3LibAdapter
implementation targeting eth-connect
in a Decentraland
environment.
Implements
Web3LibAdapter
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new EthConnectAdapter(requestManager
, externalFeatures
)
Parameters
Name | Type |
---|---|
requestManager | RequestManager |
externalFeatures | ExternalFeatures |
Defined in
Properties
_externalFeatures
• Private
_externalFeatures: ExternalFeatures
Defined in
_requestManager
• Private
_requestManager: RequestManager
Defined in
receiptData
▪ Static
Private
receiptData: Map
<string
, { from
: string
; to
: string
}>
Defined in
Methods
_wait
▸ Private
_wait(txHash
, receiptData
, confirmations?
): Promise
<TransactionReceipt
>
Parameters
Name | Type |
---|---|
txHash | string |
receiptData | Object |
receiptData.from | string |
receiptData.to | string |
confirmations? | number |
Returns
Promise
<TransactionReceipt
>
Defined in
src/eth-connect-adapter.ts:100
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
<string
>
Parameters
Name | Type |
---|---|
addressOrName | string |
blockNumber? | string | number |
Returns
Promise
<string
>
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
, receiptData?
): Promise
<TransactionReceipt
>
Parameters
Name | Type |
---|---|
txHash | any |
receiptData? | Object |
receiptData.from | string |
receiptData.to | string |
Returns
Promise
<TransactionReceipt
>
Implementation of
Web3LibAdapter.getTransactionReceipt
Defined in
src/eth-connect-adapter.ts:138
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