Sub topic 12
Receiving funds and checking that they arrived
This chapter assumes you know what an address, a network, a native coin and a token are, and that you have read the chapters on the transaction lifecycle and on confirmations and finality. Receiving looks passive, but most lost or "missing" payments come from the receiving side. The sender picked the wrong network, the receiver watched the wrong asset, or someone treated a pending payment as final.
What "receiving" actually means
You do not receive crypto in the way you receive an email. Nothing is delivered to you. A payment is a change in shared ledger state: after a transaction is included in a block, the ledger records that your account has a higher balance, or that a new output belongs to you.
This has three consequences:
- Your wallet app is only a viewer. It reads the chain through a node and shows you the result.
- The funds exist on one specific network. A wallet that shows nothing may simply be looking at a different network than the one the sender used.
- You can check the result yourself, without trusting the sender or your wallet app, by querying a node or a block explorer.
Step 1: Give the sender the right details
A correct payment request has three parts.
- The address. Copy it from your wallet. Never type it by hand. Compare the first and last several characters after pasting, because clipboard-hijacking malware replaces addresses.
- The network. The same address format works on many EVM networks. An address that begins with
0xis valid on Ethereum, Polygon, Arbitrum, BNB Smart Chain and others. Say exactly which one you expect. - The asset. Say whether you expect the native coin or a specific token. For a token, give the contract address, because many tokens share a ticker symbol.
If an exchange or custodian holds the account, also check whether it needs a memo or tag. Custodial deposit systems that share one address among many users use the tag to credit the correct customer.
Test with a small amount first
For a new address, a new network or a large transfer, send a small amount first. Confirm it arrives. Then send the rest. The extra fee is small compared with the cost of one mistake.
Step 2: Find the transaction
The sender can give you a transaction hash (also called a transaction ID). This is a 66-character string for EVM chains, 0x followed by 64 hex digits. Paste it into a block explorer for the correct network. The explorer shows these fields:
| Field | What to check |
|---|---|
| Status | Pending, success or failed |
| From / To | The sender is who you expect. For a token transfer, the `To` of the transaction is the token contract, not you |
| Value | For a native transfer, the amount. A token transfer shows `0` native value |
| Token transfers | For tokens, the recipient and amount appear in the decoded event log |
| Block and confirmations | Which block included it, and how many blocks have been added since |
| Fee | What the sender paid. It does not reduce what you receive |
The last point is a frequent confusion. On a token transfer, the explorer's "To" field shows the token contract because the sender called the contract. Your address appears in the token transfer section. This is normal.
Step 3: Understand what a wallet balance shows
A wallet balance depends on three things: the network the wallet is connected to, the account selected, and the assets the wallet chooses to display.
- Native coin balances appear automatically for the connected network.
- Token balances may be hidden until the wallet recognizes the token. Many wallets let you import a token by pasting its contract address. The token is already yours when the transfer is mined. Importing only makes it visible.
- Unsolicited tokens can also appear. Scammers send worthless tokens that carry links or invitations to interact with a malicious site. Do not click through, and do not approve anything from an unknown token. See the chapter on wallet security.
A fast diagnostic is to open your address in the explorer for the expected network. The explorer shows the truth about the chain. The wallet shows an interpretation of it.
Step 4: Verify with code
You can check a native balance and a transaction's confirmations with a few lines of ethers v6. Use a testnet RPC URL while learning.
import { JsonRpcProvider, formatEther } from "ethers";
const provider = new JsonRpcProvider(process.env.RPC_URL);
const address = "0x0000000000000000000000000000000000000001";
const balance = await provider.getBalance(address);
console.log("Balance:", formatEther(balance));
const tx = await provider.getTransaction(process.env.TX_HASH);
const currentBlock = await provider.getBlockNumber();
if (tx && tx.blockNumber !== null) {
console.log("Confirmations:", currentBlock - tx.blockNumber + 1);
} else {
console.log("Not yet included in a block");
}The confirmation count is the current block number minus the inclusion block number, plus one. A transaction in the latest block has one confirmation. This code reads only the balance and the inclusion block. It does not prove that the transaction succeeded or that it paid you. A failed transaction is also included in a block, and it still consumes gas. To check success, read the receipt and test receipt.status === 1.
For a token, the more reliable check is to read balanceOf(yourAddress) on the token contract before and after the payment, or to read the Transfer event in the receipt. Compare the difference with the expected amount, using the token's decimals value. Some tokens charge a fee on transfer, so the amount you receive can be less than the amount sent.
Step 5: Decide when a payment is final enough
A transaction in one block is not the same as a payment you can rely on. A short chain reorganization can remove a recently included block, and the transaction may move to another block or be dropped. The chapter on confirmations and finality explains the mechanics. For receiving, what you need is a policy that matches the value at risk.
The diagram below shows a typical checking flow.
A reasonable policy scales the waiting time with the value:
- Low-value payments, such as a coffee, may be accepted after one or a few confirmations, accepting a small reorg risk.
- Larger payments should wait for the network's finalized state where it exists. On Ethereum, the
finalizedblock tag marks blocks that are very unlikely to be reverted. - Exchanges and services publish their own required confirmation counts per network. Follow theirs when depositing.
You can query the finalized block in ethers with provider.getBlock("finalized"). Compare its number with the block that included your transaction. If the inclusion block number is less than or equal to the finalized block number, the payment is finalized.
Common receiving problems
The explorer shows success but the wallet shows nothing
Check these causes in order:
- The wallet is connected to a different network.
- The wallet has a different account selected.
- The asset is a token the wallet does not display yet. Import it by contract address.
- The wallet's node is lagging. Refresh, or switch to another RPC endpoint.
The sender used the wrong network
Funds sent on the wrong network are not lost in every case. If the address is one you control with a private key, such as a self-custody EVM wallet, the same key controls the same address on other EVM networks. You can often reach the funds by adding that network to your wallet. If the address belongs to an exchange, the exchange may not support the network, and recovery depends on its support process and may cost a fee or fail. If the sender used a network with a different address format, such as Bitcoin, the transfer usually could not have been created at all.
The amount is lower than expected
Check whether the sender pasted the amount including their fee, whether the token charges a transfer fee, and whether you are comparing the same units. A token with 6 decimals and a token with 18 decimals display very different raw numbers for the same human amount.
The payment appears twice or disappears
A wallet may briefly show a pending incoming transaction that then vanishes. This happens when the transaction was replaced, dropped or reorganized out. Trust the explorer's final state, and wait for confirmations before acting.
A smart contract wallet is the recipient
If the recipient is a contract, a plain native transfer can fail if the contract has no function to accept it. Such a transaction reverts, and the sender keeps the funds but loses the gas. Confirm with the contract's owner that it accepts the asset you plan to send.
Summary checklist
- Share the address, the network and the asset, and a memo or tag if the receiver is a custodian.
- Send a small test payment for new routes.
- Look up the hash on the explorer for the right network.
- Confirm status is success, then check recipient, asset and amount.
- Wait for confirmations that match the value.
- If the wallet disagrees with the explorer, check network, account, token visibility and RPC endpoint.
Exercise
A client says they sent you 200 USDC on Polygon. Your wallet is connected to Ethereum and shows no USDC. The client gives you a transaction hash. List the checks you perform and say what the likely explanation is.
Show answer
Look up the hash in a block explorer for Polygon, since that is the network the client named. Confirm the status is success, then open the token transfer section to confirm the recipient is your address, the token is the correct USDC contract and the amount is 200 (accounting for the token's decimals). The explorer's "To" field will show the token contract, which is expected. Check the number of confirmations, or the finalized state, against your policy for 200 USD of value. The likely explanation is that your wallet is connected to Ethereum while the funds exist on Polygon. Switch the wallet to Polygon, or add the network, and import the USDC contract address if it is not displayed. The same address and key work on both networks, so you do not need a new account.
Exercise
Your code reads a transaction and finds tx.blockNumber is 1000 while getBlockNumber() returns 1004. How many confirmations does it have, and why is that not enough to say the payment succeeded?
Show answer
It has 5 confirmations (1004 - 1000 + 1). That count only shows how deep the transaction's block is. A transaction that reverted is also included in a block and still has confirmations, so you must read the receipt and check that receipt.status === 1. For a token payment you should also check the Transfer event or the change in balanceOf.