Search
Preparing search index...
The search index is not available
web3.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
RPCClientImpl
Class RPCClientImpl
JSON RPC 2.0 client implementation.
Works for both the browser and Node.js
Hierarchy
RPCClientImpl
Implements
RPCClient
Index
Constructors
constructor
Properties
_id
_subscribers
_url
_ws
Methods
create
Web
Socket
request
subscribe
Constructors
constructor
new RPCClient
Impl
(
url
:
string
)
:
RPCClientImpl
Parameters
url:
string
Returns
RPCClientImpl
Properties
Private
_id
_id
:
number
= 0
Private
_subscribers
_subscribers
:
{}
Type declaration
[
id:
number
]:
Subscriber
<
any
>
Private
_url
_url
:
any
Private
_ws
_ws
:
WebSocket
Methods
create
Web
Socket
create
Web
Socket
(
url
:
string
)
:
Promise
<
void
>
Parameters
url:
string
Returns
Promise
<
void
>
request
request
(
method
:
string
, params
:
any
[]
)
:
Promise
<
any
>
Parameters
method:
string
params:
any
[]
Returns
Promise
<
any
>
subscribe
subscribe
(
method
:
string
, params
:
any
[]
, subscriber
:
Subscriber
<
any
>
)
:
Promise
<
Subscription
>
Parameters
method:
string
params:
any
[]
subscriber:
Subscriber
<
any
>
Returns
Promise
<
Subscription
>
Globals
Balance
Connection
RPCClient
Impl
constructor
_id
_subscribers
_url
_ws
create
Web
Socket
request
subscribe
Wallet
Publisher
RPCClient
Subscriber
Subscription
Contract
deploy
Contract
fromWEI
get
Balance
get
Gas
Balance
read
File
Callback
send
Transaction
toWEI
Generated using
TypeDoc
JSON RPC 2.0 client implementation.
Works for both the browser and Node.js