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
EthereumProvider
Class EthereumProvider
Hierarchy
JsonRpcProvider
EthereumProvider
Eip1993ProviderWithMetamask
Implements
IEthereumProvider
Index
Constructors
constructor
Properties
connection
events
Methods
close
connect
disconnect
enable
off
on
on
Payload
once
open
remove
Listener
request
request
Strict
set
Connection
Constructors
constructor
new
Ethereum
Provider
(
connection
:
string
|
IJsonRpcConnection
)
:
EthereumProvider
Parameters
connection:
string
|
IJsonRpcConnection
Returns
EthereumProvider
Properties
connection
connection
:
IJsonRpcConnection
events
events
:
EventEmitter
Methods
Protected
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
connect
connect
(
connection
?:
string
|
IJsonRpcConnection
)
:
Promise
<
void
>
Parameters
Optional
connection:
string
|
IJsonRpcConnection
Returns
Promise
<
void
>
disconnect
disconnect
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
enable
enable
(
)
:
Promise
<
ProviderAccounts
>
Returns
Promise
<
ProviderAccounts
>
off
off
(
event
:
string
, listener
:
any
)
:
void
Parameters
event:
string
listener:
any
Returns
void
on
on
(
event
:
string
, listener
:
any
)
:
void
Parameters
event:
string
listener:
any
Returns
void
Protected
on
Payload
on
Payload
(
payload
:
JsonRpcPayload
<
any
,
any
>
)
:
void
Parameters
payload:
JsonRpcPayload
<
any
,
any
>
Returns
void
once
once
(
event
:
string
, listener
:
any
)
:
void
Parameters
event:
string
listener:
any
Returns
void
Protected
open
open
(
connection
?:
string
|
IJsonRpcConnection
)
:
Promise
<
void
>
Parameters
Optional
connection:
string
|
IJsonRpcConnection
Returns
Promise
<
void
>
remove
Listener
remove
Listener
(
event
:
string
, listener
:
any
)
:
void
Parameters
event:
string
listener:
any
Returns
void
request
request
<
Result
,
Params
>
(
request
:
RequestArguments
<
Params
>
, context
?:
any
)
:
Promise
<
Result
>
Type Parameters
Result =
any
Params =
any
Parameters
request:
RequestArguments
<
Params
>
Optional
context:
any
Returns
Promise
<
Result
>
Protected
request
Strict
request
Strict
<
Result
,
Params
>
(
request
:
JsonRpcRequest
<
Params
>
, context
?:
any
)
:
Promise
<
Result
>
Type Parameters
Result =
any
Params =
any
Parameters
request:
JsonRpcRequest
<
Params
>
Optional
context:
any
Returns
Promise
<
Result
>
Protected
set
Connection
set
Connection
(
connection
?:
string
|
IJsonRpcConnection
)
:
IJsonRpcConnection
|
HttpConnection
|
WsConnection
Parameters
Optional
connection:
string
|
IJsonRpcConnection
Returns
IJsonRpcConnection
|
HttpConnection
|
WsConnection
Modules
@injectivelabs/sdk-
ts
@injectivelabs/wallet-
ts
Utils
Wallets
internal
Event
Emitter
Ethereum
Provider
constructor
connection
events
close
connect
disconnect
enable
off
on
on
Payload
once
open
remove
Listener
request
request
Strict
set
Connection
Generated using
TypeDoc