Cosmos Wallet Integration

Getting Started

To develop Cosmos wallet functionality for Cactus Link, firstly install Cactus Link.

The Cosmos wallet integration is compatible with the Keplr wallet API.

Connecting to the Wallet

// Enable for a single chain
await window.leap.enable("cosmoshub-4");

// Enable for multiple chains at once
await window.leap.enable(["cosmoshub-4", "osmo-test-5"]);

Supported Methods

Method Description
enable Authorize the dApp for one or more chain IDs
getKey Get account public key and address info
signAmino Sign a transaction in Amino format
signDirect Sign a transaction in Direct (Protobuf) format
signArbitrary Sign arbitrary data for authentication
sendTx Broadcast a signed transaction
isConnected Check if the wallet is connected
disconnect Disconnect the wallet
getSupportChains Get the list of supported chains
verifyArbitrary Verify an arbitrary signature (not yet supported)

Chain Denomination Reference

Each chain has its own denomination info required for fee calculations:

{
  "coinDenom": "OSMO",
  "coinMinimalDenom": "uosmo",
  "coinDecimals": 6
}

Fees in signDoc are denominated in minimal units (e.g. uosmo). Convert to base units when displaying.

Test Site

https://polkadot.js.org/apps/#/staking-async/actions

Reference

https://docs.keplr.app/api

Copyright © 2026 Cactus Custody all right reserved,powered by GitbookUpdated: 30-Jun-2026 02:04:30

results matching ""

    No results matching ""

    results matching ""

      No results matching ""