2.4.3 • Published 1 year ago

@tailwindzone/connect v2.4.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

@tailwindzone/connect

Tailwind Connect is a wallet connection library for Tailwind wallet.

See full developer documentation at developer.tailwind.zone.

Getting Started

# install dependencies
pnpm install
# Typescript transpile 
pnpm build

Using the library

You can use Tailwind with its own interface or existing Keplr-compatible interface.

import { connect } from "@tailwindzone/connect"

// because CosmJS is the standard for client-side   
const wallet = await connect();
const signer = wallet.getOfflineSigner("osmosis-1", {
  fundsRequired: [{
    token: { denom: "uosmo", chain: "osmosis-1" },
    amount: "1000000",
  }],
  maxGas: 200_000,
  signMode: "direct"
});

// Sign tranasction
const [account] = await signer.getAccounts();
const client = await SigningStargateClient.connectWithSigner(
  OSMO_RPC_URL,
  signer
);
const res = await client.signAndBroadcast(
  account.address,
  [msg],
  fee,
  memo
);
2.3.0

1 year ago

2.4.1

1 year ago

2.4.0

1 year ago

2.3.1

1 year ago

2.4.3

1 year ago

2.4.2

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago