# Inspect a wallet request before approval

[Read this guide on KeySigner](https://keysigner.io/integrations/guides/inspect-a-wallet-request-before-approval/)

Decode a sample order or transaction to see which assets, addresses and contract actions your wallet is being asked to approve.

## Before you start

- Use a fictional order, a disposable test wallet, or calldata from a documented example. Compare the decoded data with the intended chain, contract and action. Keep real balances out of the rehearsal.
- Use the provider’s official contract definitions for the applicable network and version. You can complete the comparison without publishing an order or submitting a transaction.

## Data and access

- **Shared or checked**. The sample request shows the chain, addresses, assets and data the wallet would approve. What reaches a site or network depends on the actual action.
- **Check separately**. Review whether the request is a message, an order or a transaction. Check any standing allowance to the same spender separately.

## 1. OpenSea

For a Seaport order, inspect the offer and consideration arrays. Compare the items, token contracts, identifiers, amounts, time window and consideration recipients with the expected order. If the order uses a conduit, check which conduit would handle transfers and review any separate approval.

**Check.** The order identifies the intended offered asset and consideration recipients. Record any conduit authorization separately.

## 2. Lido

For a WithdrawalQueueERC721 request, check whether the call uses stETH or wstETH and compare the amounts and request owner with the expected values. The owner receives the withdrawal request NFT. Inspect a claim separately, checking the request ID and the recipient for the particular claim method.

**Check.** The decoded call shows the expected asset, amount and request owner, or the expected claim ID and recipient for a claim.

## 3. Alchemy

For a disposable EVM transaction, preview the call with eth_call or use debug_traceCall on a chain and endpoint that support it. Supply the intended sender, target, value and calldata. Review a revert or the trace’s call targets at the recorded block. The preview uses that state and does not submit the transaction.

**Check.** Record the block and the returned data, revert or trace. Compare its call target and value with the intended request.

## 4. Compare with the intended action

Write down the contract, action, assets and recipient alongside the decoded request. Change one field in the fictional example and check that your review catches it before any signature or transaction is sent.

**Check.** Your comparison identifies the changed field before any approval. Record which app or verifier showed it.

## Check your result

The original request matches the intended action and the altered field is visible in your review. Record whether you inspected an order, a contract call or a read-only simulation since each carries different information.

[How to verify your setup](https://keysigner.io/integrations/verify-a-setup/)

## If you get stuck

### The wallet displays a generic contract interaction

Decode the calldata or typed data against the official contract or order format. Compare the target and chain first. If you simulate a call, check which block and sender the simulation used before interpreting a result.

## Tools in this guide

- [OpenSea](https://keysigner.io/integrations/opensea/)
  - [Check which wallets OpenSea supports](https://support.opensea.io/en/articles/8867089-what-crypto-wallets-can-i-use-with-opensea)
- [Lido](https://keysigner.io/integrations/lido/)
  - [Compare staking tokens and supported operations](https://docs.lido.fi/guides/lido-tokens-integration-guide/)
- [Alchemy](https://keysigner.io/integrations/alchemy/)
  - [Review credential and access best practices](https://www.alchemy.com/docs/best-practices-when-using-alchemy)

## Setup instructions

- [Read OpenSea’s Seaport order model](https://docs.opensea.io/docs/seaport-models)
- [Check Lido withdrawal request and claim parameters](https://docs.lido.fi/contracts/withdrawal-queue-erc721/)
- [Review Alchemy’s read-only trace methods](https://www.alchemy.com/docs/reference/trace_call-vs-debug_tracecall)
- [Check a token’s spending allowance](https://keysigner.io/integrations/guides/inspect-a-test-token-allowance/)
- [Rehearse a wallet network check](https://keysigner.io/integrations/guides/sign-an-ethereum-test-message/)
- [Connect KeySigner to an Alchemy test network](https://keysigner.io/integrations/guides/connect-keysigner-to-an-alchemy-test-network/)

[More guides for this task](https://keysigner.io/integrations/tasks/check-key-approval/)
