Examples
4. Cosmos Kit

Cosmos Kit

The wonderful people of Cosmology have made some fantastic components (opens in a new tab) that can be used with Nym, these include:

import React from 'react';
import { useChain } from '@cosmos-kit/react';
import { assets, chains } from 'chain-registry';
import { wallets } from '@cosmos-kit/keplr';
 
export const MyComponent = () => {
  const { wallet, address, connect, getOfflineSignerDirect } =
    useChain('nyx');
 
  React.useEffect(() => {
    connect();
  }, []);
 
  const sign = async () => {
    const doc = { ... };
    return getOfflineSignerDirect().signDirect(address, doc);
  };
 
  return (
    <div>
      <div>
        <strong>Connected to {wallet.prettyName}</strong>
      </div>
      <div>
        Address: <code>{address}</code>
      </div>
    </div>
  );
}