0.3.0 • Published 8 months ago
@goat-sdk/wallet-viem v0.3.0
Viem Wallet for GOAT
Installation
npm install @goat-sdk/wallet-viem
yarn add @goat-sdk/wallet-viem
pnpm add @goat-sdk/wallet-viemUsage
import { createWalletClient } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { sepolia } from "viem/chains";
import { http } from "viem";
import { getOnChainTools } from "@goat-sdk/adapter-vercel-ai";
import { viem } from "@goat-sdk/wallet-viem";
const account = privateKeyToAccount(
process.env.WALLET_PRIVATE_KEY as `0x${string}`
);
const walletClient = createWalletClient({
account: account,
transport: http(process.env.ALCHEMY_API_KEY),
chain: sepolia,
});
const tools = await getOnChainTools({
wallet: viem(walletClient),
});0.3.0
8 months ago
0.2.12
10 months ago
0.2.11
11 months ago
0.2.10
11 months ago
0.2.9
11 months ago
0.2.8
12 months ago
0.2.7
12 months ago
0.2.6
1 year ago
0.2.5
1 year ago
0.2.4
1 year ago
0.2.3
1 year ago
0.2.2
1 year ago
0.2.1
1 year ago
0.2.0
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago