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
- Create a unique withdrawal request and complete the exchange's approval policy.
- Validate recipient, network and amount. Convert the decimal amount to an integer with 18-decimal precision.
- Under a lock for the sender, reconcile finalized/latest nonces,
pendingnonce and your outstanding signed transactions. Atomically reserve the next nonce. - 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
| State | Action |
|---|---|
| Reserved | Nonce and funds reserved; no signed payload yet |
| Signed | Signed payload and hash saved durably |
| Submitted / unresolved | Track the known hash; a timeout does not establish failure |
| Included | Receipt exists; check status and canonical block identity |
| Finalized success | Settle once and reconcile actual fee |
| Finalized failure | Reconcile 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.