Skip to the article
Token Wire

News from across crypto

Wallet Connections, Signatures and Spending Rights

What does connecting your wallet to a website allow it to do? It shares your address and chain, but spending tokens still needs a transaction approval or permit.

The Token Wire Desk3 min read

Wallet Connections, Signatures and Spending Rights

Connecting your wallet shares your address and active blockchain with a site and lets it request signatures. The site cannot move your tokens just because you connected: spending needs a transaction approval or a signed permit.

A connection shares public details and opens wallet prompts

When a site requests accounts through EIP-1193, your wallet can expose the selected address. The site can use that public address to look up balances and activity on the active chain. It can also ask your wallet to switch chains, but your wallet shows that request for you to approve or reject.

On a lifi bridge app, connecting identifies the wallet before you choose a route. A one-chain swap uses the same kind of connection, while a LI.FI bridge aggregator can compare routes for moving assets between chains. Connecting alone does not approve token spending.

Say you choose a route that needs an ERC-20 token. The app may first ask you to approve that token for a named spender, then ask for a separate transaction to start the bridge. The first prompt grants spending rights; the second sends a transaction. A plain transaction acts once, while an approval can remain usable after you close the site.

An EIP-2612 permit is another way to grant token spending rights. You sign a message instead of sending an approval transaction first. Permit2 uses signed messages too. In both cases, read what token, spender, amount and time limit the prompt names; the resulting permission can outlast your session.

Two EIP-712 prompts can look alike but grant different rights because their contents differ. One might ask you to sign a login message. Another might contain Permit2 transfer details that authorize a token transfer. If the wallet shows unreadable data, do not assume it is a login: the signature’s contents determine what it authorizes.

Related

How do I revoke token approvals?

To revoke token approvals, remove the allowance in your wallet or through a token-approval tool. Clicking “disconnect” on the site often only ends its view of the session; it can leave the wallet’s site permission in place. To revoke that connection, remove the site from your wallet’s connected-sites list as well. Connection access and token spending approvals are separate permissions, so check both.

Is a WalletConnect session different from a browser-extension connection?

A WalletConnect session links a site to a wallet app, while a browser-extension connection links it to an extension. Both let the site request actions through the wallet, and both still require you to approve transactions or signatures in the wallet. Watch the details in each prompt, especially when a signature would grant spending rights.