#Integrate USDC on contract

17 messages · Page 1 of 1 (latest)

hot lance
#

I am trying to use USDC stable coin to mint an equivalent native token of my app. User needs to transfer USDC to receive an equivalent native token. One of the contracts 'A' accepts USDC token. And later on it transfers to a 'user address' after certain tasks are done.
Can these conditions be achieved from a 'transfer' function like of other soroban token?

Is there any examples of USDC integration in soroban contracts?

quick shoal
#

USDC token in soroban should work as any wrapped stellar asset.

hot lance
#

Can you provide me USDC testnet token address and faucet fot that.

quick shoal
hot lance
karmic pond
hot lance
#

I went through it . What I found is a wallet address holding USDC token. I was looking for the contract address but couldn’t find.
My use case is, my contract will accept USDC token . In order to do so I will set the USDC token address on my contract and perform operations on it.

hot lance
karmic pond
hot lance
#

So if I want to integrate it into soroban contract what would be the process.

#

Has anyone done it before?

karmic pond
# hot lance So if I want to integrate it into soroban contract what would be the process.

Use soroban-cli to create (or get) a wrapped version of USDC:G--- (Circle issuer). This can be on either testnet or futurenet, but you probably want testnet. This gives you the contract id. This is what you need /want to interact with.
Keep in mind you'll need to add a trustline to this asset prior to using it (Classic Stellar), as it is, indeed, a Classic Stellar Asset.

hot lance
#

Yeah for now I want in testnet. As Soroban lunches in mainnet same can be done to integrate USDC in mainet right?

hot lance
karmic pond
hot lance
#

Sure . Thanks

hot lance