◆ blockHash()
M8B\EtherBinder\RPC\Modules\AbstractModule::blockHash |
( |
Hash|Block | $block | ) |
|
|
protectedinherited |
Either extracts block hash from block and returns it as hex string, or returns hash hex string. Used for parameter normalization in RPC calls, for convenience of API.
- Parameters
-
Hash | Block | $block | the block object or a Hash object |
- Returns
- string hexadecimal representation of the block hash
◆ blockParam()
M8B\EtherBinder\RPC\Modules\AbstractModule::blockParam |
( |
int|BlockParam | $blockNumber | ) |
|
|
protectedinherited |
Normalizes a block number parameter for RPC calls.
- Parameters
-
int | BlockParam | $blockNumber | the block number or a BlockParam object |
- Returns
- string hexadecimal representation of the block number or RPC alias string, such as "latest"
◆ debugGetRawBlock()
M8B\EtherBinder\RPC\Modules\Debug::debugGetRawBlock |
( |
int|BlockParam | $blockParam = BlockParam::LATEST | ) |
|
- Exceptions
-
EthBinderLogicException | |
RPCInvalidResponseParamException | |
RPCGeneralException | |
RPCNotFoundException | |
◆ debugGetRawHeader()
M8B\EtherBinder\RPC\Modules\Debug::debugGetRawHeader |
( |
int|BlockParam | $blockParam = BlockParam::LATEST | ) |
|
- Exceptions
-
EthBinderLogicException | |
RPCGeneralException | |
RPCInvalidResponseParamException | |
RPCNotFoundException | |
◆ debugGetRawReceipts()
M8B\EtherBinder\RPC\Modules\Debug::debugGetRawReceipts |
( |
int|BlockParam | $blockParam = BlockParam::LATEST | ) |
|
- Exceptions
-
EthBinderLogicException | |
RPCGeneralException | |
RPCInvalidResponseParamException | |
RPCNotFoundException | |
◆ debugGetRawTransaction()
M8B\EtherBinder\RPC\Modules\Debug::debugGetRawTransaction |
( |
Hash | $h | ) |
|
- Parameters
-
- Returns
- Transaction
- Exceptions
-
BadAddressChecksumException | |
EthBinderLogicException | |
InvalidHexException | |
InvalidHexLengthException | |
NotSupportedException | |
RPCGeneralException | |
RPCInvalidResponseParamException | |
RPCNotFoundException | |
EthBinderRuntimeException | |
◆ runRpc()
M8B\EtherBinder\RPC\Modules\AbstractModule::runRpc |
( |
string | $method, |
|
|
?array | $params = null ) |
|
abstractinherited |
Executes an RPC call with the given method and parameters.
- Parameters
-
string | $method | the RPC method name |
array | null | $params | optional array of parameters for the RPC call |
- Returns
- array result of the RPC call
-
array 'result' field of the RPC response. If the result is not an array, it's wrapped in an array under key 0.
- Exceptions
-
RPCGeneralException | if any unexpected error is present in RPC response |
RPCInvalidResponseParamException | if the 'result' field is missing in the response |
RPCNotFoundException | if the method is not found |
Reimplemented in M8B\EtherBinder\RPC\AbstractRPC.
The documentation for this class was generated from the following file:
- src/RPC/Modules/Debug.php