Last active
October 23, 2022 00:12
-
-
Save rrrkren/96276a861617c3ade48b0bd5e78bfd5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script="import AllDay from 0xe4cf4bdc1751c65d | |
pub fun main(): UInt64 { return AllDay.totalSupply }" | |
curl 'https://rest-mainnet.onflow.org/v1/scripts?block_height=sealed' -s \ | |
-H 'content-type: application/json' \ | |
-d '{"script":"'`echo "$script" | base64`'"}' \ | |
|tr -d '"'|base64 --decode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment