Skip to Content
MCN Blockchain

Process withdrawals

Reserve nonces, sign once, broadcast safely and reconcile finalized outcomes.

Native MCN withdrawals follow the Ethereum transaction model. Sign for Chain ID 2325 and pay gas in MCN. The offline-signing guide provides a runnable example; this page describes the exchange's durable accounting around it.

Prepare and reserve

  1. Create a unique withdrawal request and complete the exchange's approval policy.
  2. Validate recipient, network and amount. Convert the decimal amount to an integer with 18-decimal precision.
  3. Under a lock for the sender, reconcile finalized/latest nonces, pending nonce and your outstanding signed transactions. Atomically reserve the next nonce.
  4. Estimate gas, choose current fee caps and reserve enough balance for the amount plus maximum fee budget. Pending nonce from one node is not a replacement for your reservation journal.

Sign and persist before broadcast

Send the transaction fields to your controlled signer. Verify the returned signature's sender, chain, nonce, destination, amount and fees. Persist the signed transaction and deterministic hash against the request before calling eth_sendRawTransaction.

Only the serialized signed transaction reaches the RPC endpoint. Keep keys and keystore passwords in the custody layer.

Transaction states

StateAction
ReservedNonce and funds reserved; no signed payload yet
SignedSigned payload and hash saved durably
Submitted / unresolvedTrack the known hash; a timeout does not establish failure
IncludedReceipt exists; check status and canonical block identity
Finalized successSettle once and reconcile actual fee
Finalized failureReconcile gas charge; transfer value was not delivered by this failed transaction

After a crash, recover from saved records instead of creating a new payment. Rebroadcasting the same signed bytes retains the same hash.

Replacements

A replacement uses the same sender and nonce. Link all replacement hashes to the original withdrawal request and ensure only one final settlement. Raise fees according to node policy; do not accidentally replace a payment with a different recipient or amount.

If nonce too low is returned, identify which transaction consumed the nonce. A missing receipt for one hash cannot establish that the withdrawal was unpaid.

Pool timeout

Geth's default --txpool.lifetime is 3 hours for non-executable queued transactions. It is not a network-wide expiry time or a guarantee that all pending transactions disappear after three hours. Another node may still hold the transaction, or it may be rebroadcast later.

Do not release reservations or retry a payment solely because of elapsed time. Resolve the sender nonce and all known hashes first.

Finality · Geth transaction-pool options

On this page