### Navigate to the example directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/solana-mint-nft/README.md Change the current directory to the specific example folder for Solana NFT minting. This prepares your environment for the next setup steps. ```bash cd python/examples/by-use-case/solana-mint-nft ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-framework/langchain/README.md Change directory to the Langchain example. ```bash cd examples/by-framework/langchain ``` -------------------------------- ### Navigate to the Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/evm-mint-nft/README.md Change the current directory to the specific example folder for minting an NFT on EVM. This prepares your environment for the next setup steps. ```bash cd python/examples/by-use-case/evm-mint-nft ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/solana-usdc-yield-deposit/README.md Change the current directory to the specific example for Solana USDC deposit. This is necessary before proceeding with setup. ```bash cd python/examples/by-use-case/solana-usdc-yield-deposit ``` -------------------------------- ### Run Example Directly Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/dpsn-subscribe/README.md Execute the example script directly to start consuming messages from DPSN topics. ```bash pnpm example ``` -------------------------------- ### Lit EVM Wallet Client Quick Start Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/wallets/lit-protocol/README.md This example demonstrates how to initialize Lit components, mint capacity credit and a PKP, obtain session signatures, generate a wrapped key, and finally create a Lit EVM wallet client. ```APIDOC ## Lit EVM Wallet Client Quick Start ### Description This example demonstrates how to initialize Lit components, mint capacity credit and a PKP, obtain session signatures, generate a wrapped key, and finally create a Lit EVM wallet client. ### Setup Functions - **createLitNodeClient**: Initializes the Lit node client. - **createEthersWallet**: Creates an ethers wallet instance from a private key. - **createLitContractsClient**: Initializes the Lit contracts client. - **mintCapacityCredit**: Mints capacity credit for the PKP. - **mintPKP**: Mints a new PKP. - **getPKPSessionSigs**: Obtains session signatures for the PKP. - **generateWrappedKey**: Generates a wrapped key for secure key management. - **getWrappedKeyMetadata**: Retrieves metadata for the wrapped key. ### Wallet Client Creation - **lit**: Initializes the Lit wallet client for EVM. ### Code Example ```typescript import { createLitNodeClient, createEthersWallet, createLitContractsClient, mintCapacityCredit, mintPKP, getPKPSessionSigs, generateWrappedKey, getWrappedKeyMetadata, lit } from "@goat-sdk/wallet-lit"; import { LIT_NETWORK } from "@lit-protocol/constants"; import { clusterApiUrl, Connection } from "@solana/web3.js"; import { createWalletClient, http, sepolia } from "viem"; // Initialize Lit components const litNodeClient = await createLitNodeClient(LIT_NETWORK.DatilTest); const ethersWallet = createEthersWallet(process.env.WALLET_PRIVATE_KEY); const litContractsClient = await createLitContractsClient(ethersWallet, LIT_NETWORK.DatilTest); // Mint capacity credit and PKP const capacityCredit = await mintCapacityCredit( litContractsClient, 10, // requests per second 30 // days until expiration ); const pkp = await mintPKP(litContractsClient); // Get session signatures const pkpSessionSigs = await getPKPSessionSigs( litNodeClient, pkp.publicKey, pkp.ethAddress, ethersWallet, capacityCredit.capacityTokenId ); // Generate wrapped key and get metadata const wrappedKey = await generateWrappedKey(litNodeClient, pkpSessionSigs, "evm"); const wrappedKeyMetadata = await getWrappedKeyMetadata(litNodeClient, pkpSessionSigs, wrappedKey.id); // Create viem wallet client const viemWalletClient = createWalletClient({ transport: http(process.env.RPC_URL), chain: sepolia, }); // Initialize Lit wallet client const litWallet = lit({ litNodeClient, pkpSessionSigs, wrappedKeyMetadata, network: "evm", chainId: 11155111, litEVMChainIdentifier: 'sepolia', viemWalletClient, }); ``` ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/solana-launch-token/README.md Clone the GOAT SDK repository and install the necessary dependencies for the Solana token launch example. ```bash git clone https://github.com/goat-sdk/goat.git && cd goat cd typescript pnpm install pnpm build cd examples/by-use-case/solana-launch-token ``` -------------------------------- ### Navigate to Langchain Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-framework/langchain/README.md Change the current directory to the Langchain example folder within the cloned GOAT repository. This prepares for subsequent setup steps. ```bash cd python/examples/by-framework/langchain ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/evm-swap-tokens/README.md Change directory to the specific EVM swap tokens example. ```bash cd examples/by-use-case/evm-swap-tokens ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/solana-send-and-receive-tokens/README.md Change directory to the Solana send and receive tokens example. ```bash cd examples/by-use-case/solana-send-and-receive-tokens ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/solana-swap-tokens/README.md Change the current directory to the Solana token swap example. ```bash cd python/examples/by-use-case/solana-swap-tokens ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-framework/ag2/README.md Change the current directory to the AG2 example folder. ```bash cd python/examples/by-framework/ag2 ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/solana-defi-agent/README.md Change the current directory to the Solana DeFi agent example. ```bash cd examples/by-use-case/solana-defi-agent ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-framework/eleven-labs/README.md Change the current directory to the Eleven Labs example. ```bash cd examples/by-framework/eleven-labs ``` -------------------------------- ### Navigate to the Solana NFT example directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/solana-mint-nft/README.md Change the current directory to the specific example for minting NFTs on Solana. This is where the example's code resides. ```bash cd examples/by-use-case/solana-mint-nft ``` -------------------------------- ### Install Solana Wallet Adapter Source: https://github.com/goat-sdk/goat/blob/main/python/docs/1-installation-and-usage.md Install the specific wallet adapter for Solana. Ensure you have the core package installed first. ```bash pip install goat-sdk-wallet-solana ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-framework/vercel-ai/README.md Change the current directory to the Vercel AI SDK example. ```bash cd examples/by-framework/vercel-ai ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-wallet/crossmint-solana-smart-wallets/README.md Change directory to the specific example for Crossmint Solana Smart Wallets. ```bash cd examples/by-wallet/crossmint-solana-smart-wallets ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/solana-send-and-receive-tokens/README.md Change the current directory to the Solana send/receive tokens example. ```bash cd python/examples/by-use-case/solana-send-and-receive-tokens ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/evm-defi-agent/README.md Change directory to the specific EVM DeFi agent example. ```bash cd examples/by-use-case/evm-defi-agent ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/solana-usdc-yield-deposit/README.md Change the directory to the Solana USDC yield deposit example. ```bash cd examples/by-use-case/solana-usdc-yield-deposit ``` -------------------------------- ### Install goat-sdk Core Package Source: https://github.com/goat-sdk/goat/blob/main/python/docs/1-installation-and-usage.md Install the main goat-sdk package using pip. This is the first step for any installation. ```bash pip install goat-sdk ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-wallet/crossmint-evm-smart-wallets/README.md Change to the specific example directory for Crossmint EVM Smart Wallets. ```bash cd examples/by-wallet/crossmint-evm-smart-wallets ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/evm-swap-tokens/README.md Change the current directory to the specific example for EVM token swaps. ```bash cd python/examples/by-use-case/evm-swap-tokens ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/chromia-send-and-receive-tokens/README.md Change to the specific example directory for Chromia token operations. ```bash cd examples/by-use-case/chromia-send-and-receive-tokens ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/evm-purchase-on-amazon/README.md Change directory to the specific example for purchasing items on Amazon. ```bash cd examples/by-use-case/evm-purchase-on-amazon ``` -------------------------------- ### Install Dependencies Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-framework/ag2/README.md Install the project dependencies using Poetry. ```bash poetry install ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/evm-send-and-receive-tokens/README.md Change directory to the specific EVM send and receive tokens example. ```bash cd python/examples/by-use-case/evm-send-and-receive-tokens ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-framework/openai-agents-sdk/README.md Change the current directory to the OpenAI Agents SDK example. ```bash cd python/examples/by-framework/openai-agents-sdk ``` -------------------------------- ### Install GOAT Langchain Adapter Source: https://github.com/goat-sdk/goat/blob/main/python/src/adapters/langchain/README.md Install the adapter using pip or poetry. ```bash pip install goat-sdk-adapter-langchain ``` ```bash poetry add goat-sdk-adapter-langchain ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/cosmos-send-and-receive-tokens/README.md Change to the specific example directory for Cosmos token operations. ```bash cd examples/by-use-case/cosmos-send-and-receive-tokens ``` -------------------------------- ### Install Smolagents Adapter for GOAT Source: https://github.com/goat-sdk/goat/blob/main/python/src/adapters/smolagents/README.md Install the necessary package using poetry. ```bash poetry add goat-sdk-adapter-smolagents ``` -------------------------------- ### Install DEXScreener Plugin and Optional Wallet Dependencies Source: https://github.com/goat-sdk/goat/blob/main/python/src/plugins/dexscreener/README.md Install the DEXScreener plugin using poetry. Optionally, install wallet dependencies for chain-specific operations. ```bash poetry add goat-sdk-plugin-dexscreener poetry add goat-sdk-wallet-evm poetry add goat-sdk-wallet-solana ``` -------------------------------- ### Install Dependencies and Build Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-framework/langchain/README.md Navigate to the typescript directory, install dependencies, and build the project. ```bash cd typescript pnpm install pnpm build ``` -------------------------------- ### Navigate to ChatGPT Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-framework/chatgpt/README.md Change the current directory to the ChatGPT example folder. ```bash cd examples/by-framework/chatgpt ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/zetrix-send-and-receive-tokens/README.md Change the current directory to the Zetrix send and receive tokens example. ```bash cd examples/by-use-case/zetrix-send-and-receive-tokens ``` -------------------------------- ### Install PushGovernance Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/push-governance/README.md Install the PushGovernance plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-push-governance ``` ```bash yarn add @goat-sdk/plugin-push-governance ``` ```bash pnpm add @goat-sdk/plugin-push-governance ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/radix-send-and-receive-tokens/README.md Change the current directory to the Radix send and receive tokens example. ```bash cd examples/by-use-case/radix-send-and-receive-tokens ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/fuel-send-and-receive-tokens/README.md Change into the specific example directory for Fuel token send/receive operations. ```bash cd examples/by-use-case/fuel-send-and-receive-tokens ``` -------------------------------- ### Install OrderlyNetwork GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/orderly-network/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-orderly-network yarn add @goat-sdk/plugin-orderly-network pnpm add @goat-sdk/plugin-orderly-network ``` -------------------------------- ### Install Solana MagicEden Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/solana-magiceden/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-solana-magiceden ``` ```bash yarn add @goat-sdk/plugin-solana-magiceden ``` ```bash pnpm add @goat-sdk/plugin-solana-magiceden ``` -------------------------------- ### Install Langchain Adapter for GOAT Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/adapters/langchain/README.md Install the adapter using npm, yarn, or pnpm. ```bash npm install @goat-sdk/adapter-langchain yarn add @goat-sdk/adapter-langchain pnpm add @goat-sdk/adapter-langchain ``` -------------------------------- ### Install 0x GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/0x/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-0x yarn add @goat-sdk/plugin-0x pnpm add @goat-sdk/plugin-0x ``` -------------------------------- ### Install CosmosBank GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/cosmosbank/README.md Install the plugin using your preferred package manager. ```bash npm install @goat-sdk/plugin-cosmosbank yarn add @goat-sdk/plugin-cosmosbank pnpm add @goat-sdk/plugin-cosmosbank ``` -------------------------------- ### Install MultiversX Wallet Package Source: https://github.com/goat-sdk/goat/blob/main/python/src/wallets/multiversx/README.md Install the MultiversX wallet package using poetry. ```bash poetry add goat-sdk-wallet-multiversx ``` -------------------------------- ### Navigate to Mastra Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-framework/mastra/README.md Change directory to the Mastra example within the GOAT SDK. ```bash cd examples/by-framework/mastra ``` -------------------------------- ### Install Model Context Protocol Adapter Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/adapters/model-context-protocol/README.md Install the adapter using npm, yarn, or pnpm. ```bash npm install @goat-sdk/adapter-model-context-protocol ``` ```bash yarn add @goat-sdk/adapter-model-context-protocol ``` ```bash pnpm add @goat-sdk/adapter-model-context-protocol ``` -------------------------------- ### Install 1inch GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/1inch/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-1inch yarn add @goat-sdk/plugin-1inch pnpm add @goat-sdk/plugin-1inch ``` -------------------------------- ### Install Mastra AI SDK Adapter Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/adapters/mastra/README.md Install the adapter using npm, yarn, or pnpm. ```bash npm install @goat-sdk/adapter-mastra yarn add @goat-sdk/adapter-mastra pnpm add @goat-sdk/adapter-mastra ``` -------------------------------- ### Install Lit Protocol Wallets for GOAT Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/wallets/lit-protocol/README.md Install the package using npm, yarn, or pnpm. ```bash npm install @goat-sdk/wallet-lit yarn add @goat-sdk/wallet-lit pnpm add @goat-sdk/wallet-lit ``` -------------------------------- ### Clone GOAT Repository Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-framework/langchain/README.md Clone the GOAT SDK repository to get started. ```bash git clone https://github.com/goat-sdk/goat.git && cd goat ``` -------------------------------- ### Install Eliza Adapter for GOAT Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/adapters/eliza/README.md Install the Eliza adapter using npm, yarn, or pnpm. ```bash npm install @goat-sdk/adapter-eliza yarn add @goat-sdk/adapter-eliza pnpm add @goat-sdk/adapter-eliza ``` -------------------------------- ### Clone Repository and Install Dependencies Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/solana-purchase-on-amazon/README.md Clone the GOAT SDK repository and install the necessary dependencies for the TypeScript project. Navigate to the specific example directory for Solana purchases. ```bash git clone https://github.com/goat-sdk/goat.git && cd goat cd typescript pnpm install pnpm build cd examples/by-use-case/solana-purchase-on-amazon ``` -------------------------------- ### Install Synth API GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/synth-api/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-synth-api yarn add @goat-sdk/plugin-synth-api pnpm add @goat-sdk/plugin-synth-api ``` -------------------------------- ### Install CrewAI Adapter for GOAT Source: https://github.com/goat-sdk/goat/blob/main/python/src/adapters/crewai/README.md Install the adapter using poetry. Ensure you have poetry installed and configured for your project. ```bash poetry add goat-sdk-adapter-crewai ``` -------------------------------- ### Install Solana Wallet Package Source: https://github.com/goat-sdk/goat/blob/main/typescript/docs/1-installation-and-usage.md Install the Solana wallet package for integration with the GOAT SDK. ```bash npm install @goat-sdk/wallet-solana ``` -------------------------------- ### Install Uniswap Plugin and Dependencies Source: https://github.com/goat-sdk/goat/blob/main/python/src/plugins/uniswap/README.md Install the Uniswap plugin and its required dependencies using Poetry. Ensure you have `goat-sdk-wallet-evm` and `goat-sdk-plugin-erc20` installed. ```bash poetry add goat-sdk-plugin-uniswap poetry add goat-sdk-wallet-evm poetry add goat-sdk-plugin-erc20 ``` -------------------------------- ### Install JSON-RPC Plugin Source: https://github.com/goat-sdk/goat/blob/main/python/src/plugins/jsonrpc/README.md Install the JSON-RPC plugin using poetry. Optional wallet dependencies can also be installed for chain-specific operations. ```bash poetry add goat-sdk-plugin-jsonrpc poetry add goat-sdk-wallet-evm poetry add goat-sdk-wallet-solana ``` -------------------------------- ### Install CoinGecko Plugin Source: https://github.com/goat-sdk/goat/blob/main/python/src/plugins/coingecko/README.md Install the CoinGecko plugin using poetry. Optional wallet dependencies can also be installed for chain-specific operations. ```bash poetry add goat-sdk-plugin-coingecko poetry add goat-sdk-wallet-evm poetry add goat-sdk-wallet-solana ``` -------------------------------- ### Install Allora Plugin and Wallet Dependencies Source: https://github.com/goat-sdk/goat/blob/main/python/src/plugins/allora/README.md Install the Allora plugin using poetry. Optionally, install wallet dependencies for chain-specific operations. ```bash # Install the plugin poetry add goat-sdk-plugin-allora # Install optional wallet dependencies for chain-specific operations poetry add goat-sdk-wallet-evm poetry add goat-sdk-wallet-solana ``` -------------------------------- ### Install Solana NFTs Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/solana-nfts/README.md Install the Solana NFTs plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-solana-nfts ``` ```bash yarn add @goat-sdk/plugin-solana-nfts ``` ```bash pnpm add @goat-sdk/plugin-solana-nfts ``` -------------------------------- ### Install Crossmint Headless Checkout Plugin Source: https://github.com/goat-sdk/goat/blob/main/python/src/plugins/headless/README.md Install the main plugin package using poetry. Optional wallet dependencies can be installed for chain-specific operations. ```bash poetry add goat-sdk-plugin-crossmint-headless-checkout poetry add goat-sdk-wallet-evm poetry add goat-sdk-wallet-solana ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/evm-send-and-receive-tokens/README.md Change the current directory to the specific example for sending and receiving EVM tokens. ```bash cd examples/by-use-case/evm-send-and-receive-tokens ``` -------------------------------- ### Install GOAT SDK Web3 Wallet Source: https://github.com/goat-sdk/goat/blob/main/python/src/wallets/web3/README.md Install the web3 wallet package for the GOAT SDK using poetry. Ensure the EVM wallet dependency is also installed. ```bash poetry add goat-sdk-wallet-web3 # Required dependency poetry add goat-sdk-wallet-evm ``` -------------------------------- ### Install goat-sdk-adapter-ag2 Source: https://github.com/goat-sdk/goat/blob/main/python/src/adapters/ag2/README.md Install the AG2 adapter for GOAT using pip or poetry. ```bash pip install goat-sdk-adapter-ag2 ``` ```bash poetry add goat-sdk-adapter-ag2 ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/dpsn-subscribe/README.md Change the current directory to the specific example folder for subscribing to DPSN topics. ```bash cd python/examples/by-use-case/dpsn-subscribe ``` -------------------------------- ### Install Zilliqa GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/zilliqa/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-zilliqa ``` ```bash yarn add @goat-sdk/plugin-zilliqa ``` ```bash pnpm add @goat-sdk/plugin-zilliqa ``` -------------------------------- ### Install Uniswap GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/uniswap/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-uniswap yarn add @goat-sdk/plugin-uniswap pnpm add @goat-sdk/plugin-uniswap ``` -------------------------------- ### Install Superfluid GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/superfluid/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-superfluid yarn add @goat-sdk/plugin-superfluid pnpm add @goat-sdk/plugin-superfluid ``` -------------------------------- ### Navigate to the Polymarket example directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/evm-bet-on-polymarket/README.md Change the current directory to the specific example for betting on Polymarket. This is necessary before configuring the environment. ```bash cd examples/by-use-case/evm-bet-on-polymarket ``` -------------------------------- ### Install Tensor GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/tensor/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-tensor yarn add @goat-sdk/plugin-tensor pnpm add @goat-sdk/plugin-tensor ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-wallet/safe/README.md Change the current directory to the Safe wallet example to access its specific files and configurations. ```bash cd examples/by-wallet/safe ``` -------------------------------- ### Install Polymarket GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/polymarket/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-polymarket yarn add @goat-sdk/plugin-polymarket pnpm add @goat-sdk/plugin-polymarket ``` -------------------------------- ### Run Development Server Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-framework/eleven-labs/README.md Start the application using `pnpm dev`. Connect your wallet and begin interacting with the conversational agent. ```bash pnpm dev ``` -------------------------------- ### Run Interactive CLI Example Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-use-case/dpsn-subscribe/README.md Launch the interactive command-line interface for the example. This allows you to chat with the agent and interact with DPSN topics. ```bash poetry run python llm_example.py ``` -------------------------------- ### Initialize Viem Wallet Client and GOAT Tools Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/wallets/viem/README.md Set up a Viem wallet client with your private key and chain configuration, then initialize GOAT's on-chain tools using the Viem adapter. ```typescript 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), }); ``` -------------------------------- ### Install RugCheck GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/rugcheck/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-rugcheck yarn add @goat-sdk/plugin-rugcheck pnpm add @goat-sdk/plugin-rugcheck ``` -------------------------------- ### Install Pump.fun GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/pumpfun/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-pumpfun yarn add @goat-sdk/plugin-pumpfun pnpm add @goat-sdk/plugin-pumpfun ``` -------------------------------- ### Install PlunderSwap GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/plunderswap/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-plunderswap yarn add @goat-sdk/plugin-plunderswap pnpm add @goat-sdk/plugin-plunderswap ``` -------------------------------- ### Run with Interactive CLI Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-use-case/dpsn-subscribe/README.md Launch the example with an interactive command-line interface for easier interaction. ```bash pnpm llm_example ``` -------------------------------- ### Run EVM Example Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-wallet/lit/README.md Execute the EVM (Ethereum Virtual Machine) example using ts-node. This demonstrates GOAT SDK integration with EVM-compatible chains via Lit wallets. ```bash pnpm ts-node src/evm.ts ``` -------------------------------- ### Install Meteora GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/meteora/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-meteora yarn add @goat-sdk/plugin-meteora pnpm add @goat-sdk/plugin-meteora ``` -------------------------------- ### Install Mode Voting Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/mode-voting/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-mode-voting yarn add @goat-sdk/plugin-mode-voting pnpm add @goat-sdk/plugin-mode-voting ``` -------------------------------- ### Initialize Solana Wallet and On-Chain Tools Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/wallets/solana/README.md Import necessary modules, establish a Solana connection, derive a keypair from a mnemonic, and initialize on-chain tools with the Solana wallet. ```typescript import { getOnChainTools } from "@goat-sdk/adapter-vercel-ai"; import { solana } from "@goat-sdk/wallet-solana"; import { Connection, Keypair } from "@solana/web3.js"; import * as bip39 from "bip39"; const connection = new Connection( "https://api.mainnet-beta.solana.com", "confirmed" ); const mnemonic = process.env.WALLET_MNEMONIC; const seed = bip39.mnemonicToSeedSync(mnemonic); const keypair = Keypair.fromSeed(Uint8Array.from(seed).subarray(0, 32)); const tools = await getOnChainTools({ wallet: solana({ keypair, connection, }), }); ``` -------------------------------- ### Install Lulo GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/lulo/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-lulo yarn add @goat-sdk/plugin-lulo pnpm add @goat-sdk/plugin-lulo ``` -------------------------------- ### Install Mode Governance Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/mode-governance/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-mode-governance yarn add @goat-sdk/plugin-mode-governance pnpm add @goat-sdk/plugin-mode-governance ``` -------------------------------- ### Navigate to Lit Wallet Example Directory Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-wallet/lit/README.md Change the directory to the specific example for using Lit wallets within the GOAT SDK. ```bash cd examples/by-wallet/lit ``` -------------------------------- ### Run Smart EVM Wallet Example Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-wallet/crossmint/README.md Execute the Python script to create and use a Smart EVM Wallet with LangChain for on-chain operations. ```bash poetry run python smart_evm_wallet_example.py ``` -------------------------------- ### Install Mayan GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/mayan/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-mayan yarn add @goat-sdk/plugin-mayan pnpm add @goat-sdk/plugin-mayan ``` -------------------------------- ### Run Solana Example Source: https://github.com/goat-sdk/goat/blob/main/typescript/examples/by-wallet/lit/README.md Execute the Solana example using ts-node. This showcases GOAT SDK integration with the Solana blockchain using Lit wallets. ```bash pnpm ts-node src/sol.ts ``` -------------------------------- ### Install Hedgey GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/hedgey/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-hedgey yarn add @goat-sdk/plugin-hedgey pnpm add @goat-sdk/plugin-hedgey ``` -------------------------------- ### Run Example Script Source: https://github.com/goat-sdk/goat/blob/main/python/examples/by-framework/ag2/README.md Execute the example script using Poetry to see the AG2 agent in action. ```bash poetry run python example.py ``` -------------------------------- ### Install Enso GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/enso/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-enso yarn add @goat-sdk/plugin-enso pnpm add @goat-sdk/plugin-enso ``` -------------------------------- ### Full Usage Example: Solana SPL Token Analysis with CrewAI and GOAT Source: https://github.com/goat-sdk/goat/blob/main/python/src/adapters/crewai/README.md This example demonstrates setting up a Solana wallet, initializing the GOAT adapter, defining a CrewAI agent with GOAT tools, and running a task. Ensure SOL for transaction fees and necessary environment variables (SOLANA_RPC_ENDPOINT, SOLANA_WALLET_SEED, OPENAI_API_KEY) are set. ```python # --- Setup GOAT Wallet and Plugins (Example: Solana + SPL Token) --- import os from dotenv import load_dotenv from solders.keypair import Keypair from solana.rpc.api import Client as SolanaClient from goat_wallets.solana import solana load_dotenv() solana_rpc_endpoint = os.getenv("SOLANA_RPC_ENDPOINT") solana_wallet_seed = os.getenv("SOLANA_WALLET_SEED") # Make sure environment variables are set if not solana_rpc_endpoint or not solana_wallet_seed: raise ValueError("SOLANA_RPC_ENDPOINT and SOLANA_WALLET_SEED must be set in .env") client = SolanaClient(solana_rpc_endpoint) keypair = Keypair.from_base58_string(solana_wallet_seed) wallet = solana(client, keypair) # --- Import CrewAI and the GOAT Adapter --- from crewai import Agent, Task, Crew, Process from goat_adapters.crewai.adapter import get_crewai_tools # --- Generate CrewAI Tools from GOAT --- goat_crewai_tools = get_crewai_tools( wallet=wallet, plugins=[] ) # --- Define CrewAI Agent using GOAT Tools --- # Ensure OPENAI_API_KEY is set in the environment for CrewAI's default LLM if not os.getenv("OPENAI_API_KEY"): raise ValueError("OPENAI_API_KEY must be set in .env for CrewAI") crypto_analyst = Agent( role='Solana SPL Token Analyst', goal='Provide accurate answers about Solana SPL tokens.', backstory='Expert analyst for Solana SPL tokens with on-chain tools.', verbose=True, tools=goat_crewai_tools # Assign the generated tools ) # --- Define Task and Crew (as needed) --- task = Task( description='What is the balance of USDC for the wallet?', expected_output='The USDC balance of the wallet.', agent=crypto_analyst ) crew = Crew( agents=[crypto_analyst], tasks=[task], process=Process.sequential ) # --- Kick off the Crew --- # Note: Ensure you have enough SOL for potential transaction fees if tools perform actions. result = crew.kickoff() print(result) ``` -------------------------------- ### Initialize Aptos Wallet and Tools Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/wallets/aptos/README.md Initialize the Aptos client and account using private key, then integrate with GOAT SDK's on-chain tools. ```typescript import { Account, Aptos, AptosConfig, Ed25519PrivateKey, Network, } from "@aptos-labs/ts-sdk"; const aptosClient = new Aptos( new AptosConfig({ network: Network.TESTNET, }) ); const aptosPrivateKey = process.env.APTOS_PRIVATE_KEY; const aptosAccount = Account.fromPrivateKey({ privateKey: new Ed25519PrivateKey(aptosPrivateKey), }); const tools = await getOnChainTools({ wallet: aptos({ aptosClient, aptosAccount, }), }); ``` -------------------------------- ### Install Allora GOAT Plugin Source: https://github.com/goat-sdk/goat/blob/main/typescript/packages/plugins/allora/README.md Install the plugin using npm, yarn, or pnpm. ```bash npm install @goat-sdk/plugin-allora ``` ```bash yarn add @goat-sdk/plugin-allora ``` ```bash pnpm add @goat-sdk/plugin-allora ```