Transactions and gas
Understand native transfers, nonces, execution receipts and finality.
A transaction is a signed instruction from an account. A native MCN transfer sets to to the recipient and value to an integer in base units. No ERC-20 contract call or memo is required.
Fields you supply
| Field | Meaning |
|---|---|
chainId | 2325 for MCN Mainnet; protects the signature against replay on other chain IDs |
nonce | Sender's sequential transaction number |
to | Recipient, or contract address for a call |
value | Native MCN amount in base units |
data | 0x for a plain transfer; calldata for a contract call |
gasLimit | Maximum gas the transaction may consume |
| Fee fields | gasPrice for legacy transactions; maxFeePerGas and maxPriorityFeePerGas for type 2 |
Fees
Fees are paid in MCN. The actual execution fee is gasUsed × effectiveGasPrice, available in the receipt. Estimate gas with eth_estimateGas; contract execution may need more than the 21,000 gas used by a plain transfer to an ordinary account.
For type 2 transactions, the maximum execution-fee budget is gasLimit × maxFeePerGas. Unused gas is not charged. Read fee information from the network instead of treating a sample price as a permanent fee.
Lifecycle
| State | Meaning |
|---|---|
| Signed | A serialized transaction exists; it has not necessarily reached a node |
| Pending | A node knows it, but there is no canonical receipt yet |
| Included, successful | Receipt status is 0x1; the block may still be unfinalized |
| Included, failed | Receipt status is 0x0; execution failed and gas was still charged |
| Finalized | The canonical containing block is covered by the finalized chain |
A missing receipt does not establish failure. A transaction may be pending, unknown to this node, dropped from its pool or replaced by another transaction with the same sender and nonce. Reconcile by hash and nonce before creating a new payment.
Transfer categories
A direct native transfer appears in the top-level transaction's to and value. A contract may move MCN during execution; these internal transfers need tracing or an indexer. Token transfers use contract events. Consensus withdrawals credit balances without an ordinary signed transaction. Keep these paths separate when processing deposits.
Sign and broadcast · Finality · Ethereum transaction reference