Skip to the article

Crypto markets, protocols and policy

Does connecting a wallet let a website spend tokens?

Does connecting a wallet give a website permission to spend tokens? Usually no: spending needs a separate ERC-20 allowance or supported permit signature for a spender contract.

The CryptoWeek Editors4 min read

Does connecting a wallet let a website spend tokens?

Connecting a wallet to a website usually does not give it permission to spend your tokens; that requires a separate ERC-20 allowance or a supported permit signature.

Say you connect your wallet to a swap dapp to trade USDC. The connection shares your public address and lets the dapp make requests through your wallet. It does not, by itself, create an onchain allowance for USDC.

An allowance is a separate permission recorded by the token contract. If you want to understand how a connection prompt differs from a revoke transaction, our article on revokecash connection and revoke prompts explains what each changes. On revokecash, connecting lets you review approvals; revoking one requires a separate transaction.

A connection does not create a USDC allowance

A wallet connection gives the dapp access to the selected public address and a channel for requesting wallet actions, while an ERC-20 allowance gives a named spender contract authority over a token amount.

In the USDC swap, the dapp may ask your wallet to approve USDC for its spender contract. If you confirm that approval transaction, the USDC contract records the allowance. The spender can then call transferFrom to move USDC from your address, up to the approved amount, subject to the allowance and the token’s rules.

Compare two wallets connected to the same swap dapp. In the first, the user has only connected: no allowance has been set, so the spender cannot use an ERC-20 allowance to transfer that user’s USDC. In the second, the user has also approved the spender contract: it can call transferFrom within the approved limit. The deciding factor is the allowance, not whether the wallet remains connected to the website.

Wallet prompts can look similar in sequence, but they request different actions. A connection prompt shares the selected account with the dapp. An approval transaction changes the token contract’s onchain allowance. Read the prompt’s action and token details before confirming; connecting alone is not the approval.

A permit can set an allowance without an approve transaction

An EIP-2612 permit is a signed message that can set an ERC-20 allowance without a separate onchain approve transaction, if the token supports the standard and the permit is valid.

For the same USDC swap, a dapp might ask you to sign a permit instead of sending an approval transaction. If valid, the signature authorizes the specified spender and amount; the permit can then be submitted to the token contract to set the allowance. This is still a separate authorization from connecting, even though it does not require you to submit an approve transaction yourself.

Before signing, inspect the token, spender contract, amount, and expiry shown in the wallet. A permit signature can authorize token spending, so treat it as an allowance decision rather than a routine connection check. Token support and permit validity determine whether the signature can set the allowance.

Related

Can a website spend tokens after I disconnect my wallet?

Disconnecting does not erase an existing ERC-20 allowance. If you approved the swap dapp’s spender contract, that permission remains recorded by the token contract until it is changed or expires under the token’s rules. The spender’s ability to use transferFrom depends on the allowance, not on an active website session.

How can I tell if a wallet signature is a token permit?

A permit is a signed message that specifies an allowance, so look for the token, spender, amount, and expiry in the wallet’s signing details. If the wallet does not show enough information to identify what the message authorizes, do not assume it is only a connection check. You can review existing token permissions by wallet and chain with revokecash, then identify allowances you no longer need.

For the USDC swap, connect when you want the dapp to interact with your selected address; approve or sign a permit only when you intend to authorize its spender contract. Review the prompt before confirming, and review existing allowances when you want to check which permissions remain.