Web3 Domain
Web3 Domain Smart Wallet /wallet/ →

Explore

Apps & Resources

@web3domain/sdk · OIDC + SIWE · Base Mainnet x402

Web3 Domain Developers & SDK

Integrate forward & reverse resolution, zero-dependency @web3domain/sdk, Sign in with Web3DomainApp (OIDC + SIWE), and Base Mainnet USDC x402 payments.

Built for Open Standards Base Mainnet (8453) ERC-721 ERC-6551 ERC-20 EIP-6963 W3C DID x402 · USDC
5-Minute Quickstart · Zero API Key Required

Copy-Paste Integration for Human dApps & AI Agents

Resolve domains to ERC-6551 vaults, reverse-resolve wallets, verify AI Agent Passports, and inspect x402 USDC payment terms in seconds.

01 · Forward Resolve

Resolve Domain → EVM & Vault

GET /api/v1/resolve/<name>

02 · Reverse Resolve

Reverse Resolve Wallet → Domain

GET /api/v1/reverse/<address>

03 · AI Agent & x402

Verify Agent Passport & x402

GET /api/v1/agent/<name>/manifest.json

bash · Base Mainnet (Chain ID 8453)
# 1. Resolve Web3 Domain -> EVM Owner Address & ERC-6551 Smart Vault
curl -s "https://web3domain.app/api/v1/resolve/agent.tld"

# 2. Reverse Resolve 0x Wallet -> Primary Web3 Domain
curl -s "https://web3domain.app/api/v1/reverse/0xYOUR_EVM_WALLET_ADDRESS"

# 3. Verify AI Agent Passport (KYA), Trust Score & x402 USDC Endpoint
curl -s "https://web3domain.app/api/v1/agent/agent.tld/manifest.json"
curl -s "https://web3domain.app/api/v1/trust/agent.tld/"
curl -i "https://web3domain.app/api/v1/x402/agent.tld/resource-slug/"
quickstart.mjs · Node 18+ / viem (Base 8453)
import { createPublicClient, http } from "viem";
import { base } from "viem/chains";

const BASE_API = "https://web3domain.app";
const client = createPublicClient({ chain: base, transport: http("https://mainnet.base.org") });

// 1. Resolve Domain -> EVM Wallet & Deterministic ERC-6551 Smart Vault
const resolved = await fetch(`${BASE_API}/api/v1/resolve/agent.tld`).then((r) => r.json());
const vaultBalanceWei = await client.getBalance({ address: resolved.erc6551_vault || resolved.owner });

// 2. Reverse Resolve 0x Wallet -> Primary Web3 Domain
const primary = await fetch(`${BASE_API}/api/v1/reverse/0xYOUR_EVM_WALLET_ADDRESS`).then((r) => r.json());

// 3. Verify AI Agent Passport (KYA) & Inspect x402 Base USDC Payment Terms
const passport = await fetch(`${BASE_API}/api/v1/agent/agent.tld/manifest.json`).then((r) => r.json());
const x402Challenge = await fetch(`${BASE_API}/api/v1/x402/agent.tld/resource-slug/`).then((r) => r.json());
console.log({ resolved, vaultBalanceWei, primary, passport, x402Challenge });
agent_quickstart.py · Python 3.10+ / requests
import requests

BASE_API = "https://web3domain.app"

# 1. Resolve Web3 Domain -> EVM Address & ERC-6551 Smart Vault
resolved = requests.get(f"{BASE_API}/api/v1/resolve/agent.tld", timeout=10).json()

# 2. Reverse Resolve Wallet -> Primary Web3 Domain
primary = requests.get(f"{BASE_API}/api/v1/reverse/0xYOUR_EVM_WALLET_ADDRESS", timeout=10).json()

# 3. Verify AI Agent Passport, Trust Score & x402 USDC Challenge
passport = requests.get(f"{BASE_API}/api/v1/agent/agent.tld/manifest.json", timeout=10).json()
trust = requests.get(f"{BASE_API}/api/v1/trust/agent.tld/", timeout=10).json()
x402_res = requests.get(f"{BASE_API}/api/v1/x402/agent.tld/resource-slug/", timeout=10)
if x402_res.status_code == 402:
    terms = x402_res.json()  # payTo, Base USDC contract (6 decimals), amountBaseUnits
    # Settle Base Mainnet USDC on-chain, then retry with X-PAYMENT-TX header:
    # unlocked = requests.get(url, headers={"X-PAYMENT-TX": "0xYOUR_BASE_TX_HASH"}).json()
    print("x402 payment required:", terms)

Live Interactive API Tester


    

SDK & Integration Snippets

import { Web3DomainClient } from "@web3domain/sdk";

const client = new Web3DomainClient({ baseUrl: "https://web3domain.app" });

// 1. Forward resolution (wallets, IPFS, profile, x402 resources)
const domain = await client.resolve("asi");

// 2. Reverse resolution (0x wallet -> Primary Domain)
const primary = await client.reverseResolve("0x91d1E61B6d06Fd7Cf2c53982479341069Ae49c5B");

// 3. Batch reverse resolution (up to 50 items per call)
const batch = await client.batchReverseResolve(["0x91d1E61B6d06Fd7Cf2c53982479341069Ae49c5B"]);

// 4. Verify RS256 OIDC id_token against /.well-known/jwks.json
const claims = await client.verifyIdToken(idToken, { audience: "w3d_your_client_id" });
<a href="https://web3domain.app/oauth/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=https://yourapp.com/callback&response_type=code&scope=openid+profile+wallet&state=random_csrf_token">
  Sign in with Web3DomainApp
</a>

// Token Exchange (POST https://web3domain.app/oauth/token)
// grant_type=authorization_code&code=CODE&client_id=ID&client_secret=SECRET&redirect_uri=...
// Returns: { access_token, id_token (RS256), token_type: "Bearer", expires_in: 3600 }
import requests

# Step 1: Request paid agent resource -> receives HTTP 402 + Base Mainnet USDC challenge
url = "https://web3domain.app/api/v1/x402/asi/premium-feed/"
r = requests.get(url)
if r.status_code == 402:
    challenge = r.json()  # payTo, tokenAddress (Base USDC), amountBaseUnits (6 decimals)
    # Step 2: Execute ERC-20 transfer on Base Mainnet (Chain ID 8453) & retry with X-PAYMENT-TX
    unlocked = requests.get(url, headers={"X-PAYMENT-TX": "0xYOUR_CONFIRMED_USDC_TX_HASH"})
    print(unlocked.json())
# Forward Resolution
curl https://web3domain.app/api/v1/resolve/asi

# Reverse Resolution (Primary Name)
curl https://web3domain.app/api/v1/reverse/0x91d1E61B6d06Fd7Cf2c53982479341069Ae49c5B

# Batch Resolve (max 50 items)
curl -X POST https://web3domain.app/api/v1/resolve/batch \
  -H "Content-Type: application/json" \
  -d '{"addresses":["0x91d1E61B6d06Fd7Cf2c53982479341069Ae49c5B"],"domains":["asi"]}'

Resolution & Reverse API

GET /api/v1/resolve/<domain>

GET /api/v1/reverse/<wallet>

POST /api/v1/resolve/batch

GET /api/v1/ccip/{sender}/{data}.json

OIDC / OAuth 2.0 + SIWE

GET /.well-known/openid-configuration

GET /.well-known/jwks.json

GET /oauth/authorize · POST /oauth/token

Base USDC & x402 Protocol

POST /api/v1/payments/verify-usdc/

GET /api/v1/x402/<domain>/<slug>/

USDC: 0x833589fC...A02913 (Base 8453)