Skip to main content

Allowed Denoms

Queries the available denominations for the specified token Id found on the specified chain.

query Allowed_denoms($chainUid: String!, $tokenId: String) {
factory(chain_uid: $chainUid) {
allowed_denoms(token_id: $tokenId) {
... on NativeTokenType {
native {
denom
}
}
... on SmartTokenType {
smart {
contract_address
}
}
... on VoucherTokenType {
voucher
}
}
}
}

Example​

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Allowed_denoms($chainUid: String!, $tokenId: String) {\n  factory(chain_uid: $chainUid) {\n    allowed_denoms(token_id: $tokenId) {\n      ... on NativeTokenType {\n        native {\n          denom\n        }\n      }\n      ... on SmartTokenType {\n        smart {\n          contract_address\n        }\n      }\n      ... on VoucherTokenType {\n        voucher\n      }\n    }\n  }\n}","variables":{"chainUid":"injective","tokenId":"usdt"}}'

Open in Playground

Arguments​

ArgumentTypeDescription
chainUidString!The unique identifier of the chain.
tokenIdStringThe ID of the token to get all available denominations for.

Return Fields​

FieldTypeDescription
nativeNativeDetails of the native tokens (Denoms).
smartSmartDetails of the CW20 tokens (Contract addresses).
voucherStringDetails about the Voucher token.

Native​

FieldTypeDescription
denomStringThe denomination of the native token.

Smart​

FieldTypeDescription
contractAddressStringThe contract address of the smart token.