Search
Preparing search index...
The search index is not available
API Reference | Injective - Powering the future of decentralized finance.
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
API Reference | Injective - Powering the future of decentralized finance.
@injectivelabs/wallet-ts
internal
Provider
Class Provider
Abstract
Hierarchy
Provider
Implements
OnceBlockable
Index
Constructors
constructor
Properties
_is
Provider
Methods
add
Listener
call
emit
estimate
Gas
get
Balance
get
Block
get
Block
Number
get
Block
With
Transactions
get
Code
get
Fee
Data
get
Gas
Price
get
Logs
get
Network
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
wait
For
Transaction
is
Provider
Constructors
constructor
new
Provider
(
)
:
Provider
Returns
Provider
Properties
Readonly
_is
Provider
_is
Provider
:
boolean
Methods
add
Listener
add
Listener
(
eventName
:
EventType
, listener
:
Listener
)
:
Provider
Parameters
eventName:
EventType
listener:
Listener
Returns
Provider
Abstract
call
call
(
transaction
:
Deferrable
<
TransactionRequest
>
, blockTag
?:
BlockTag
|
Promise
<
BlockTag
>
)
:
Promise
<
string
>
Parameters
transaction:
Deferrable
<
TransactionRequest
>
Optional
blockTag:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
string
>
Abstract
emit
emit
(
eventName
:
EventType
,
...
args
:
any
[]
)
:
boolean
Parameters
eventName:
EventType
Rest
...
args:
any
[]
Returns
boolean
Abstract
estimate
Gas
estimate
Gas
(
transaction
:
Deferrable
<
TransactionRequest
>
)
:
Promise
<
BigNumber
>
Parameters
transaction:
Deferrable
<
TransactionRequest
>
Returns
Promise
<
BigNumber
>
Abstract
get
Balance
get
Balance
(
addressOrName
:
string
|
Promise
<
string
>
, blockTag
?:
BlockTag
|
Promise
<
BlockTag
>
)
:
Promise
<
BigNumber
>
Parameters
addressOrName:
string
|
Promise
<
string
>
Optional
blockTag:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
BigNumber
>
Abstract
get
Block
get
Block
(
blockHashOrBlockTag
:
BlockTag
|
Promise
<
BlockTag
>
)
:
Promise
<
Block
>
Parameters
blockHashOrBlockTag:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
Block
>
Abstract
get
Block
Number
get
Block
Number
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
Abstract
get
Block
With
Transactions
get
Block
With
Transactions
(
blockHashOrBlockTag
:
BlockTag
|
Promise
<
BlockTag
>
)
:
Promise
<
BlockWithTransactions
>
Parameters
blockHashOrBlockTag:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
BlockWithTransactions
>
Abstract
get
Code
get
Code
(
addressOrName
:
string
|
Promise
<
string
>
, blockTag
?:
BlockTag
|
Promise
<
BlockTag
>
)
:
Promise
<
string
>
Parameters
addressOrName:
string
|
Promise
<
string
>
Optional
blockTag:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
string
>
get
Fee
Data
get
Fee
Data
(
)
:
Promise
<
FeeData
>
Returns
Promise
<
FeeData
>
Abstract
get
Gas
Price
get
Gas
Price
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
Abstract
get
Logs
get
Logs
(
filter
:
Filter
)
:
Promise
<
Log
[]
>
Parameters
filter:
Filter
Returns
Promise
<
Log
[]
>
Abstract
get
Network
get
Network
(
)
:
Promise
<
Network
>
Returns
Promise
<
Network
>
Abstract
get
Storage
At
get
Storage
At
(
addressOrName
:
string
|
Promise
<
string
>
, position
:
BigNumberish
|
Promise
<
BigNumberish
>
, blockTag
?:
BlockTag
|
Promise
<
BlockTag
>
)
:
Promise
<
string
>
Parameters
addressOrName:
string
|
Promise
<
string
>
position:
BigNumberish
|
Promise
<
BigNumberish
>
Optional
blockTag:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
string
>
Abstract
get
Transaction
get
Transaction
(
transactionHash
:
string
)
:
Promise
<
TransactionResponse
>
Parameters
transactionHash:
string
Returns
Promise
<
TransactionResponse
>
Abstract
get
Transaction
Count
get
Transaction
Count
(
addressOrName
:
string
|
Promise
<
string
>
, blockTag
?:
BlockTag
|
Promise
<
BlockTag
>
)
:
Promise
<
number
>
Parameters
addressOrName:
string
|
Promise
<
string
>
Optional
blockTag:
BlockTag
|
Promise
<
BlockTag
>
Returns
Promise
<
number
>
Abstract
get
Transaction
Receipt
get
Transaction
Receipt
(
transactionHash
:
string
)
:
Promise
<
TransactionReceipt
>
Parameters
transactionHash:
string
Returns
Promise
<
TransactionReceipt
>
Abstract
listener
Count
listener
Count
(
eventName
?:
EventType
)
:
number
Parameters
Optional
eventName:
EventType
Returns
number
Abstract
listeners
listeners
(
eventName
?:
EventType
)
:
Listener
[]
Parameters
Optional
eventName:
EventType
Returns
Listener
[]
Abstract
lookup
Address
lookup
Address
(
address
:
string
|
Promise
<
string
>
)
:
Promise
<
null
|
string
>
Parameters
address:
string
|
Promise
<
string
>
Returns
Promise
<
null
|
string
>
Abstract
off
off
(
eventName
:
EventType
, listener
?:
Listener
)
:
Provider
Parameters
eventName:
EventType
Optional
listener:
Listener
Returns
Provider
Abstract
on
on
(
eventName
:
EventType
, listener
:
Listener
)
:
Provider
Parameters
eventName:
EventType
listener:
Listener
Returns
Provider
Abstract
once
once
(
eventName
:
EventType
, listener
:
Listener
)
:
Provider
Parameters
eventName:
EventType
listener:
Listener
Returns
Provider
Abstract
remove
All
Listeners
remove
All
Listeners
(
eventName
?:
EventType
)
:
Provider
Parameters
Optional
eventName:
EventType
Returns
Provider
remove
Listener
remove
Listener
(
eventName
:
EventType
, listener
:
Listener
)
:
Provider
Parameters
eventName:
EventType
listener:
Listener
Returns
Provider
Abstract
resolve
Name
resolve
Name
(
name
:
string
|
Promise
<
string
>
)
:
Promise
<
null
|
string
>
Parameters
name:
string
|
Promise
<
string
>
Returns
Promise
<
null
|
string
>
Abstract
send
Transaction
send
Transaction
(
signedTransaction
:
string
|
Promise
<
string
>
)
:
Promise
<
TransactionResponse
>
Parameters
signedTransaction:
string
|
Promise
<
string
>
Returns
Promise
<
TransactionResponse
>
Abstract
wait
For
Transaction
wait
For
Transaction
(
transactionHash
:
string
, confirmations
?:
number
, timeout
?:
number
)
:
Promise
<
TransactionReceipt
>
Parameters
transactionHash:
string
Optional
confirmations:
number
Optional
timeout:
number
Returns
Promise
<
TransactionReceipt
>
Static
is
Provider
is
Provider
(
value
:
any
)
:
value
is
Provider
Parameters
value:
any
Returns
value
is
Provider
Modules
@injectivelabs/sdk-
ts
@injectivelabs/wallet-
ts
Utils
Wallets
internal
Event
Emitter
Provider
constructor
_is
Provider
add
Listener
call
emit
estimate
Gas
get
Balance
get
Block
get
Block
Number
get
Block
With
Transactions
get
Code
get
Fee
Data
get
Gas
Price
get
Logs
get
Network
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
wait
For
Transaction
is
Provider
Generated using
TypeDoc