Preparing search index...
The search index is not available
@hop-protocol/sdk
@hop-protocol/sdk
FallbackProvider
Class FallbackProvider
Hierarchy
FallbackProvider
Implements
Provider
Index
Constructors
constructor
Properties
_is
Provider
_providers
_providers
Fn
active
Index
Accessors
connection
providers
Methods
add
Listener
call
detect
Network
emit
estimate
Gas
get
Active
Provider
get
Avatar
get
Balance
get
Block
get
Block
Number
get
Block
With
Transactions
get
Code
get
Fee
Data
get
Gas
Price
get
Logs
get
Network
get
Resolver
get
Storage
At
get
Transaction
get
Transaction
Count
get
Transaction
Receipt
listener
Count
listeners
lookup
Address
off
on
once
remove
All
Listeners
remove
Listener
resolve
Name
send
Transaction
try
Provider
wait
For
Transaction
from
Urls
Constructors
constructor
new
Fallback
Provider
(
providers
)
:
FallbackProvider
Parameters
providers
:
any
[]
Returns
FallbackProvider
Properties
_is
Provider
_is
Provider
:
boolean
= true
Private
_providers
_providers
:
Provider
[]
= []
Private
_providers
Fn
_providers
Fn
:
any
[]
= []
Private
active
Index
active
Index
:
number
= 0
Accessors
connection
get
connection
(
)
:
any
Returns
any
providers
get
providers
(
)
:
any
[]
Returns
any
[]
Methods
add
Listener
add
Listener
(
eventName
,
listener
)
:
any
Parameters
eventName
:
string
listener
:
any
Returns
any
call
call
(
transaction
,
blockTag
?
)
:
Promise
<
string
>
Parameters
transaction
:
Deferrable
<
TransactionRequest
>
Optional
blockTag
:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
string
>
detect
Network
detect
Network
(
)
:
Promise
<
Network
>
Returns
Promise
<
Network
>
emit
emit
(
eventName
,
...
args
)
:
boolean
Parameters
eventName
:
string
Rest
...
args
:
any
[]
Returns
boolean
estimate
Gas
estimate
Gas
(
transaction
)
:
Promise
<
BigNumber
>
Parameters
transaction
:
Deferrable
<
TransactionRequest
>
Returns
Promise
<
BigNumber
>
Private
get
Active
Provider
get
Active
Provider
(
)
:
Provider
Returns
Provider
get
Avatar
get
Avatar
(
address
)
:
Promise
<
string
>
Parameters
address
:
string
Returns
Promise
<
string
>
get
Balance
get
Balance
(
addressOrName
,
blockTag
?
)
:
Promise
<
BigNumber
>
Parameters
addressOrName
:
string
|
Promise
<
string
>
Optional
blockTag
:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
BigNumber
>
get
Block
get
Block
(
blockHashOrBlockTag
)
:
Promise
<
Block
>
Parameters
blockHashOrBlockTag
:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
Block
>
get
Block
Number
get
Block
Number
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Block
With
Transactions
get
Block
With
Transactions
(
blockHashOrBlockTag
)
:
Promise
<
BlockWithTransactions
>
Parameters
blockHashOrBlockTag
:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
BlockWithTransactions
>
get
Code
get
Code
(
addressOrName
,
blockTag
?
)
:
Promise
<
string
>
Parameters
addressOrName
:
string
|
Promise
<
string
>
Optional
blockTag
:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
string
>
get
Fee
Data
get
Fee
Data
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
get
Gas
Price
get
Gas
Price
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
get
Logs
get
Logs
(
filter
)
:
Promise
<
Log
[]
>
Parameters
filter
:
Filter
|
FilterByBlockHash
Returns
Promise
<
Log
[]
>
get
Network
get
Network
(
)
:
Promise
<
Network
>
Returns
Promise
<
Network
>
get
Resolver
get
Resolver
(
address
)
:
Promise
<
string
>
Parameters
address
:
string
Returns
Promise
<
string
>
get
Storage
At
get
Storage
At
(
addressOrName
,
position
,
blockTag
?
)
:
Promise
<
string
>
Parameters
addressOrName
:
string
|
Promise
<
string
>
position
:
BigNumberish
|
Promise
<
BigNumberish
>
Optional
blockTag
:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
string
>
get
Transaction
get
Transaction
(
transactionHash
)
:
Promise
<
TransactionResponse
>
Parameters
transactionHash
:
string
Returns
Promise
<
TransactionResponse
>
get
Transaction
Count
get
Transaction
Count
(
addressOrName
,
blockTag
?
)
:
Promise
<
number
>
Parameters
addressOrName
:
string
|
Promise
<
string
>
Optional
blockTag
:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
number
>
get
Transaction
Receipt
get
Transaction
Receipt
(
transactionHash
)
:
Promise
<
TransactionReceipt
>
Parameters
transactionHash
:
string
Returns
Promise
<
TransactionReceipt
>
listener
Count
listener
Count
(
eventName
)
:
number
Parameters
eventName
:
string
Returns
number
listeners
listeners
(
eventName
)
:
any
[]
Parameters
eventName
:
string
Returns
any
[]
lookup
Address
lookup
Address
(
address
)
:
Promise
<
string
>
Parameters
address
:
string
|
Promise
<
string
>
Returns
Promise
<
string
>
off
off
(
eventName
,
listener
)
:
any
Parameters
eventName
:
string
listener
:
any
Returns
any
on
on
(
eventName
,
listener
)
:
any
Parameters
eventName
:
string
listener
:
any
Returns
any
once
once
(
eventName
,
listener
)
:
any
Parameters
eventName
:
string
listener
:
any
Returns
any
remove
All
Listeners
remove
All
Listeners
(
eventName
)
:
any
Parameters
eventName
:
string
Returns
any
remove
Listener
remove
Listener
(
eventName
,
listener
)
:
any
Parameters
eventName
:
string
listener
:
any
Returns
any
resolve
Name
resolve
Name
(
name
)
:
Promise
<
string
>
Parameters
name
:
string
|
Promise
<
string
>
Returns
Promise
<
string
>
send
Transaction
send
Transaction
(
signedTransaction
)
:
Promise
<
TransactionResponse
>
Parameters
signedTransaction
:
string
|
Promise
<
string
>
Returns
Promise
<
TransactionResponse
>
try
Provider
try
Provider
(
fn
)
:
Promise
<
any
>
Parameters
fn
:
any
Returns
Promise
<
any
>
wait
For
Transaction
wait
For
Transaction
(
transactionHash
,
confirmations
?
,
timeout
?
)
:
Promise
<
TransactionReceipt
>
Parameters
transactionHash
:
string
Optional
confirmations
:
number
Optional
timeout
:
number
Returns
Promise
<
TransactionReceipt
>
Static
from
Urls
from
Urls
(
urls
)
:
FallbackProvider
Parameters
urls
:
string
[]
Returns
FallbackProvider
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_is
Provider
_providers
_providers
Fn
active
Index
connection
providers
add
Listener
call
detect
Network
emit
estimate
Gas
get
Active
Provider
get
Avatar
get
Balance
get
Block
get
Block
Number
get
Block
With
Transactions
get
Code
get
Fee
Data
get
Gas
Price
get
Logs
get
Network
get
Resolver
get
Storage
At
get
Transaction
get
Transaction
Count
get
Transaction
Receipt
listener
Count
listeners
lookup
Address
off
on
once
remove
All
Listeners
remove
Listener
resolve
Name
send
Transaction
try
Provider
wait
For
Transaction
from
Urls
@hop-protocol/sdk
WithdrawalProof
eventTopics
utils
CanonicalToken
ChainId
ChainSlug
HToken
NetworkSlug
Slug
WrappedToken
AMM
Base
Chain
FallbackProvider
Hop
HopBridge
Multicall
PriceFeed
RelayerFee
RetryProvider
Route
Loading...
Generated using
TypeDoc