Tzscan Api pour Alphanet?
1 réponses
- votes
-
- 2019-02-06
Après avoirinspecté ALPHANET ALPHANETTEND ALPHANET'S de TZSCAN,j'ai étéen mesure d'extraire la demande de courbure suivante:
Curl 'https://api.alphanet.tzscan.io/v1/opération/oozxgbksbhdwmof1mfrxgwxdsjgvz4FMBWOJDVDYB3NZEJVSBH' -H 'Pragma: NO-Cache' -H 'Origine: https://alphaneet.tzcan.io' -H 'Accepter-coding:gzip,déflate,BR' -H 'Accepter-langue: EN-GB,en-US; q=0,9,fr; q=0,8' -H 'utilisateur-agent:mozilla/5.0 (Macintosh ; Intel Mac OS X 10_14_0) ApplewebKit/537.36 (KHTML,comme Gecko) Chrome/71.0.3578.98 Safari/537.36 '-H' Accepter: */* '-H' -H '- https://alphaneet.tzscan.io/oozxgksbhdwmof1mfmbwOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3FMBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDy Connexion '-H' Connexion: Keep-Alive '-h' Cache-Control: No-cache '--Comprimé
Bien sûr,vouspouvezessayer
/v3/fonctionnement
également,et celafonctionnera,même avec votre HASH OP,essayez ce qui suit:CURL 'https://api.alphanet.tzscan.io/v1/OPERATION/OOTC8MMZ7DG1RecXLPITAN3QEUB7UNFUH9R8KZXEFBZLPITAN3QEUB7UNFUH9R8KZXEFBZZIZYPBF' -H 'Pragma: NO-Cache' -H 'Origine: https://alphaneet.tzcan.io' -H 'Accepter-coding:gzip,déflate,BR' -H 'Accepter-langue: EN-GB,en-US; q=0,9,fr; q=0,8' -H 'utilisateur-agent:mozilla/5.0 (Macintosh ; Intel Mac OS X 10_14_0) ApplewebKit/537.36 (KHTML,comme Gecko) Chrome/71.0.3578.98 Safari/537.36 '-H' Accepter: */* '-H' -H '- https://alphaneet.tzscan.io/oozxgksbhdwmof1mfmbwOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3FMBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDYB3MBWOJDVDy Connexion '-H' Connexion: Keep-Alive '-h' Cache-Control: No-cache '--Comprimé
Jene saispas où
api6.tzscan.io
pointe sur,maisapi.alphaneet.tzcan.io
semblefonctionner avec alphanet. Vouspouvez égalementexécuter TZSCAN localement avec votrenœud Alphanet,si vousne contrôlezpas complètement.After inspecting TzScan's alphanet frontend, i've been able to extract the following curl request:
curl 'https://api.alphanet.tzscan.io/v1/operation/ooZXgbKsbHDwMof1mfRxgWXDsjGVZ4FMbwoJdVDyB3nzEAJVsBh' -H 'Pragma: no-cache' -H 'Origin: https://alphanet.tzscan.io' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' -H 'Accept: */*' -H 'Referer: https://alphanet.tzscan.io/ooZXgbKsbHDwMof1mfRxgWXDsjGVZ4FMbwoJdVDyB3nzEAJVsBh' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' --compressed
Of course you can try
/v3/operation
as well, and it will work, even with your op hash, try the following:curl 'https://api.alphanet.tzscan.io/v1/operation/ooTC8mMZ7dG1ReCXLPiTAN3qEUB7uNFuh9R8KZXEFbZZiZcypBf' -H 'Pragma: no-cache' -H 'Origin: https://alphanet.tzscan.io' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' -H 'Accept: */*' -H 'Referer: https://alphanet.tzscan.io/ooZXgbKsbHDwMof1mfRxgWXDsjGVZ4FMbwoJdVDyB3nzEAJVsBh' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' --compressed
I'm not sure where
api6.tzscan.io
is pointing at, butapi.alphanet.tzscan.io
seems to work with alphanet. Alternatively you can run TzScan locally with your Alphanet node, if you wan't to fully in control.-
Merci,j'aiessayé https://api.alphaneet.tzscan.io/v3/opération/ootc8mmmz7dg1recxlpitan3qeub7fuh9r8kzxefbzizzcPBFet ça afonctionné!Thanks, I've tried https://api.alphanet.tzscan.io/v3/operation/ooTC8mMZ7dG1ReCXLPiTAN3qEUB7uNFuh9R8KZXEFbZZiZcypBf and it worked!
- 1
- 2019-02-06
- Ezy
fait le Tzscan API Support Alphanet Operations?
Parexemple, Cette requêteen Mainnet fonctionne.Maiscette requêtepourAlphaNetnefonctionnepasmême si leophash
ooTC8mMZ7dG1ReCXLPiTAN3qEUB7uNFuh9R8KZXEFbZZiZcypBf
est valable dans Alphanet .