Skip to main content

Keplr Config

Queries information on the Keplr config for the specified chain Id and UID.

query Keplr_config($chainId: String, $chainUid: String) {
chains {
keplr_config(chain_id: $chainId, chain_uid: $chainUid) {
chainID
chainName
rpc
rest
explorer_url
coinType
features
stakeCurrency {
coinDenom
coinMinimalDenom
coinDecimals
coinGeckoID
}
gasPriceStep {
low
average
high
}
feeCurrencies {
coinDenom
coinMinimalDenom
coinDecimals
coinGeckoID
gasPriceStep {
low
average
high
}
}
currencies {
coinDenom
coinMinimalDenom
coinDecimals
coinGeckoID
}
bech32Config {
bech32PrefixAccAddr
bech32PrefixAccPub
bech32PrefixValAddr
bech32PrefixValPub
bech32PrefixConsAddr
bech32PrefixConsPub
}
bip44 {
coinType
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Keplr_config($chainId: String, $chainUid: String) {\n chains {\n keplr_config(chain_id: $chainId, chain_uid: $chainUid) {\n chainID\n chainName\n rpc\n rest\n explorer_url\n coinType\n features\n stakeCurrency {\n coinDenom\n coinMinimalDenom\n coinDecimals\n coinGeckoID\n }\n gasPriceStep {\n low\n average\n high\n }\n feeCurrencies {\n coinDenom\n coinMinimalDenom\n coinDecimals\n coinGeckoID\n gasPriceStep {\n low\n average\n high\n }\n }\n currencies {\n coinDenom\n coinMinimalDenom\n coinDecimals\n coinGeckoID\n }\n bech32Config {\n bech32PrefixAccAddr\n bech32PrefixAccPub\n bech32PrefixValAddr\n bech32PrefixValPub\n bech32PrefixConsAddr\n bech32PrefixConsPub\n }\n bip44 {\n coinType\n }\n }\n }\n}","variables":{"chainId":"osmo-test-5"}}'

Open in Playground

Arguments

  • chainId (String): Optional Id of the chain config being used. In case it is not specified, the chain UID needs to be set.
  • chainUid (String): The unique Id for the chain. In case it is not specified, the chain Id needs to be set.

Return Fields

FieldTypeDescription
chainIDStringThe identifier of the chain.
chainNameStringThe name of the chain.
rpcStringThe RPC URL for the chain.
restStringThe REST URL for the chain.
coinTypeStringBIP44 coin type for address derivation.
featuresStringIndicate the features supported by this chain. Ex, cosmwasm, secretwasm ...
stakeCurrencyStakeCurrencyThe staking currency details.
gasPriceStepGasPriceStep`The gas price steps for the chain.
feeCurrencies[FeeCurrency]The fee currencies details.
currencies[Currencies]The currencies supported by the chain.
bech32ConfigBech32ConfigThe bech32 configuration for the chain.
bip44Bip44The bip44 configuration for the chain.
explorer_urlStringThe URL to the blockchain explorer for config

Nested Fields

StakeCurrency

FieldTypeDescription
coinDenomStringThe denomination of the coin.
coinMinimalDenomStringThe minimal denomination of the coin.
coinDecimalsIntThe number of decimal places of the coin.
coinGeckoIDStringThe CoinGecko ID for the coin.

GasPriceStep

FieldTypeDescription
lowFloatThe low gas price step.
averageFloatThe average gas price step.
highFloatThe high gas price step.

FeeCurrency

FieldTypeDescription
coinDenomStringThe denomination of the fee currency.
coinMinimalDenomStringThe minimal denomination of the fee currency.
coinDecimalsIntThe number of decimal places of the fee currency.
coinGeckoIDStringThe CoinGecko ID for the fee currency.
gasPriceStepGasPriceStepThe gas price steps for the fee currency.

Currencies

FieldTypeDescription
coinDenomStringThe denomination of the currency.
coinMinimalDenomStringThe minimal denomination of the currency.
coinDecimalsIntThe number of decimal places of the currency.
coinGeckoIDStringThe CoinGecko ID for the currency.

Bech32Config

FieldTypeDescription
bech32PrefixAccAddrStringThe bech32 prefix for account addresses.
bech32PrefixAccPubStringThe bech32 prefix for account public keys.
bech32PrefixValAddrStringThe bech32 prefix for validator addresses.
bech32PrefixValPubStringThe bech32 prefix for validator public keys.
bech32PrefixConsAddrStringThe bech32 prefix for consensus node addresses.
bech32PrefixConsPubStringThe bech32 prefix for consensus node public keys.

Bip44

FieldTypeDescription
coinTypeIntBIP44 coin type for address derivation.