wregsgsb3 Posted January 21, 2023 #1 Posted January 21, 2023 Why is cf_clearance missing in my cookies (F12 -> Network..) so there is no cf_clearance but I thought it has to be there because of cloudflare?
wregsgsb3 Posted January 21, 2023 Author #2 Posted January 21, 2023 Or is it possible that I get this worth only as verification lvl 2?
Blackshires Posted January 27, 2023 #3 Posted January 27, 2023 cf_cleareance is not missing in your cookies, they simply delete it. You don't need it to access Stake via API, you should have a cookie named "__cf_bm", this is the only one required (F12->Application->cookies or F12->Network). The 2 headers you need to copy too are "x-access-token" and 'user-agent", you don't need more. You can now use your favoriste method to access via api ( in my case requests with python). To get the query you have to send, it's the same way, F12->Network and filter by "graphql". To see if it work the best way is to try to retrieve your balance with the api, go on home page, clear the network tab, and then refresh the page, filter by "graphql", and the first request is the balance query, you can just copy it, by clicking on the graphql line, and then "payload".
Featured Comment
Archived
This topic is now archived and is closed to further replies.