ASA Opt-in
An example Asset
First, identify the index number of the asset to opt-in to.
USDC | Explorer | Asset Index |
Testnet | 10458941 | |
Mainnet | 31566704 |
Add a whitelist entry to your ORE ID application
Using the developer dashboard, navigate to the whitelist entry page under Settings.
Add an item to the Whitelisted Actions by clicking the ➕. An example entry is below.
Create the transaction body
The following transaction creates a zero amount asset transfer ("axfer"). Both, the sender and the recipient are the account that will be the signer of this transaction.
Oreid-js will take care of the final transaction formatting. Pass in the transactionBody from above. Along with the other values needed to prepare a transaction object.
Check out a working example
View the Code
https://github.com/TeamAikon/oreid/tree/master/examples/_algorand/react/asaOptIn
Run the sample app
Last updated