Skip to main content

osmosisConfigs

This configuration allows you to set the configuration value for the Osmosis blockchain. It allows you to switch between the mainnet and the testnet configurations and to override the default endpoints and values used by cosmos-kit.

The osmosisConfigs type of the object is the following:

osmosisConfigs: {
ChainConfig {
id: string;
name: string;
rpc?: string;
rest?: string;
}
}

id

This is the chain id of the Osmosis chain you want to use.

NOTE: The chain-id in the following example is the one of the Osmosis testnet chain.

id:string;

name

This is the chain name of the Osmosis chain you want to use.

NOTE: The chain-name in the following example is the one of the Osmosis testnet chain.

name:string;

rpc

This is the Osmosis chain RPC url you want to override to the default endpoint used by cosmos-kit.

rpc?:string;

rest

This is the Osmosis chain LCD url you want to override to the default endpoint used by cosmos-kit.

rest?: string;

Useful Information

The following table resume the information for the Osmosis mainnet and testnet at the time of writing. To get deeper information, you can give a look at the cosmos/chain-registry repository.

ValueOsmosis Testnet (osmo-test-5)Osmosis Mainnet
Chain IDosmo-test-5osmosis-1
Chain Nameosmosistestnetosmosis
RPChttps://rpc.testnet.osmosis.zone:443https://rpc.osmosis.zone
LCDhttps://lcd.testnet.osmosis.zonehttps://lcd.osmosis.zone