#!/bin/bash NODE="http://65.108.128.139:2281" #ACCOUNT="test" ACCOUNT="Developer" CHAINID="anone-testnet-1" SLEEP_TIME="15s" CONTRACT="one1t03wt66r7xqszqfwyjhvklyynrk2tyqelhk30u9aga48ajy5kclq0xt3tt" # CHANGE TOKEN_ID HERE # $# is to check number of arguments TOKEN_ID="$1" QUERY="{\"approvals\": {\"token_id\": \"$TOKEN_ID\"}}" echo $(anoned query wasm contract-state smart "$CONTRACT" "$QUERY" --node "$NODE" --output json | jq --color-output -r )