why is Python requests not working as intended
why is Python requests not working as intended Question: I want to get some info from an JSON RPC API endpoint. the equivalent curl command is this: curl ‘https://api.mainnet-beta.solana.com’ -X POST -H "Content-Type: application/json" -d ‘ { "jsonrpc": "2.0", "id": 1, "method": "getTokenAccountBalance", "params": [ "FYj69uxq52dee8AyZbRyNgkGbhJdrPT6eqMhosJwaTXB" ] } ‘ it works and response is: {"jsonrpc":"2.0","result":{"context":{"apiVersion":"1.13.5","slot":176510490},"value":{"amount":"68662508944","decimals":5,"uiAmount":686625.08944,"uiAmountString":"686625.08944"}},"id":1} …