I’m implementing USDT payments using your API (Blockchain API | Bitcoin API - Blockonomics), but I’m facing an issue with the testnet attribute. Despite setting testnet=“0” to connect to the Ethereum mainnet, the implementation only connects to the Sepolia testnet. I expect it to switch to mainnet when testnet is set to 0.
Could you advise if there’s a known issue, the correct configuration for mainnet, or a workaround? I’m using the https://www.blockonomics.co/js/web3-payment.js script in a Phoenix LiveView application.
Hi @richard , please accept apologies for delay in response. Were you able to get this resolved?
It should work with mainnet as well. Please try explicitly setting the attribute as a number rather than a string.
Hi @dankit , thank you for your reply. I let go the implementation after the few days of try outs as I could not solve this issue. Back then I tried to set number as attribute without luck. Once I’ll try again (later this year) I’ll let you know the result.