rollhub-dice 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -6
- package/package.json +15 -4
package/README.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# 🎲 rollhub-dice
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/rollhub-dice)
|
|
4
|
+
[](https://pypi.org/project/rollhub-dice/)
|
|
4
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://www.npmjs.com/package/rollhub-dice-mcp)
|
|
5
7
|
|
|
6
|
-
**The AI agent gambling API SDK for JavaScript/TypeScript — provably fair dice, crypto betting, and zero-trust verification for autonomous agents.**
|
|
8
|
+
**The AI agent gambling API SDK for JavaScript/TypeScript — provably fair dice & coinflip, crypto betting, and zero-trust verification for autonomous agents.**
|
|
9
|
+
|
|
10
|
+
> 🎰 **[Agent Casino](https://agent.rollhub.com)** — The first provably fair crypto casino built for AI agents
|
|
7
11
|
|
|
8
12
|
## What is this?
|
|
9
13
|
|
|
@@ -11,9 +15,9 @@
|
|
|
11
15
|
|
|
12
16
|
## Features
|
|
13
17
|
|
|
14
|
-
- **Provably fair dice gambling** for AI agents — auto-verification of every bet
|
|
18
|
+
- **Provably fair dice & coinflip gambling** for AI agents — auto-verification of every bet
|
|
15
19
|
- **Zero-trust gambling** — SHA3-384 + AES-256-CTR cryptographic commit-reveal proof
|
|
16
|
-
- **70+ cryptocurrency chains** for deposits and withdrawals
|
|
20
|
+
- **70+ cryptocurrency chains** for deposits and withdrawals (SOL, ETH, BTC, USDT, USDC...)
|
|
17
21
|
- **99% RTP**, 1% house edge, transparent math
|
|
18
22
|
- **30% affiliate earnings** — agent affiliate program with instant credit
|
|
19
23
|
- **AI agent crypto** — deposit, bet, verify, withdraw across 70+ blockchains
|
|
@@ -29,21 +33,58 @@ npm install rollhub-dice
|
|
|
29
33
|
import { DiceAgent } from 'rollhub-dice';
|
|
30
34
|
|
|
31
35
|
const agent = new DiceAgent({ apiKey: 'your-key' });
|
|
36
|
+
|
|
37
|
+
// Place a dice bet
|
|
32
38
|
const result = await agent.bet({ target: 50, direction: 'over', amount: 100 });
|
|
33
39
|
console.log(`Roll: ${result.roll}, Won: ${result.win}, Verified: ${result.proof?.verified}`);
|
|
40
|
+
|
|
41
|
+
// Coinflip
|
|
42
|
+
const flip = await agent.coinflip({ side: 'heads', amount: 50 });
|
|
43
|
+
console.log(`Result: ${flip.side}, Won: ${flip.win}`);
|
|
34
44
|
```
|
|
35
45
|
|
|
36
|
-
##
|
|
46
|
+
## 🤖 Claude Desktop / MCP Integration
|
|
47
|
+
|
|
48
|
+
Use Agent Casino directly from Claude Desktop, Cursor, or any MCP client:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm install -g rollhub-dice-mcp
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Add to your `claude_desktop_config.json`:
|
|
55
|
+
|
|
56
|
+
```json
|
|
57
|
+
{
|
|
58
|
+
"mcpServers": {
|
|
59
|
+
"rollhub-dice": {
|
|
60
|
+
"command": "npx",
|
|
61
|
+
"args": ["-y", "rollhub-dice-mcp"],
|
|
62
|
+
"env": {
|
|
63
|
+
"ROLLHUB_API_KEY": "your-api-key"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Then ask Claude: *"Roll a dice over 50 for 100 units"* — it just works!
|
|
71
|
+
|
|
72
|
+
See [rollhub-dice-mcp](https://www.npmjs.com/package/rollhub-dice-mcp) for full MCP server docs.
|
|
73
|
+
|
|
74
|
+
## 💰 Affiliate Program — Earn Crypto with AI
|
|
37
75
|
|
|
38
76
|
Earn **30% of house edge** on every bet by agents you refer. The agent affiliate program provides instant credit — AI agents can earn money autonomously by referring other agents.
|
|
39
77
|
|
|
78
|
+
Use [rollhub-affiliate-mcp](https://www.npmjs.com/package/rollhub-affiliate-mcp) to let your AI agent promote Agent Casino and earn commissions automatically.
|
|
79
|
+
|
|
40
80
|
## Full Ecosystem
|
|
41
81
|
|
|
42
82
|
| Package | Registry | Description |
|
|
43
83
|
|---------|----------|-------------|
|
|
44
84
|
| [rollhub-dice](https://pypi.org/project/rollhub-dice/) | PyPI | Core Python SDK for AI agent gambling API |
|
|
45
85
|
| [rollhub-dice](https://www.npmjs.com/package/rollhub-dice) | npm | Core JS/TS SDK for AI agent gambling API |
|
|
46
|
-
| [rollhub-dice-mcp](https://www.npmjs.com/package/rollhub-dice-mcp) | npm | MCP server casino for Claude Desktop |
|
|
86
|
+
| [rollhub-dice-mcp](https://www.npmjs.com/package/rollhub-dice-mcp) | npm | MCP server casino for Claude Desktop & Cursor |
|
|
87
|
+
| [rollhub-affiliate-mcp](https://www.npmjs.com/package/rollhub-affiliate-mcp) | npm | Affiliate marketing MCP server |
|
|
47
88
|
| [langchain-rollhub](https://pypi.org/project/langchain-rollhub/) | PyPI | LangChain gambling tool |
|
|
48
89
|
| [crewai-rollhub](https://pypi.org/project/crewai-rollhub/) | PyPI | CrewAI gambling tool |
|
|
49
90
|
| [rollhub-openai-tools](https://www.npmjs.com/package/rollhub-openai-tools) | npm | OpenAI function calling gambling |
|
|
@@ -51,7 +92,13 @@ Earn **30% of house edge** on every bet by agents you refer. The agent affiliate
|
|
|
51
92
|
| [eliza-rollhub](https://www.npmjs.com/package/eliza-rollhub) | npm | ElizaOS plugin |
|
|
52
93
|
| [autogpt-rollhub](https://pypi.org/project/autogpt-rollhub/) | PyPI | AutoGPT plugin |
|
|
53
94
|
|
|
95
|
+
## Keywords
|
|
96
|
+
|
|
97
|
+
AI agent gambling API, provably fair dice, crypto betting SDK, MCP server casino, Claude Desktop gambling, AI casino API, zero-trust verification, autonomous agent betting, Solana gambling, cryptocurrency dice game, AI agent crypto, coinflip API
|
|
98
|
+
|
|
54
99
|
## Links
|
|
55
100
|
|
|
56
|
-
- 🌐 **
|
|
101
|
+
- 🌐 **Website:** [agent.rollhub.com](https://agent.rollhub.com)
|
|
57
102
|
- 📖 **API docs:** [agent.rollhub.com](https://agent.rollhub.com) (scroll to API Reference)
|
|
103
|
+
- 🎰 **MCP Server:** [rollhub-dice-mcp](https://www.npmjs.com/package/rollhub-dice-mcp)
|
|
104
|
+
- 💰 **Affiliate MCP:** [rollhub-affiliate-mcp](https://www.npmjs.com/package/rollhub-affiliate-mcp)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollhub-dice",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "AI agent gambling API SDK for JS/TS — provably fair dice, crypto betting, zero-trust verification for autonomous agents. 99% RTP, 70+ chains.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -29,9 +29,20 @@
|
|
|
29
29
|
"prepublishOnly": "npm run build"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
|
-
"dice",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
32
|
+
"dice",
|
|
33
|
+
"casino",
|
|
34
|
+
"gambling",
|
|
35
|
+
"ai",
|
|
36
|
+
"agent",
|
|
37
|
+
"provably-fair",
|
|
38
|
+
"crypto",
|
|
39
|
+
"solana",
|
|
40
|
+
"ai-agent-gambling-api",
|
|
41
|
+
"crypto-betting-api",
|
|
42
|
+
"zero-trust-gambling",
|
|
43
|
+
"ai-agent-casino",
|
|
44
|
+
"autonomous-gambling-agent",
|
|
45
|
+
"ai-agent-crypto"
|
|
35
46
|
],
|
|
36
47
|
"author": "Rollhub",
|
|
37
48
|
"license": "MIT",
|