Accounts can't opt in to assets I created

I created an asset and it seems like I can only opt in one of the accounts I created for testing. The opt in transaction does not seem to go through for any other accounts I created, even though the return says that the transaction was confirmed. I cannot transfer the asset to any of these accounts for that reason.

When I created the asset I set the decimal parameter to 2. I do not fully understand how the decimal parameter works, I want this to be a fungible asset that i can send to any account I want.

Created asset looks like this:

txn = AssetConfigTxn(
sender=accounts[1][‘pk’],
sp=params,
total=1000000000,
default_frozen=False,
unit_name=“MYCOIN”,
asset_name=“mine”,
manager=accounts[2][‘pk’],
reserve=accounts[2][‘pk’],
freeze=accounts[2][‘pk’],
clawback=accounts[2][‘pk’],
url=“https://something.com/”,
decimals=2)

1 Like

If you specified 2 decimals your total amount is 10000000.00
Has your node fully synched. Check your transaction IDs on algoexplorer or goalseeker.

I figured out the error, thanks. I misunderstood how the code to opt in accounts worked. I thought the sender was always the account that created the asset which was incorrect. Instead its a transaction that the account opting in sends to their self.

1 Like

That is correct. Glad you got it working.