Skip to the article
Crypto Docket

Crypto news and comparative analysis

Wallet Disconnection and TRC-20 Allowances

Does disconnecting a wallet revoke token approvals? No: an existing TRC-20 allowance stays on-chain until it is spent, changed, or revoked in a transaction.

By Crypto Docket Newsroom#aa074a4 min read

Wallet Disconnection and TRC-20 Allowances

No. Disconnecting a wallet does not revoke an existing TRC-20 token approval; the allowance remains on-chain until it is spent, changed, or revoked by a transaction.

Disconnecting changes the site’s access to your wallet session. It does not change the allowance recorded by the token contract. That difference matters because the approved spender may still be able to use the allowance even while your wallet is disconnected.

Disconnecting ends the site session, not the allowance

Disconnecting TronLink ends its active connection to the site, but leaves the token contract’s state unchanged. Before disconnecting, a site may be able to request wallet actions, such as asking you to approve a token spend. After disconnecting, that session ends; the action you already signed remains recorded on TRON.

A TRC-20 approval sets an allowance for an owner address and a spender address. The allowance is the amount of that token the spender is authorized to use. The spender can call transferFrom within the approved allowance without asking the owner to sign each transfer.

So the wallet connection and the allowance are separate. Connecting gives a site a way to interact with your wallet; approving sets permission in the token contract. Disconnecting removes the active connection, not the on-chain permission.

That distinction matters when a swap site was the spender. A first swap may involve an approval that lets a spender use a specified amount of a token. For context, our article on what a first SunSwap swap permits explains what that initial swap authorizes; SunSwap is the setting for the example, while the allowance itself is recorded by the token contract.

A SunSwap approval remains until an on-chain change

An allowance granted for a SunSwap swap remains available after you disconnect TronLink, unless it has been spent, changed, or revoked through an on-chain transaction. Disconnecting alone does not submit such a transaction.

Consider an illustrative case: you approve a TRC-20 token for a spender while preparing a swap, then disconnect your wallet from the site. Before the disconnect, the contract has the allowance you approved. After it, the site no longer has that active wallet session, but the contract still has the same allowance. The spender may use it within its limit without reconnecting your wallet or collecting a new signature for each transfer.

This is the key trade-off: disconnecting closes the current session, which stops that site from making new wallet requests through it. But it does not undo an earlier approval. To remove an allowance you no longer want, use a trusted approval-management route to submit an on-chain change or revocation, then confirm that the transaction succeeded. That transaction changes the token contract’s record; closing a browser tab or disconnecting the wallet does not.

Related questions

Why does revoking a TRC-20 approval require a wallet signature?

Revoking a TRC-20 approval requires a wallet signature because changing the allowance is an on-chain token transaction authorized by the owner. A disconnect is not a signed transaction and cannot make that change. Review the transaction details and confirm its result on-chain so you know whether the allowance was updated.

Can I review a TRC-20 approval from a different wallet app?

Yes. You can review an allowance from another app if it can inspect the relevant TRC-20 contract and owner address. The app used to view it does not determine the on-chain allowance. To change or revoke it, however, the transaction must be authorized by the wallet that controls the owner address.

Revisit the answer if you later approve the spender again, spend some of the allowance, or submit a transaction that changes it: the recorded amount may then differ. If the only change is disconnecting TronLink from the site, the existing allowance remains as it was.