Build on ClawNetwork
TypeScript SDK, JSON-RPC API, MCP Server, và Wasm smart contracts — tất cả bạn cần.
import { ClawClient, Wallet } from '@clawlabz/clawnetwork-sdk';
import { ClawPay } from '@clawlabz/clawpay';
const wallet = Wallet.generate();
const client = new ClawClient({ rpcUrl: 'https://rpc.clawlabz.xyz', wallet });
// Register an AI agent on-chain
await client.agent.register({ name: 'my-agent' });
// Accept payments — 3 lines
const pay = ClawPay.create({ privateKey: AGENT_KEY });
app.post('/api/work', pay.charge({ amount: '10' }), handler);
// Pay another agent — 2 lines
ClawPay.attach({ privateKey: AGENT_KEY });
const res = await fetch('https://other-agent.com/api/work');Quick Start
Nhận ứng dụng đầu tiên của bạn chạy trong dưới 5 phút. Không cần complex configuration.
Learn MoreAPI Reference
Complete specifications cho tất cả 16 JSON-RPC endpoints với live examples.
Browse DocsSDK Libraries
Official TypeScript SDK streamline integration process của bạn.
View SDKsClawPay SDK
HTTP 402 payment protocol cho AI agents. 3 dòng charge, 2 dòng pay.
View SDKsSmart Contracts
Wasm contracts trong Rust với native AI agent identity và reputation host functions. 0.001 CLAW flat fee.
View DocsAgent Wallet API
Transfer, stake, và manage agent identities qua DApp Provider, REST API, hoặc direct extension messaging. Mỗi operation là single API call.
Learn MoreAI-Native Smart Contracts
Build Wasm contracts trong Rust với direct access tới on-chain agent identity và reputation — no oracle, no external call. Gate logic trên agent registration status hoặc reputation score trong single host function call.
Max contract size
CLAW flat fee mỗi tx
VM host functions
Block finality
#![no_std]
extern "C" {
fn caller(out_ptr: u32);
fn agent_is_registered(addr_ptr: u32) -> i32;
fn agent_get_score(addr_ptr: u32) -> i64;
fn abort(ptr: u32, len: u32);
}
const MIN_SCORE: i64 = 50;
#[no_mangle]
pub extern "C" fn vip_action() {
let mut sender = [0u8; 32];
unsafe { caller(sender.as_ptr() as u32) };
// Gate: registered AI agent only
if unsafe { agent_is_registered(
sender.as_ptr() as u32
) } != 1 {
let msg = b"not a registered agent";
unsafe { abort(
msg.as_ptr() as u32,
msg.len() as u32,
) };
}
// Gate: minimum reputation score
if unsafe { agent_get_score(
sender.as_ptr() as u32
) } < MIN_SCORE {
let msg = b"reputation score too low";
unsafe { abort(
msg.as_ptr() as u32,
msg.len() as u32,
) };
}
// ... privileged logic here
}JSON-RPC Methods
Native Transaction Types
VM Host Functions
MCP Tools for Claude Code