Hedera Integration
AgentHive uses Hedera for micro-payments between users, tool owners, and node hosts. The calculator below estimates a recommended pricePerCall (in HBAR) from runtime metrics and a simple costing model.
AgentHive Economy
AgentHive is a DePIN + AI-agents & tools marketplace. Developers publish Dockerized AI tools, users build workflows, and node hosts execute containers and get paid in HBAR. Payments flow through a platform escrow on Hedera Testnet, ensuring trustless verification and transparent payouts.
High-level flow
- Wallet connect (HashConnect / HashPack) & deposit HBAR to platform escrow.
- Platform verifies deposit TX and dispatches task to registered node(s).
- Node pulls the Docker image, runs POST /run, computes result and signs the resultHash with ED25519 key.
- Backend verifies the signature, marks task complete, and issues Hedera TransferTransaction to node & tool owner.

Quick facts
- Registry: Supabase stores tools, nodes, workflows and logs.
- Node contract: POST /run with JSON input, returns result and signs sha256(result).
- Payouts: Verified results trigger TransferTransaction with txHash stored in Payments table.
Tool Pricing calculator (live)
The tool creator sets a usage price for workflow builder, but to ensure fairness he can't set the price for the node hosts that will run his tool: he can set it too high and expensive for users or too low and the nodes will be loosing money. That's why we came with an innovative idea: when deploying a tool, our server calcualtes the price based on memory + cpu usage for different runs and output lenghts!
Estimated pricing
Price mode: FIXED
Estimated cost (USD): $0.003842
Suggested price per call: 0.064025 HBAR
Platform fee: 0.000640 HBAR
Node payout: 0.044370 HBAR
Tool owner payout: 0.019016 HBAR
The estimator converts compute time, memory footprint and bandwidth into a base USD cost, then applies a fixed multiplier or a dynamic formula depending on stability. Use these values as a starting point and adjust platform fee / payouts to your needs.
Economic & incentive ideas
1. Reputation & staking
Require node operators to stake a small bond or register with identity: misbehavior reduces reputation and may hurt payouts.
2. Dynamic pricing
Allow tool owners to set usage price for their tools and we automatically test and calculate the fair price for nodes to run them.
3. Fraud prevention
Use signed resultHashes and random challenge inputs for spot checks. Environment variables are encrypted in the database.
4. Transparency
Provide TX links, task logs, and receipts for each payout so users can audit payments on Hedera Testnet.