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
JsonRpcProvider
Class JsonRpcProvider
Hierarchy
IJsonRpcProvider
JsonRpcProvider
EthereumProvider
Index
Constructors
constructor
Properties
connection
events
Methods
close
connect
disconnect
off
on
on
Payload
once
open
remove
Listener
request
request
Strict
set
Connection
Constructors
constructor
new
Json
Rpc
Provider
(
connection
:
string
|
IJsonRpcConnection
)
:
JsonRpcProvider
Parameters
connection:
string
|
IJsonRpcConnection
Returns
JsonRpcProvider
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
>
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
Json
Rpc
Provider
constructor
connection
events
close
connect
disconnect
off
on
on
Payload
once
open
remove
Listener
request
request
Strict
set
Connection
Generated using
TypeDoc