Basebridge Deposit Basics for Mint and Value
Basebridge was the original Base Bridge interface, now retired, for transfers between Ethereum and the Base network. In Base’s underlying deposit transaction, mint credits ETH to the sender’s Base account, while value specifies ETH for the recipient. Both amounts use wei. Execution applies the mint credit before attempting the transfer or contract call. That credit survives failed execution, so a minted amount alone does not establish successful delivery to the recipient.
last updated
Table of contents
In short: A failed Base deposited transaction preserves its sender’s mint credit, so recipient delivery requires separate evidence of successful execution.
The Sender Balance, Mint Credit, and Transfer Value
A sender’s existing Base ETH balance, the mint credit, and the transfer value determine whether the requested transfer has sufficient ETH before execution. The recipient address identifies where execution sends value. Ethereum is layer 1, or L1, and Base is layer 2, or L2, in this deposit mechanism. Sender and recipient are roles in the deposited transaction, which may involve bridge contracts.
The Sender’s Mint Credit
The
mint
field increases the ETH balance of the Base account recorded as
from
. This credit occurs before the Ethereum Virtual Machine (EVM) processes the transaction’s call. Any ETH already in that account remains relevant because the requested transfer can draw on the combined balance. A direct deposit and a contract-mediated bridge deposit can involve different sender accounts.
The Recipient’s Transfer Value
The
value
field specifies the ETH amount execution attempts to send to
to
. A positive integer in this field does not record a completed payment. A recipient may be an account receiving ETH or a contract receiving ETH alongside call data. The mint credit and the value-bearing execution occur within the same deposited transaction.
Wei Units and the Balance Relationship
One ETH equals 1,000,000,000,000,000,000 wei, so raw
mint
and
value
amounts need the same unit as the sender balance before calculation. These fields store integer amounts in wei. A human-readable display may convert them into ETH, while a decoded transaction exposes the underlying amount.
Let
B
denote the sender’s initial Base balance,
M
the mint amount, and
V
the transfer value, all in wei. Available ETH after the credit is
B + M
. Funding the transfer requires
V <= B + M
. This condition establishes sufficient balance; a contract recipient may still reject the call.
For a successful transfer to a different account, with no other balance-changing execution, the sender ends with
B + M - V
wei and the recipient gains
V
wei. A recipient contract can move ETH during execution, so its closing balance may differ. If sender and recipient are the same account, the outgoing value transfer is not a separate net debit.
Does a Successful Ethereum Deposit Guarantee Execution on Base?
A confirmed Ethereum deposit establishes the initiating event, while the corresponding Base receipt determines whether the deposited transaction executed successfully on the destination chain.
Inclusion and Execution Status
The Ethereum transaction emits deposit data Base nodes use to derive the L2 transaction. The Base receipt contains execution status and logs. An L1 hash or an included L2 deposit identifies a record, without establishing its execution outcome. For a messenger-mediated transfer,
successfulMessages
and
failedMessages
record onward relay success and whether a relay failed at least once, respectively. A successful deposited transaction can contain a failed relay. A successful replay leaves the earlier failure marker intact. The deposited transaction’s
to
account may be the messenger contract, with a different eventual bridge recipient. Its native ETH
value
must therefore be interpreted at that call boundary.
Failure After the Mint Credit
Execution failure reverts the call’s state changes, while the sender’s nonce still increments.
A failed deposited transaction preserves the mint credit already applied to its sender’s Base ETH balance.
Insufficient balance for
value
is one documented failure condition. A contract call can also revert. The receipt then records failed execution, even though the deposit transaction remains included. The retained ETH belongs to
from
; it is not automatically a refund to the originating Ethereum wallet.
Gas Limits and Paid Execution Capacity
Deposit gas measures execution capacity, while
mint
and
value
measure ETH; L2 deposit gas is paid for on Ethereum. Deposited transactions omit ordinary L2 fee fields, although their execution still consumes gas. Guaranteed gas pricing depends on the requested gas and the deposit gas price. A stipend offsets that cost by the L1 deposit-processing gas multiplied by the L1 base fee. That deposit gas price can differ from Base’s ordinary transaction base fee. Unused guaranteed gas is nonrefundable. The difference between
mint
and
value
cannot, by itself, measure the deposit’s Ethereum gas cost.
Contract Senders and the Credited Account
Contract-originated deposits can credit an aliased
from
account, so the available balance belongs to that Base account rather than the unmodified Ethereum contract address.
OptimismPortal
applies address aliasing when the L1 caller is a contract. This transformation distinguishes an L1 contract caller from a Base contract at the same unmodified address. The earlier balance relationship uses the aliased account’s existing ETH as
B
. A wallet initiating a bridge interaction may differ from this low-level sender. ETH in another account does not satisfy the recorded sender’s balance requirement.
Recipient selection also remains separate from sender aliasing; the deposit’s
to
field identifies its execution target.
ETH Fields and ERC-20 Bridge Amounts
ERC-20 bridge amounts describe tokens, while deposit
mint
and
value
describe native ETH even when the transaction carries token-bridge instructions. In a standard bridge transfer, the token amount travels with the token-specific call data. The corresponding bridge may mint a compatible token representation or release tokens held in escrow, depending on the token’s relationship to that chain. Reading the ETH
mint
field as the ERC-20 issuance amount would mix separate accounting.
A zero ETH
value
can accompany a token-related call, so that field alone does not establish that no token transfer occurred.
Interpreting a Deposit Amount
A raw deposit amount describes one part of execution; the associated account and receipt determine what the number actually establishes.
-
For the sender’s credited ETH, read
mintwithfromand the sender’s pre-execution Base balance. -
For the requested ETH transfer, read
valuewithto; check the Base receipt’s execution status and, for a messenger-mediated transfer, the relay outcome. -
For a contract-originated deposit, use its aliased Base sender when comparing available ETH with
value. - For an ERC-20 amount, read the token-specific call data and transfer records; native ETH fields do not supply that quantity.
- For a closing balance calculation, account for recipient contract activity and whether sender and recipient are the same account.
Canonical withdrawals also contain an ETH
value
, but it describes ETH sent to an Ethereum target through withdrawal finalization. Their proof and finalization requirements differ from L1-derived deposits. The mint-before-execution relationship belongs to the deposit mechanism, so applying that balance calculation to a withdrawal would mix different transaction types.
Basebridge: reader questions
-
Why Does a deposit’s API Response Include a Nonce When Its Encoded Transaction Has None?
- Under the post-Canyon receipt format, the API’s nonce reports execution information even though the encoded deposited transaction has no nonce field. Deposits identify their origin through sourceHash, while execution still increments the sender account’s nonce. The receipt supplies depositNonce for the transaction response. For contract creation, that execution nonce helps determine the created contract’s address. It is not an additional ETH amount or a second deposit authorization.
-
Which Deposit Receipt Fields Change With the Canyon Upgrade?
- Canyon requires depositNonce and depositNonceVersion in RLP-encoded consensus receipts. Before Canyon, that encoding omitted both fields, but receipt API responses already included depositNonce from Regolith onward. When depositNonceVersion appears, its specified value is 1. These fields describe receipt encoding and execution information; they do not represent wei credited or transferred. An older receipt lacking them should be interpreted in its upgrade context rather than treated as evidence of a missing mint credit.
-
Can a contract-creation Deposit Have an Ordinary Recipient Address?
- A contract-creation deposited transaction uses a null to field instead of an ordinary recipient address. At the L1 deposit contract, a creation request with a nonzero destination address reverts. In the derived Base transaction, data contains contract initialization code rather than call data for an existing target. The mint field still credits the recorded sender before execution, while value supplies ETH to the contract creation.
-
How Does cumulativeGasUsed Reveal the Gas Used by One Deposit?
- From Regolith onward, a deposit’s actual gas usage is its cumulativeGasUsed minus the preceding receipt’s cumulativeGasUsed in the same block. For the first transaction in a block, subtract zero. The cumulative field measures gas consumed through that transaction’s position in the block. It is not an ETH balance or the amount in mint. Gas units also differ from wei, so the receipt’s gas count cannot be subtracted directly from an ETH transfer value.
-
What Is the Minimum Gas Limit for a user-deposited Transaction?
- The specified lower bound for a user-deposited transaction’s gas limit is 21,000 gas. Contract execution and call data can require more gas, so that lower bound does not establish sufficient capacity for every deposited call. It applies to the L2 deposited transaction, not the Ethereum transaction’s complete gas bill. The gas limit controls execution capacity; mint and value remain separate ETH quantities.
-
Is tx.origin == msg.sender a Reliable Test of a Deposit sender’s Account Type?
- The tx.origin == msg.sender comparison does not reliably identify an externally owned account during deposited transaction execution. The EVM sets CALLER and ORIGIN from the deposit’s from field, which can represent an aliased L1 contract caller. Equality can identify the first call within the deposited transaction, but it does not prove the sender is a wallet without contract code.