I’m having trouble getting the smart contract results when I create new NFT or SFT tokens. The API endpoint that should return transaction details with results is not showing the smartContractResults field anymore. This worked fine before but something seems to have changed. I need to get the nonce value of the newly created tokens but without the smart contract results I can’t extract this information. Has anyone else run into this issue? What’s the best way to retrieve the token nonce after minting?
Oh interesting - you might be polling too fast after sending the transaction. I’ve seen smartContractResults take a few seconds to show up, especially when the network’s busy.
What’s your setup? Using websockets or just polling? Which network are you on? I had similar issues on devnet where responses were all over the place.
Check the transaction status before grabbing results - sometimes it’s still pending even with a response. Adding a 2-3 second delay after sending helped me a lot.
Are you minting single tokens or batches? Response structure changes based on how many you’re creating. Tell me more about your use case and I can help troubleshoot!
Had the same issue two months back - turned out to be API versioning changes. The smartContractResults field got moved to a different endpoint structure on some networks. I fixed it by querying the transaction hash directly through the gateway API with withResults=true. Also double-check you’re hitting the right network endpoint - testnet and mainnet can have different response formats. Another option: listen for token creation events in the transaction logs instead of relying on smartContractResults. The TokenIdentifier event usually has the nonce info you’re looking for.
Check if you’re using the latest SDK version - they recently changed how results are returned. I had the same issue and switching to /transactions/{hash}/results fixed it. Also don’t cache old responses, that confused me for hours lol. The nonce should be in the logs section even if smartContractResults is missing.