---
description: Approve our smart contract to use USDC
---

# 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="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FCtgOL2715JvU1G7daSZi%2Fsnowtrace.png?alt=media&#x26;token=c5935aa4-321e-44ed-a654-499851b656b6" 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="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2F3XkeFEDJEasS7zcOc8Dg%2Fsnowtrace2.png?alt=media&#x26;token=7df28e07-3ae8-421b-9652-06c9df61954c" alt=""><figcaption><p>Connect MetaMask</p></figcaption></figure>

<div align="center"><figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FL9E23WjEZ3dZ7Q8m8BnQ%2Fsnowtrace3.png?alt=media&#x26;token=f3b6d7bf-6ec8-48d0-a9a0-f6f24ea4ba30" alt=""><figcaption><p>Sign the message</p></figcaption></figure></div>

<div align="center"><figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FyL1yKbCqhNY6FwU3EvEu%2Fsnowtrace4.png?alt=media&#x26;token=92023a9a-6582-4c7a-9862-6adedaa79b4f" 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="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FdId12xKZ1BcnJmy4zlmX%2Fsnowtrace5.png?alt=media&#x26;token=e9d9cff5-8a0a-4151-a2ca-33eced229ea7" 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="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FWImBHNZhDkLVkFELJRyf%2Fsnowtrace7.png?alt=media&#x26;token=ef2c878e-4647-44da-99b8-b649abe8419e" alt=""><figcaption><p>In Remix:  Your deployed contract address </p></figcaption></figure></div>

<figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2F5EXjrEXMpUEqffkx77Cg%2Fsnowtrace6.png?alt=media&#x26;token=e8bc6a03-6476-45e5-a866-aff6a958c386" 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="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FLQY3VlFoU2p1Iqgxymjw%2Fsnowtrace11.png?alt=media&#x26;token=d7123621-5b35-4257-ac55-d89495a0e922" 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="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FDCncvnS4HQfnIOcG0ur6%2Fsnowtrace12.png?alt=media&#x26;token=51bb1cb9-c55f-414d-90c5-8f68b7e3e186" 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.
