Search
Preparing search index...
The search index is not available
@ethercast/eth-jsonrpc-client
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
EthHTTPClient
Class EthHTTPClient
This client interacts with the JSON RPC via HTTP/HTTPS
Hierarchy
EthHTTPClient
Implements
EthClient
Index
Constructors
constructor
Methods
cmd
eth_
block
Number
eth_
get
Block
ByHash
eth_
get
Block
ByNumber
eth_
get
Logs
eth_
get
Transaction
Receipt
eth_
get
Transaction
Receipts
eth_
send
Transaction
net_
version
web3_
client
Version
Constructors
constructor
new
EthHTTPClient
(
__namedParameters
:
object
)
:
EthHTTPClient
Parameters
__namedParameters:
object
endpoint
Url
:
string
Returns
EthHTTPClient
Methods
cmd
cmd<TResponse>
(
method
:
Method
,
...
params
:
MethodParameter
[]
)
:
Promise
<
TResponse
>
Type parameters
TResponse
Parameters
method:
Method
Rest
...
params:
MethodParameter
[]
Returns
Promise
<
TResponse
>
eth_
block
Number
eth_
block
Number
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
eth_
get
Block
ByHash
eth_
get
Block
ByHash
(
hash
:
string
, includeFullTransactions
:
false
)
:
Promise
<
BlockWithTransactionHashes
>
eth_
get
Block
ByHash
(
hash
:
string
, includeFullTransactions
:
true
)
:
Promise
<
BlockWithFullTransactions
>
Parameters
hash:
string
includeFullTransactions:
false
Returns
Promise
<
BlockWithTransactionHashes
>
Parameters
hash:
string
includeFullTransactions:
true
Returns
Promise
<
BlockWithFullTransactions
>
eth_
get
Block
ByNumber
eth_
get
Block
ByNumber
(
blockNumber
:
BlockParameter
, includeFullTransactions
:
false
)
:
Promise
<
BlockWithTransactionHashes
>
eth_
get
Block
ByNumber
(
blockNumber
:
BlockParameter
, includeFullTransactions
:
true
)
:
Promise
<
BlockWithFullTransactions
>
Parameters
blockNumber:
BlockParameter
includeFullTransactions:
false
Returns
Promise
<
BlockWithTransactionHashes
>
Parameters
blockNumber:
BlockParameter
includeFullTransactions:
true
Returns
Promise
<
BlockWithFullTransactions
>
eth_
get
Logs
eth_
get
Logs
(
filter
:
LogFilter
)
:
Promise
<
Log
[]
>
Parameters
filter:
LogFilter
Returns
Promise
<
Log
[]
>
eth_
get
Transaction
Receipt
eth_
get
Transaction
Receipt
(
hash
:
string
)
:
Promise
<
TransactionReceipt
>
Parameters
hash:
string
Returns
Promise
<
TransactionReceipt
>
eth_
get
Transaction
Receipts
eth_
get
Transaction
Receipts
(
hashes
:
string
[]
)
:
Promise
<
TransactionReceipt
[]
>
Parameters
hashes:
string
[]
Returns
Promise
<
TransactionReceipt
[]
>
eth_
send
Transaction
eth_
send
Transaction
(
params
:
SendTransactionParameters
)
:
Promise
<
string
>
Parameters
params:
SendTransactionParameters
Returns
Promise
<
string
>
net_
version
net_
version
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
web3_
client
Version
web3_
client
Version
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
Globals
Method
EthHTTPClient
constructor
cmd
eth_
block
Number
eth_
get
Block
ByHash
eth_
get
Block
ByNumber
eth_
get
Logs
eth_
get
Transaction
Receipt
eth_
get
Transaction
Receipts
eth_
send
Transaction
net_
version
web3_
client
Version
Eth
Web
Socket
Client
Validated
Eth
Client
Eth
Client
Log
Filter
Method
Parameter
Array
Method
Parameter
Object
Send
Transaction
Parameters
Block
Parameter
Method
Parameter
Number
Like
get
Client
Generated using
TypeDoc
This client interacts with the JSON RPC via HTTP/HTTPS