@goat-sdk/plugin-betswirl
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

BetSwirl GOAT Plugin

The BetSwirl plugin offers a seamless way to interact with the BetSwirl betting platform through GOAT. It includes tools for placing bets on games and retrieving bets information. The plugin ensures that all interactions are validated and processed securely, providing agents with a reliable betting experience.

Installation

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

Usage

import { betswirl } from '@goat-sdk/plugin-betswirl';

const tools = await getOnChainTools({
    wallet: // ...
    plugins: [
       betswirl(process.env.THEGRAPH_API_KEY) // Optional TheGraph API Key (rate limits applies). Get one from https://thegraph.com/studio/apikeys/
    ]
});

Tools

  • Flip a Coin
  • Roll a Dice
  • Spin a Roulette
  • Get bets


Package Sidebar

Install

npm i @goat-sdk/plugin-betswirl

Weekly Downloads

3

Version

0.1.2

License

MIT

Unpacked Size

76.8 kB

Total Files

56

Last publish

Collaborators

  • aigustin
  • mpaella