EIP1559Signer
Functions
encodeUnsignedTx
Encode an unsigned EIP-1559 transaction for signing
function encodeUnsignedTx(EIP1559Tx memory rawTx) internal pure returns (bytes memory);
Parameters
| Name | Type | Description | 
|---|---|---|
rawTx | EIP1559Tx | Transaction to encode | 
encodeSignedTx
Encode a signed EIP-1559 transaction
function encodeSignedTx(EIP1559Tx memory rawTx, SignatureRSV memory rsv) internal pure returns (bytes memory);
Parameters
| Name | Type | Description | 
|---|---|---|
rawTx | EIP1559Tx | Transaction which was signed | 
rsv | SignatureRSV | R, S & V parameters of signature | 
signRawTx
Sign a raw transaction
function signRawTx(EIP1559Tx memory rawTx, address pubkeyAddr, bytes32 secretKey)
    internal
    view
    returns (SignatureRSV memory ret);
Parameters
| Name | Type | Description | 
|---|---|---|
rawTx | EIP1559Tx | Transaction to sign | 
pubkeyAddr | address | Ethereum address of secret key | 
secretKey | bytes32 | Secret key used to sign | 
sign
Sign a transaction, returning it in EIP-1559 encoded form
function sign(address publicAddress, bytes32 secretKey, EIP1559Tx memory transaction)
    internal
    view
    returns (bytes memory);
Parameters
| Name | Type | Description | 
|---|---|---|
publicAddress | address | Ethereum address of secret key | 
secretKey | bytes32 | Secret key used to sign | 
transaction | EIP1559Tx | Transaction to sign | 
Structs
EIP1559Tx
struct EIP1559Tx {
    uint64 nonce;
    uint256 maxPriorityFeePerGas;
    uint256 maxFeePerGas;
    uint64 gasLimit;
    address to;
    uint256 value;
    bytes data;
    EIPTypes.AccessList accessList;
    uint256 chainId;
}