Skip to Content
MCN Blockchain

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

FieldMeaning
chainId2325 for MCN Mainnet; protects the signature against replay on other chain IDs
nonceSender's sequential transaction number
toRecipient, or contract address for a call
valueNative MCN amount in base units
data0x for a plain transfer; calldata for a contract call
gasLimitMaximum gas the transaction may consume
Fee fieldsgasPrice 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

StateMeaning
SignedA serialized transaction exists; it has not necessarily reached a node
PendingA node knows it, but there is no canonical receipt yet
Included, successfulReceipt status is 0x1; the block may still be unfinalized
Included, failedReceipt status is 0x0; execution failed and gas was still charged
FinalizedThe 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

On this page