Public vals
10
unionTypeScriptSDK
git
unionTypeScriptSDK
Union TypeScript SDK Example Usage import { http } from "viem"; import { privateKeyToAccount } from "viem/accounts"; import { createUnionClient, hexStringToUint8Array } from "@union/client"; const PRIVATE_KEY = process.env.PRIVATE_KEY; const account = privateKeyToAccount(`0x${PRIVATE_KEY}`); const client = createUnionClient({ account, chainId: "80084", transport: http("https://bartio.rpc.berachain.com"), }); const transfer = await client.transferAsset({ amount: 1n, autoApprove: true, destinationChainId: "stride-internal-1", recipient: "stride14qemq0vw6y3gc3u3e0aty2e764u4gs5l66hpe3", denomAddress: "0x0E4aaF1351de4c0264C5c7056Ef3777b41BD8e03", // HONEY }); if (transfer.isErr()) { console.error("Transfer failed", transfer.error); } console.info("Transfer successful", transfer.value);
Script
viem_auto_load_abi
git
viem_auto_load_abi
// Seaport 1.1 contract address
Script
union69
git
union69
An interactive, runnable TypeScript val by git
HTTP
faucets
git
faucets
An interactive, runnable TypeScript val by git
HTTP
fetch_timeout
git
fetch_timeout
An interactive, runnable TypeScript val by git
Script
sparkle
git
sparkle
An interactive, runnable TypeScript val by git
HTTP
wormhole
git
wormhole
An interactive, runnable TypeScript val by git
HTTP
stargate
git
stargate
An interactive, runnable TypeScript val by git
HTTP
checksum
git
checksum
An interactive, runnable TypeScript val by git
HTTP
confetti
git
confetti
An interactive, runnable TypeScript val by git
HTTP
Next