🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@goat-sdk/plugin-curves

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goat-sdk/plugin-curves

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
2
Created
Source
GOAT

Curves GOAT Plugin

Installation

npm install @goat-sdk/plugin-curves
yarn add @goat-sdk/plugin-curves
pnpm add @goat-sdk/plugin-curves

Usage

Basic Setup

import { viem } from "@goat-sdk/wallet-viem";
import { curves } from "@goat-sdk/plugin-curves";

const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${string}`);

  // Create a wallet client
const walletClient = createWalletClient({
    account: account,
    transport: http(process.env.RPC_PROVIDER_URL),
    chain: base,
});

const tools = await getOnChainTools({
    wallet: viem(walletClient),
    plugins: [
        curves(),
    ],
});

// Or with custom curves address and abi
const tools2 = await getOnChainTools({
    wallet: viem(walletClient),
    plugins: [
        curves({
          address: YOUR_CURVES_ADDRESS,
          abi: YOUR_CUSTOM_ABI
        }),
    ],
});

Tools

When using with Goat SDK, the following tools are available:

  • buy_curves_token: Buy curves tokens
  • get_buy_curves_token: Get curves token buy price
  • sell_curves_token: Sell curves tokens
  • get_sell_curves_token: Get curves token sell price
  • get_curves_erc20: Get ERC20 token information
  • get_curves_balance: Get curves token balance
  • withdraw_curves: Withdraw to ERC20 tokens
  • deposit_curves: Deposit from ERC20 tokens
  • mint_curves_erc20: Set name and symbol for your ERC20 token and mint it

Each tool handles parameter validation and provides clear error messages.



Keywords

ai

FAQs

Package last updated on 10 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts