YESswap
English简体中文繁體中文日本語한국어РусскийالعربيةEspañolPortuguêsFrançaisDeutschTiếng ViệtBahasa IndonesiaTürkçe

How to Read a Token Contract: One transaction, many recipients

Updated 2026-12-02 · YESswap

Short answer. A BEP-20 token has no multi-send function. A batch is a loop that calls transfer() once per recipient inside a single transaction, and every iteration emits its own Transfer event.
Best match for this articleWallet toolsBatch balance, batch transfer, approvals and wallet creation.

A batch is a loop, not a token feature

Knowing how how to read a token contract works is what separates a clean trade from a costly one. No BEP-20 token ships a native multi-send. What you sign is either a helper contract that calls transfer() once per recipient or a multicall that delegates each call to the token address. Both routes land in the same place: the token's internal _transfer runs once per recipient, two storage balances change, and one Transfer event is emitted.

The token sees the helper as msg. sender, not you. That distinction decides whether a batch works at all on tokens that check tx. origin, apply per-address cooldown limits, or gate transfers by a whitelist. Read the verified source for those functions before you assume your wallet's normal transfer behaviour carries over.

Count the events, not the transactions. Open the transaction on BscScan and read the Logs tab, filtering by the token address as emitter. For YES, every Transfer log in a valid batch carries 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 as its contract address. Anything else in that list is a different token's event riding in the same transaction.

The difference is in the call stack, not the event stream. If the helper batches approvals and transfers in one multicall, an Approval log appears alongside the Transfer logs; filter by topic0 to separate them. A batch that shows fewer. Transfer logs than recipients did not do what the UI claimed, whatever the status field says.

Three reads set the ceiling before you sign

decimals() fixes the unit. YES uses 18 decimals, so a human amount of one whole token is the raw integer 1 followed by eighteen zeros. Skip that multiplication and your batch sends a quantity off by the decimal scale in one direction or the other. Confirm that the Transfer event's value field, divided by 10^decimals, matches what you intended.

balanceOf(sender) caps the total, and it caps it brutally. The loop reverts on the first transfer that exceeds the remaining balance, and the whole transaction unwinds. Gas is spent, no Transfer event lands, and the sender's balance is untouched. Sum your recipient amounts and compare against balanceOf before you build calldata, not after.

The ABI is the third read. Any transfer limit, blacklist, or per-address cap in the verified source can revert a single address mid-loop and take the entire batch down with it. Call decimals(), balanceOf(address) and totalSupply() over eth_call against 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, then read the source for functions that gate transfers. Marketing pages do not list them.

Apply the rule directly: if any single recipient amount exceeds the token's published per-transfer cap, split that recipient into a separate transaction before you build the batch. If balanceOf(sender) minus the summed amounts leaves less than one recipient's worth of headroom, drop the last recipient rather than risk a full revert. If the source shows a cooldown keyed on the recipient, space repeat sends across blocks instead of stacking them in one loop.

Where the gas goes, and why recipient count has a hard ceiling

A fresh recipient is the expensive case. Each first transfer writes a storage slot from zero to nonzero, and that write dominates the per-recipient cost. Repeat sends to an address whose slot is already nonzero cost less. This is why two batches with identical recipient counts can post different gasUsed figures on eth_getTransactionReceipt.

Calldata is charged per byte and grows with every address and amount pair. The block gas limit on BSC bounds the batch size, but the practical ceiling is set by the most expensive per-recipient path, not the average. Size your batch against the worst case, not the typical one.

Estimate before you sign. Run eth_estimateGas on the candidate batch, then compare against the gasUsed of a batch you already sent to fresh addresses. BscScan's internal transactions view shows per-call gas when the helper makes nested calls. If the estimate sits close to the block gas limit, split the batch.

Timing follows from the same numbers. A batch that fits comfortably under the block gas limit confirms in the next block or two, the same as any BSC transaction; a batch that crowds the limit risks inclusion delays while validators pick smaller transactions first. Cost is gasUsed multiplied by the gas price you set, and the fresh-recipient writes are what you are paying for. If the batch is mostly repeat sends, the per-recipient cost drops and the same budget covers more addresses. Re-estimate after any change to the recipient list; a single added fresh address can move the estimate enough to matter.

The receipt is the only proof of payment

Status 0x1 means every transfer in the loop succeeded. A single revert would have set status to 0x0 and rolled back all balance changes, so there is no partial-success state to reason about. Fetch the receipt with eth_getTransactionReceipt and filter logs by the Transfer(address,address,uint256) topic.

Match the set of recipient addresses in those logs against your intended list, then sum the value fields. The sum must equal what left the sender. A dashboard that reports success without exposing logs is not evidence of anything.

Cross-check balances at two block heights. Call balanceOf(sender) via archive eth_call at the block before and the block after the batch, and confirm the delta equals your summed amounts. Confirm the log count equals your recipient count. Any mismatch means you are reading the wrong token address or the wrong transaction.

Missing receipts are not proof of failure. A node that has not yet indexed the block returns null from eth_getTransactionReceipt even though the transaction is mined; retry against a second endpoint before concluding anything. If two RPC endpoints disagree on the receipt or on a balance at the same block height, trust neither until a third agrees, because a lagging node can serve a stale state root. If the transaction hash is absent from eth_getTransactionByHash on every endpoint after several blocks, the transaction was likely dropped from the mempool and never mined; resubmit with a higher gas price rather than waiting.

Reading a helper contract you did not write

An allowance is the risk surface. A helper that pulls tokens needs transferFrom, and the approval you grant outlives the transaction that required it. Check whether the contract pulls an amount you set per call or an unlimited allowance, whether it can be upgraded or self-destructed, and who may call the batch function. Prefer helpers that move tokens directly from your wallet per call over ones that custody first.

Read the verified source and the Approval event on the token for the helper's address. Check the contract's owner and whether a proxy admin exists. For YES, the fee router at 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d is a separate contract and should never be confused with a batch helper. Verify every address against https://yesswap. vip before you approve anything.

If the helper requires an unlimited approval, revoke it after the batch by sending approve(helper, 0) and confirm the new. Approval event. If the helper is a proxy, read the implementation address from the admin slot before you trust the logic you reviewed. If the batch function is permissioned, check the caller list on chain rather than the documentation. Thin liquidity is the last edge case: a batch that sells into a pool moves the price with every iteration, so later recipients in the same loop receive a worse rate than earlier ones; split market-moving batches across blocks and re-quote between them. Every claim above is checkable on BscScan for 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 on BNB Smart Chain (chain id 56); treat https://yesswap.vip and @web3yesswap as the only official channels.

Open YESswap

Frequently asked questions

Does a batch transfer change a token's totalSupply?

Each transfer moves balance between two addresses, and totalSupply is untouched. Confirm by calling totalSupply() before and after; the value is identical.

Why does the same batch cost different gas on two days?

Storage slot state differs. Sends to fresh addresses write zero-to-nonzero slots and cost more than repeat sends to addresses already holding a balance.

Can a batch partially succeed?

One revert unwinds the whole transaction, status becomes 0x0, and no Transfer event lands. The sender pays gas for nothing.

How do I compute the amount field from a human-readable number?

Multiply by 10^decimals.

What does a status of 0x0 in the receipt tell me?

The transaction reverted. Check the revert reason and re-estimate; usually the sender's balance did not cover the sum or one recipient hit a transfer limit.

Keep reading

Where do you want to go?

Every card below opens the live product with your own wallet — no signup, no custody.

Go straight to the tool

Everything above is one page away: smart money tracker bsc.

Wallet toolsStake and mineYour wallet signs every step. Nothing is custodied.