Algorand Only APIs
Last updated
Last updated
The Algorand opt in is a requirement from the Algorand blockchain to interact with any Algorand Standard Asset or Algorand Application as described by the algorand foundation here:
The only asset that does not require opt in is Algo. They implemented this feature so that a wallet holder cannot be sent unwanted assets or prompted to interact with a dapp without explicit permission.
For developers, this means that you will need to
manage opt in state of the asset/application. We give you the ability to check opt in status of both an Algroand dapp and an asset with APIs referenced below.
opt in the wallet holder before they do any other transaction with an Algorand asset. We give you transaction APIs for both dapp and asset opt in below.
Please note the wallet issuing the opt in must have 1 Algo associated with the address doing the opt in. We do not currently provide the ability to purchase Algo so you will need to direct wallet holders to an onramp provider such as Coinbase or preemptively send Algo to them.
We do not currently provide opt out APIs, however, if you would like to request this feature be added, please reach out to us.
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