Ether Binder
Set of utilities for interacting with Ethereum and it's smart contracts with PHP, with generating ABI bindings and Ethereum-related types
Loading...
Searching...
No Matches
M8B\EtherBinder\Common Namespace Reference

Classes

class  AccessListTransaction
 
class  Address
 
interface  BinarySerializableInterface
 
class  Block
 
class  BlockNonce
 
class  Bloom
 
class  CancunTransaction
 
class  Hash
 
interface  HashSerializable
 
class  LegacyTransaction
 
class  Log
 
class  LondonTransaction
 
class  Receipt
 
class  SolidityFunction
 
class  SolidityFunction4BytesSignature
 
class  Transaction
 
class  ValidatorWithdrawal
 

Enumerations

enum  TransactionType { numericToEnum }
 

Detailed Description

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Enumeration Type Documentation

◆ TransactionType

TransactionType defines various types of Ethereum transactions.

Author
DubbaThony
Enumerator
numericToEnum 

Converts a numeric representation of a transaction type, commonly found as first entry in RLP for non-legacy transaction types, to its corresponding enum value. For example, it can be used for decoding transaction after reading the RPL - for selecting transaction type object.

Parameters
string | int$typeThe numeric representation, it can be integer or hex string, with or without 0x prefix or lpad 2
Returns
TransactionType The corresponding enum value.
Exceptions
NotSupportedExceptionIf the provided type is not recognized, malformed, or not supported.