Closed danmurphy1217 closed 3 years ago
Hi @danmurphy1217, I don't see any issues with your code. The only reason you would get an error of asset transaction not supported
would be if the network you are sending your asset creation transaction to does not support assets. Are you using a private network, and if so how did you create it?
@jasonpaulos I followed this tutorial pretty closely and wrote a script here that mirrors the tutorial.
The steps I took to run a node on MainNet
were:
update.sh
file, make it executable, and run itcd
into the node
directory and run ./goal node start -d $ALGORAND_DATA
Then, for the TestNet
I ran:
cd
into the node
directorymkdir testnetdata
cp genesisfiles/testnet/genesis.json testnetdata
./goal node start -d testnetdata
Is there any way to check if it is running on a private network? cat testnetdata/algod.net
is 127.0.0.1:XXXX
@danmurphy1217 thanks for the info! When you get this issue are you connecting to your TestNet node? Could you let me know the output of goal node status
for the node you're using?
Yes, I should be connecting to the TestNet node because I am using the testnetdata
algod.token and algod.net values when I instantiate the algod.AlgodClient
(line 99 in pos_etc/main.py).
The output of goal node status -d testnetdata
is:
Last committed block: 636047
Time since last block: 49237.0s
Sync Time: 245.2s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/5615adc36bad610c7f165fa2967f4ecfa75125f0
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/5615adc36bad610c7f165fa2967f4ecfa75125f0
Round for next consensus protocol: 636048
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Genesis hash: SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=
@danmurphy1217 thanks! I believe the issue is because your node has not caught up to the rest of TestNet yet. According to that status, your last committed block is 636047, but as of now TestNet is on block 13015459. Because your node is still working through past transactions, it's actually still using an old protocol version that doesn't support assets yet. You can see this by going to the consensus protocol link for your node and seeing it's still on the first commit for that repo.
Eventually your node will catch up to rest of the network and you should be able to use assets. However this may take a while, so you might want to use fast catch up to accelerate the process. If you do this, your node will get a recent snapshot of TestNet and it will only take a few seconds or minutes for it to collect the remaining blocks.
I'm going to close this because it's not specific to the Python SDK anymore, but feel free to continue responding here, or open another issue if there's a different problem related to this SDK.
thanks so much @jasonpaulos, that did the trick 🙌
Hello, I am trying to create a coin on top of the Algorand Blockchain. I generated two new accounts (creator and receiver) and am trying to create the Algorand Standard Asset by running the following code:
The error occurs during
client.send_transaction()
, and the full stack trace is this:It seems like this is an issue between the two addresses (and their permissions/settings) and not within the code itself. I was following along with this tutorial and all of the coin-related code is publically available here. Let me know if there is any other information you need.