# Approve USDC

You need to now approve the smart contract you just deployed to spend the USDC that belongs to you! This is how you authorize your smart contract to transfer your USDC to another chain.\
\
Go to the USDC contract on Avalanche Fuji ([USD//C | Token Tracker - Snowtrace Testnet](https://testnet.snowtrace.io/token/0x5425890298aed601595a70ab815c96711a31bc65)) and first click the “Sign In” button at the top right to connect your MetaMask wallet.&#x20;

<figure><img src="/files/ozGyQZ2KrxQd47GpFjbY" alt=""><figcaption><p>Login to Snowtrace</p></figcaption></figure>

Click “Metamask” on the far left and then it will ask you to sign a message to verify your account. Click the “Sign message” button and MetaMask will pop-up asking you a “Sign-in request” for Snowtrace Explorer. Click the “Sign-in” button on the bottom right.

<figure><img src="/files/Pk9FUkaWIzqzNkSeRxCI" alt=""><figcaption><p>Connect MetaMask</p></figcaption></figure>

<div align="center"><figure><img src="/files/W0e9mGQOjAKrxq67jVUU" alt=""><figcaption><p>Sign the message</p></figcaption></figure></div>

<div align="center"><figure><img src="/files/wWVgDnwAzvUsTiyT1tcX" alt=""><figcaption><p>Sign-In to Snowtrace</p></figcaption></figure></div>

Once signed in, click the “Contract” tab of the USDC contract:

<figure><img src="/files/iPiuxaDtVSwYG3TN3r8G" alt=""><figcaption><p>Click the Contract tab</p></figcaption></figure>

In order to approve USDC for our `TransferUSDCBasic.sol` contract, you need to do the following steps:

1. Click on “Write as Proxy” button
2. Click on the `approve` function and it will expand to the inputs
3. Copy your `TransferUSDCBasic.sol` contract address from Remix and paste into `spender (address)`&#x20;
4. Enter `100000` for the `value (uint256)`, which is `0.1` USDC
5. Click on the “Write” button

<div align="left"><figure><img src="/files/72dRsW1VPj3msKopCJsJ" alt=""><figcaption><p>In Remix:  Your deployed contract address </p></figcaption></figure></div>

<figure><img src="/files/VkjQdPBsZf8BuHrKgQzq" alt=""><figcaption><p>In the block explorer:  Write as Proxy tab and the inputs for the approve function</p></figcaption></figure>

MetaMask will pop-up with a “Spending cap request for your USDC”, and since you entered in `100000` on the previous step, it will fill in `0.1` (because USDC token has only 6 decimal places) so all you need to do is click the “Next” button at the bottom right:

<div align="left"><figure><img src="/files/IlunBBxjrWohiUVbAqhn" alt=""><figcaption><p>Click "Next"</p></figcaption></figure></div>

After that, click the “Approve” button to finalize this step:

<div align="left"><figure><img src="/files/ngoGp2XhS1yhsw5PJmuS" alt=""><figcaption><p>Approve the request</p></figcaption></figure></div>

That's it for this step! Next you will fund your newly deployed contract with LINK tokens.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cll-devrel.gitbook.io/bootcamp-2024/4.-cross-chain-tokens-with-chainlink-ccip/approve-usdc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
