createUnionClient (src/mod.ts)

union · typescript-sdk/src/mod.ts · typescript · Apache-2.0
integration

Creates Union SDK client for EVM, Cosmos, or Aptos chains.

// Source: https://github.com/unionlabs/union | License: Apache-2.0 | Copyright 2024 Union.fi Labs, Inc
// Provided via justclaw.it.com; keep this notice with the code.
export {
  bech32AddressToHex,
  bech32ToBech32Address,
  bech32ToBytes,
  bytesToBech32Address,
  bytesToHex,
  hexAddressToBech32,
  hexToBytes,
} from "./convert.ts"
export type * from "./types.ts"
import {
  type AptosBrowserWallet,
  type AptosChainId,
  aptosChainId,
  type AptosClientParameters,
  createAptosClient,
} from "./aptos/client.ts"
import {
  type CosmosChainId,
  cosmosChainId,
  type CosmosClientParameters,
  createCosmosClient,
} from "./cosmos/client.ts"
import {
  arbitrumSepolia,
  berachainTestnetbArtio,
  createEvmClient,
  evmChainFromChainId,
  type EvmChainId,
  evmChainId,
  evmChains,
  type E

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key