Algorand Opt In
Last updated
Last updated
On Algorand, every asset and defi application needs to be opted into before a user can interact with it. The only exception is Algorand's native asset, Algo. The opt in is a free transaction however, in order to opt in, the user must have at least one Algo in their wallet.
If the wallet holder does not have Algo, you need to inform them on how to obtain some. If they have 1 Algo, they should be all set to opt in.
If the wallet holder is attempting to interact with an asset you must pass the asset index. If they are attempting to interact with an Algo dapp, you must pass the app index.
If they are not opted in and they have Algo in their wallet, you can prepare the seed phrase (the master seed phrase, not the Algorand seed phrase) for transport and send that along with opt in details.
Asset valid address
0x9bf4001d307dfd62b26a2f1307ee0c0307632d59
Asset symbol, for instance: USDT, ETH, ALGO, etc, ...
USDT
Optional value only used when dealing with non native assets (aka tokens), it can be ERC_20, BEP_20, ALGO_STANDARD, ALGO_APP. If native asset, keep the field empty
ERC_20
Available options: Optional value only used when querying non native assets(tokens), it can be ERC_20, BEP_20, ALGO_STANDARD. If native asset, keep the field empty
ERC_20
The address of the account that is being checked for optin status on particular assets or apps
KFMRQHJVVONKOLXTEQ33CNUQZ4NBGU2EDCE25KNKVMRYPRKLKCNQDAWWTM
Returns list of assets opted into
No content
The address of the account that is being checked for optin status on particular assets or apps
KFMRQHJVVONKOLXTEQ33CNUQZ4NBGU2EDCE25KNKVMRYPRKLKCNQDAWWTM
No content
Message retrieved from the backend
717ea458b62a430cb37ced7c22ebec97
e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc
Signature generated after signing the provided data field
0xb44e88ff3c67de6e6548a6caf006bf6e1cb841119d0b9ea1b7e9b2d36a5e0ed42fd9f5e543243d1d73dc4b7800cc2026f74961f4edc769699678a316abb34e661c
The address of the account that wants to opt-in
GR45UFDRAHU6AZ7FPWNUS52BN7ETV2WBR2CXCY44AIRMUCSIVN7MLYOWBM
Transaction reference
a4dedb83-4d59-41ca-84b5-4b24a98878d8
Transaction memo or note
Hey I am trying opt-in
Seed encrypted asymmetrically by current user corresponding wallaby auth public key, to be decrypted inside the secure code execution environment
{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"}
Asset Index value is the asset id on the chain
14241387
Asset optin transaction was broad-casted successfully
Message retrieved from the backend
717ea458b62a430cb37ced7c22ebec97
e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc
Signature generated after signing the provided data field
0xb44e88ff3c67de6e6548a6caf006bf6e1cb841119d0b9ea1b7e9b2d36a5e0ed42fd9f5e543243d1d73dc4b7800cc2026f74961f4edc769699678a316abb34e661c
The address of the account that wants to opt-in
GR45UFDRAHU6AZ7FPWNUS52BN7ETV2WBR2CXCY44AIRMUCSIVN7MLYOWBM
Transaction reference
a4dedb83-4d59-41ca-84b5-4b24a98878d8
Transaction memo or note
Hey I am trying opt-in
Seed encrypted asymmetrically by current user corresponding wallaby auth public key, to be decrypted inside the secure code execution environment
{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"}
App Index value is the app id being used on chain
14241387
Application optin transaction was broad-casted successfully