ETHRPCRequest<T> class
abstract
An abstract class representing Ethereum JSON-RPC requests with generic response types.
- Inheritance
-
- Object
- LookupBlockRequest
- ETHRPCRequest
- Implemented types
- Implementers
- RPCCall
- RPCCompileSerpent
- RPCCompileSolidity
- RPCCreateAccessList
- RPCEstimateGas
- RPCGetAccounts
- RPCGetBalance
- RPCGetBlockByHash
- RPCGetBlockByNumber
- RPCGetBlockNumber
- RPCGetBlockTransactionCountByNumber
- RPCGetChainId
- RPCGetCode
- RPCGetCoinbase
- RPCGetCompilers
- RPCGetFeeHistory
- RPCGetFilterChanges
- RPCGetFilterLogs
- RPCGetGasPrice
- RPCGetGetBlockTransactionCountByHash
- RPCGetGetUncleCountByBlockHash
- RPCGetHashRate
- RPCGetMining
- RPCGetNodeInfo
- RPCGetPendingTransactions
- RPCGetProof
- RPCGetProtocolVersion
- RPCGetStorageAt
- RPCGetSyncing
- RPCGetTransactionByBlockHashAndIndex
- RPCGetTransactionByBlockNumberAndIndex
- RPCGetTransactionByHash
- RPCGetTransactionCount
- RPCGetTransactionReceipt
- RPCGetUncleByBlockHashAndIndex
- RPCGetUncleByBlockNumberAndIndex
- RPCGetUncleCountByBlockNumber
- RPCNewBlockFilter
- RPCNewPendingTransactionFilter
- RPCompileLLL
- RPCReguestAccounts
- RPCSendRawTransaction
- RPCSendTransaction
- RPCSign
- RPCSignTransaction
- RPCSubmitHashrate
- RPCSubmitWork
- RPCUninstallFilter
- RPCWork
Constructors
- ETHRPCRequest({BlockTagOrNumber? blockNumber})
Properties
- blockNumber → BlockTagOrNumber?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → EthereumMethods
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validate → String?
-
A validation property (not used in this implementation).
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResonse(
dynamic result) → T -
Converts a dynamic response to the generic type
T
. -
toJson(
) → List -
Converts the request parameters to a JSON representation.
inherited
-
toRequest(
int requestId) → ETHRequestDetails - Converts the request parameters to a ETHRequestDetails object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
onBigintResponse(
dynamic result) → BigInt - Converts a dynamic response to a BigInt, handling hexadecimal conversion.
-
onIntResponse(
dynamic result) → int - Converts a dynamic response to an integer, handling hexadecimal conversion.