Skip to content

Instantly share code, notes, and snippets.

@rrrkren
Last active October 23, 2022 00:12
Show Gist options
  • Save rrrkren/96276a861617c3ade48b0bd5e78bfd5e to your computer and use it in GitHub Desktop.
Save rrrkren/96276a861617c3ade48b0bd5e78bfd5e to your computer and use it in GitHub Desktop.
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