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

On Chain Game Wallet: Cross-Chain Approvals: Two Chains, Two Permission Surfaces

Updated 2026-12-02 · YESswap

Short answer. A cross-chain approval is not one permission with two views. It is two independent writes on two ledgers, each with its own revocation path and its own proof of existence.
Best match for this articleWallet toolsBatch balance, batch transfer, approvals and wallet creation.

The Storage Slot Is the Permission, Not the Game

Knowing how on chain game wallet works is what separates a clean trade from a costly one. Reduced to mechanics, transferFrom is a read followed by a write. The token contract loads allowance[owner][spender], compares it to the requested amount, and reverts if the stored value is smaller. On success it subtracts the amount and emits. The YES token at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 follows this path exactly, moving 18-decimal units under the standard BEP-20 rules, so an allowance of one whole token is stored as a value with eighteen zeros behind it.

Verify it without a UI. Call allowance(owner, spender) on the token contract through eth_call at chainId 56, passing your address and the suspected spender. A non-zero return is a live grant. A zero return means the spender can no longer pull that token from you, whatever the logs say. Pin the call to a specific block with the block parameter rather than latest, so a reorg between your read and your revoke cannot flip the answer underneath you.

Two RPC endpoints can disagree on that read. A lagging node may still report a pre-revoke allowance, and a load-balanced provider may route your two calls to nodes at different heights. If the endpoints disagree, trust the one whose blockNumber is higher and whose block hash you can fetch with eth_getBlockByNumber. A missing receipt is a different failure: eth_getTransactionReceipt returning null means the transaction is pending or dropped, not that the revoke failed, so re-poll before re-sending and never double-send a revoke on a stale null.

Solana Has No Allowance Mapping to Edit

There is no global spender registry on Solana. Permission is expressed as delegation on a specific token account: the owner sets a delegate pubkey and a delegatedAmount, and that delegate may transfer up to that amount from that account and no other. The state sits in the token account itself, not in a mint-wide table, which is why you cannot query "who can spend my token" across all mints with one call.

Because the write targets account state rather than a mapping entry, revocation is a different operation entirely. You send a revoke instruction, or an approve with a zero delegated amount, signed by the owner, and the account's delegate field is cleared or reset. The proof is the transaction signature plus the resulting account state. Nothing resembling a BSC approve-to-zero exists as a shared primitive.

This asymmetry is why a single "revoke all" button cannot be honest across both chains. On BSC the tool edits a mapping entry inside a token contract. On Solana it replaces state on a token account you must first identify. A dashboard that shows one merged list is showing you two different data models stapled together.

Read the field yourself. Fetch the token account with getAccountInfo using jsonParsed encoding and inspect the delegate and delegatedAmount fields in the parsed SPL Token layout. A null delegate is a dead permission. A populated delegate with a non-zero delegatedAmount is live, regardless of how old the approving transaction is. Request the account at a named commitment level, because a confirmed read and a finalized read can differ by a slot during congestion, and revoke against the finalized view.

Logs Are History, State Reads Are Present Tense

An Approval event proves a grant happened at some block. It does not prove the grant still exists. A later transferFrom may have consumed part of the allowance, a later approve may have overwritten it, and a revoke may have zeroed it entirely. The event stream is an audit trail, and treating it as current state is the most common way people revoke the wrong spender while missing a live one.

Only the return value is authoritative. On BscScan, open the YES token contract at 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111, go to. Read Contract, and call allowance with your address and the candidate spender. Compare that number against the Approval events on the Events tab. Where the two disagree, the read wins, because the read is the value transferFrom will actually check on the next call.

The same asymmetry holds on Solana with a different artefact. An approve instruction buried in an old transaction does not tell you the delegate is still set, because a later revoke could have cleared it. Fetch the token account again and read delegate. Two chains, two artefacts: an Approval log plus an allowance() return on BSC, a transaction signature plus parsed account state on Solana.

Building Your Own Approval Table in Two Passes

Enumerate first, verify second. Pull every Approval log where your address is the indexed owner on BSC using eth_getLogs with the Approval topic, and pull every approve instruction touching your token accounts on Solana using getSignaturesForAddress on each account. That pass produces candidates, not conclusions. It will include spenders you revoked long ago. Range-bound the log query by block window, because most public BSC providers cap the span a single eth_getLogs call may cover and will reject an unbounded scan.

Then verify each candidate against live state. Batch eth_call allowance() for every distinct spender on BSC, and read delegatedAmount for every delegate on Solana. Anything returning zero is dead and drops off the list. What remains is a two-column table: spender, live amount. That table is the entire permission surface, and it is exactly what a revoke dashboard computes internally, which is why you can reproduce it and why its badge deserves no special trust.

A worked case makes the failure concrete. Suppose you granted an approval to a game's reward contract months ago, then a later claim consumed the full amount through transferFrom. The Approval log still sits there looking dangerous. Meanwhile a second contract you approved during a pool deposit still holds a live allowance you have forgotten. Revoke by log order and you clear the dead entry and leave the live one untouched. Revoke by state read and the order inverts correctly.

Decision rules you can apply today. If allowance() returns non-zero for a spender you no longer use, revoke it now rather than at wallet retirement. If a Solana delegate is set on a token account holding a balance you care about, treat it as live until getAccountInfo shows null. If two RPC endpoints disagree on the same allowance, act on the higher-block read and re-verify after confirmation. If a receipt is null past your normal wait, re-poll before re-sending.

Order of Operations When You Abandon a Wallet

Zero means zero. Revoking to a small residual instead of zero leaves a valid spender entry that remains callable, so the permission survives a revoke that looked successful in the interface. On BSC the revoke is approve(spender, 0) signed by you, producing a fresh Approval event with value zero. Confirm it by re-reading allowance() after the transaction confirms. On Solana the revoke is the revoke instruction on that specific token account, confirmed by getAccountInfo showing delegate null.

Sequence matters when both chains are involved. Clear the chain where the contract can still pull the larger value first, then the other, and verify each independently rather than assuming one confirmation covers both. A BSC revoke does nothing to a Solana delegate on the same game's token account, and the reverse is equally true. YESswap's own stance is that all signing happens in your wallet and the site never holds a key, which means the revoke transaction is yours to send and yours to verify. Confirm the address 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 on BscScan yourself before you call anything against it.

Cost and timing follow from gas, not from the tool. A BSC approve-to-zero is a single small state write, priced at the prevailing gas price times the gas the call consumes, paid in BNB; read the exact figure from the gasUsed field of the receipt rather than a dashboard estimate. A Solana revoke costs a base fee plus the priority fee you attach, paid in SOL, and lands within a slot or two of inclusion under normal conditions. Thin liquidity does not change either cost, but it changes the risk: a spender holding a live allowance against a token with little depth can move your balance with minimal slippage, so revoke those first. 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 approving a game contract on BSC move my tokens immediately?

Approval only writes a spender entry into the token contract's allowance mapping. Tokens move later, when the spender calls transferFrom.

Is a Solana delegate the same thing as a BSC allowance?

BSC stores a per-spender amount inside the token contract. Solana stores a delegate and delegatedAmount on one specific token account.

Can a revoke tool on one chain clear approvals on the other?

Each chain's permission state is edited only by a transaction on that chain. A BSC approve-to-zero leaves a Solana delegate untouched.

What does allowance() returning zero prove?

That the spender can no longer call transferFrom against your balance for that token, regardless of what past Approval logs show.

Why does my game wallet have approvals I don't remember granting?

Each game action is a separate contract requesting its own spender entry. The Approval log history is the record of when each grant was made.

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: defi points leaderboard.

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