0.0.1 • Published 1 year ago

cosmos-wallet-wires v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Cosmos Wallet Wires

This is a simple approach for a very simple use-case, grab the cosmos wallet address from the user. The whole idea with this implementation is to combine all the libs and glues in a single place so developers can just use it without having to worry about the EVM details and other blockchains implementations.

I'm hoping to work on it further and make it actually sign messages and broadcast them.

How to use

import { WalletConnector } from 'cosmos-wallet-wires';

// Connecting KEPLR
const connector = new WalletConnector(
    new KeplrWallet(window.keplr, window.getOfflineSigner)
);
const address = await connector.getAddress('cosmos');

// Connecting Metamask
const connector = new WalletConnector(
    new MetamaskWallet(window.ethereum)
);
const evmosEthChainId = '0x2329';
const address = await connector.getAddress('0x2329');
console.log(address); // Returns evmos... address

Current wallets

Current EVM blockchains

Chain NameNetwork IDEthereum IDURL
EVMOS90000x2329https://evmos.org/
Rebus10000x457https://rebuschain.com/