---
title: "Web3 APIs Overview"
description: "AINative Web3 APIs — Sol Mate and Agent402"
canonical: "https://docs.ainative.studio/docs/web3/overview"
last-updated: "2026-09-23T01:51:08.820Z"
---

# Web3 APIs Overview

Source: https://docs.ainative.studio/docs/web3/overview

> AINative Web3 APIs — Sol Mate and Agent402

# Web3 APIs

AINative hosts Web3-native APIs for building stake-gated social dApps and autonomous agent payment networks on decentralized infrastructure.

## Available APIs

| API | Description | Auth | Status |
|-----|-------------|------|--------|
| [Sol Mate](./sol-mate) | Stake-gated social dApp on Solana — DM, match, meet | AINative API key or Wallet-signature JWT | Live |
| [Agent402](./agent402) | Autonomous agent orchestration — swarms, skills, mesh networking | AINative API key or email/password JWT | Live |

:::tip AINative API Keys Work Everywhere
Both Sol Mate and Agent402 accept AINative platform API keys (`sk_...`, `svc_...`, `agk_...`, `pa_...`, `tmp_...`) via `X-API-Key` header or `Authorization: Bearer` header. Note: `tmp_` keys expire after 72 hours and should not be used in production — sign up and use `sk_` keys for persistent access. You can also use their native auth systems.
:::

> Looking for ZeroInvoice or ZeroCommerce? Those are [Business Ops APIs](/docs/business-ops/overview).

## Common Patterns

### Stake-Gated Access

All Sol Mate interactions require USDC staked on Solana. This creates economic accountability — no-shows get slashed, good actors earn reputation.

### x402 Protocol

Agent402 and Sol Mate both implement the [Coinbase x402 protocol](https://x402.org) — HTTP-native USDC micropayments that require no smart contract deployment. Any endpoint can require payment via a single middleware line:

```python
from solmate_x402 import require_x402_payment

@app.post("/send-dm")
@require_x402_payment(amount_usdc=0.50)
async def send_dm(body: DMBody):
    ...
```

### Hedera HCS Anchoring

Agent402 and Sol Mate anchor moderation decisions, attestations, and reputation events to Hedera Consensus Service for immutable, verifiable audit logs.

### ZeroDB Integration

Both APIs use ZeroDB for:
- 768-dim vector embeddings (BAAI/bge-base-en-v1.5)
- Semantic search and preference matching
- Persistent agent memory

## Open Source Packages

```bash
pip install solmate-stake-sdk    # Stake-gated access control
pip install solmate-reputation   # 5-dim reputation engine + HCS anchoring  
pip install solmate-x402         # FastAPI x402 USDC payment middleware
```
