Transactions

Transactions, which change the state of the EVM, need to be broadcast to the whole network. Any node can broadcast a request for a transaction to be executed on the EVM; after this happens, a validator will execute the transaction and propagate the resulting state change to the rest of the network.

Transaction Fees on Scroll

Compared to Ethereum mainnet, Scroll introduces some new dimensions to transaction fee calculation to do this. The final cost of a transaction is constructed from several parts:

  • L2 fee

    • Calculated in the same manner as on the L1, equaling gas_price * gas_used

  • L1 fee

    • This additional fee covers sending data to L1 for data availability. Transactions initiated on the L1 do not pay this fee.

    • It is calculated based on the size of the transaction’s calldata

    • ETH is automatically deducted from the user’s balance on Scroll for the fee

At a high level, the L2 fee is the cost of executing your transaction on the L2 sequencer, and the L1 fee is the cost of committing that transaction onto L1.

Table Columns

Column NameDescriptionExample

hash

Unique identifier of a transaction.

0x88ab6ec38f6d2bd6748d465a15688a155f6e8eba685c01b09c0f6aba8f274ce4

nonce

The transaction nonce, unique to the wallet

0

transaction_index

The position of this transaction in the block that it belongs to. The first transaction has index 0.

1

from_address

The address of the sending party of this transaction.

0xff3a6eec32c070302fd4f5d49ac859163b58c82c

to_address

The address of the receiving party of this transaction (could be a contract address).

0x5300000000000000000000000000000000000004

value

The amount of ether sent in this transaction, in wei.

150000000000000000

gas

The maximum amount of gas allocated for this transaction in wei.

77838

gas_price

Cost per unit of gas specified by the transaction in wei. The higher the gas price, the higher chance of getting included in a block.

400000000

input

The data send along with the transaction.

0xd0e30db0

receipt_cumulative_gas_used

The total amount of gas used when this transaction was executed in the block.

151308

receipt_gas_used

Gas consumed by the transaction in wei.

51892

receipt_contract_address

The contract address created, if the transaction was a contract creation, otherwise null.

receipt_root

Transaction stateroot (pre Byzantium)

receipt_status

Success status of the transaction. Either 1 (success) or 0 (failure).

1

block_timestamp

The time when the block that contains this transaction was included on the blockchain.

2023-10-21 09:04:57+00:00

block_number

The length of the chain, in blocks.

180511

block_hash

Unique identifier of the block that includes this transaction.

0x32fea0fed8b06a92a2abe7f43492884995c0d3833dc4658b2bd9354e4cfabbb1

receipt_effective_gas_price

The sum of the base fee and tip paid per unit of gas.

400000000

max_fee_per_gas

The maximum fee per gas that the transaction sender is willing to pay for this transaction (introduced in EIP1559)

nan

max_priority_fee_per_gas

The maximum fee per gas the transaction sender is willing to give to validators (Proof of Stake) or miners (Proof of Work) to incentivize them to include their transaction (introduced in EIP1559)

nan

transaction_type

The integer of the transaction type, 0x0 for legacy transactions, 0x1 for access list types, 0x2 for dynamic fees.

0

transaction_type

The transaction type.

0

log_count

Number of event logs emitted in the transaction.

2

_created_at

Timestamp of the entry creation.

NaT

_updated_at

Timestamp of the entry update.

NaT

receipt_l1_fee

The fee associated with a transaction on the Layer 1, it is calculated as l1GasPrice multiplied by l1GasUsed.

nan

Last updated