@goat-sdk/plugin-betswirl
Version:
<div align="center"> <a href="https://github.com/goat-sdk/goat">
46 lines (37 loc) • 1.39 kB
Markdown
<div align="center">
<a href="https://github.com/goat-sdk/goat">
<img src="https://github.com/user-attachments/assets/5fc7f121-259c-492c-8bca-f15fe7eb830c" alt="GOAT" width="100px" height="auto" style="object-fit: contain;">
</a>
</div>
The BetSwirl plugin offers a seamless way to interact with the [BetSwirl](https://www.betswirl.com) 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.
```bash
npm install @goat-sdk/plugin-betswirl
yarn add @goat-sdk/plugin-betswirl
pnpm add @goat-sdk/plugin-betswirl
```
```typescript
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/
]
});
```
* Flip a Coin
* Roll a Dice
* Spin a Roulette
* Get bets
<footer>
<br/>
<br/>
<div>
<a href="https://github.com/goat-sdk/goat">
<img src="https://github.com/user-attachments/assets/4821833e-52e5-4126-a2a1-59e9fa9bebd7" alt="GOAT" width="100%" height="auto" style="object-fit: contain; max-width: 800px;">
</a>
</div>
</footer>