알파넷 용 TzScan API?
1 대답
- 투표
-
- 2019-02-06
TzScan의 알파넷 프런트 엔드를 검사 한 후 다음과 같은 curl 요청을 추출 할 수있었습니다.
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
물론
/v3/operation
도 시도 할 수 있으며 작업 해시에서도 작동합니다. 다음을 시도해보세요.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
api6.tzscan.io
가 어디를 가리키고 있는지 잘 모르겠지만api.alphanet.tzscan.io
가 알파넷에서 작동하는 것 같습니다. 또는 완전히 제어하지 않으려면 Alphanet 노드로 로컬에서 TzScan을 실행할 수 있습니다.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.-
감사합니다. https://api.alphanet.tzscan.io/v3/operation/ooTC8mMZ7dG1ReCXLPiTAN3qEUB7uNFuh9R8KZXEFbZZiZcypBf를 시도했는데 작동했습니다!Thanks, I've tried https://api.alphanet.tzscan.io/v3/operation/ooTC8mMZ7dG1ReCXLPiTAN3qEUB7uNFuh9R8KZXEFbZZiZcypBf and it worked!
- 1
- 2019-02-06
- Ezy
TzScan API 가 알파넷 작업을 지원하나요?
예를 들어 메인 넷의이 쿼리 가 작동합니다.그러나 알파넷에 대한이 쿼리 는 ophash
ECXLPiTuhAN3ZpKUBZ7mNFZ7dG1ReCXLPiZZiZpKUBFcode> 알파넷에서 유효합니다 .