Skip to the article
Crypto Docket

Crypto news and comparative analysis

After a Disconnect, Check Your Token Approval

Does disconnecting my wallet revoke token approval? No. The approval remains on-chain until you submit a separate transaction to change the allowance.

By Crypto Docket Newsroom#d54a9c4 min read

After a Disconnect, Check Your Token Approval

After you disconnect TronLink from SunSwap, the TRC-20 token approval remains on-chain because disconnecting ends the wallet connection but does not change the token contract’s allowance.

Those are two separate actions. Connecting a wallet lets a site request permission to interact with it; approving a token records an allowance for a spender address in the token’s contract. Closing a site or disconnecting TronLink ends the connection. It does not submit another transaction to the TRON blockchain.

A first swap on SunSwap is a useful case because its router address can be the spender that receives an approval. The question of what a first SunSwap swap permits comes down to that token permission: the connection lets you use the site, while the allowance can let the approved spender move tokens.

Disconnecting TronLink leaves an existing allowance in place

Disconnecting TronLink removes the site’s active wallet connection, while an earlier TRC-20 approval stays recorded on-chain. The token contract tracks the allowance separately from whether the site can currently see or interact with your wallet.

Say you approve a TRC-20 token for a SunSwap spender, then close the browser tab. The allowance does not disappear when the tab closes. The spender can use transferFrom to move tokens within the remaining allowance, provided the required on-chain conditions are met.

That is the key difference from signing out of an ordinary website. A site session can end without changing blockchain state. An approval changes blockchain state, and changing it takes another transaction from the wallet that controls the tokens.

The practical trade-off is straightforward: an allowance can make later token use more convenient, but it remains available to the spender until it is used or you change it. Disconnecting can stop the current website connection; it does not reduce that allowance.

Revoking changes one token-and-spender pair

A revoke transaction sets the allowance for a particular token and spender address to zero. Because allowances are recorded per token-and-spender pair, revoking one approval does not automatically revoke approvals for other tokens or other spender addresses.

For a constructed case, say you approved Token A for a SunSwap router, then later use a different router address. The first allowance belongs to Token A and the original spender address. The newer router may have a separate allowance for Token A, so inspect each spender you approved rather than assuming one revoke covers every route.

This pairing is useful when you are reviewing what remains after a swap. Start with the token you approved, identify the exact spender address shown for that approval, and compare it with the spender you intend to revoke. A token name alone is not enough to identify the allowance.

To revoke, submit an approval transaction for that token and spender with the allowance set to zero. Review the transaction in TronLink before signing, then wait for it to be confirmed on-chain. Until the transaction succeeds, treat the old allowance as still present.

Related

How to revoke a TRC-20 token approval

To revoke a TRC-20 token approval, use a wallet or token interface that lets you submit a new approval for the same token and spender with an amount of zero. Confirm that the spender address matches the one you mean to change, sign the transaction, and verify its success on TRONSCAN. A pending or failed transaction has not changed the allowance.

How to check a TRON token allowance

To check a TRON token allowance, look up the token and spender pair using a compatible wallet or allowance interface, then use TRONSCAN to inspect the relevant contract and transaction details. Match the spender address exactly; a similar label or a different router address may refer to a different allowance.

Disconnecting ends the wallet connection, while a TRC-20 approval remains because it is stored by the token contract for a specific spender. Check that token-and-spender pair, and submit and confirm a zero-allowance transaction when you want to revoke it.