Anvil Mesh
Query live data feeds, verify BSV transactions, and discover paid services on the Anvil mesh network.
What Anvil Does
Anvil is a mesh of BSV nodes that:
- - Publishes signed data feeds (price oracles, sensor data, any structured data)
- Verifies BSV transactions via SPV with merkle proofs against synced headers
- Accepts micropayments via HTTP 402 — non-custodial, sub-cent, instant settlement on BSV
Discovery
Find a node's capabilities:
CODEBLOCK0
Returns a machine-readable manifest listing all available data topics, payment options, and mesh info.
Find payment details:
CODEBLOCK1
Returns endpoint pricing and payment models (HTTP 402 standard).
Query Data
Browse available topics:
CODEBLOCK2
The envelopes.topics field lists all active data topics with envelope counts.
Fetch envelopes for a topic:
CODEBLOCK3
Returns signed envelopes with payload, publisher pubkey, signature, TTL, and timestamp.
Verify a Transaction
CODEBLOCK4
Returns the transaction in BEEF format with merkle proof for SPV verification.
Live Nodes
- -
http://212.56.43.191:9333 — anvil-prime - INLINECODE2 — anvil-one
Payment Flow (HTTP 402)
If an endpoint requires payment:
- 1. Request the endpoint
- Receive HTTP 402 with price and payment address
- Create a BSV transaction for the exact amount
- Resend request with payment proof in
X402-Proof header - Receive data — transaction settles on BSV network
No accounts, no API keys, no signups. Sub-cent costs, instant settlement.
Example: Get BSV/USD Price
CODEBLOCK5
Links
Anvil Mesh
查询实时数据流,验证BSV交易,并在Anvil网状网络上发现付费服务。
Anvil的功能
Anvil是一个BSV节点网状网络,能够:
- - 发布已签名的数据流(价格预言机、传感器数据、任何结构化数据)
- 验证BSV交易:通过SPV机制,利用与同步区块头对应的默克尔证明进行验证
- 通过HTTP 402接受微支付:非托管、低于1美分、在BSV上即时结算
发现服务
查找节点的能力:
bash
curl https:///.well-known/anvil
返回机器可读的清单,列出所有可用数据主题、支付选项和网状网络信息。
查找支付详情:
bash
curl https:///.well-known/x402
返回端点定价和支付模型(HTTP 402标准)。
查询数据
浏览可用主题:
bash
curl https:///stats
envelopes.topics字段列出所有活跃的数据主题及其信封数量。
获取某个主题的信封:
bash
curl https:///data?topic=oracle:rates:bsv&limit=5
返回已签名的信封,包含有效载荷、发布者公钥、签名、TTL和时间戳。
验证交易
bash
curl https:///tx//beef
以BEEF格式返回交易及用于SPV验证的默克尔证明。
活跃节点
- - http://212.56.43.191:9333 — anvil-prime
- http://212.56.43.191:9334 — anvil-one
支付流程(HTTP 402)
如果端点需要付费:
- 1. 请求该端点
- 收到HTTP 402响应,包含价格和支付地址
- 创建精确金额的BSV交易
- 在X402-Proof头部附带支付证明重新发送请求
- 接收数据——交易在BSV网络上结算
无需账户、无需API密钥、无需注册。成本低于1美分,即时结算。
示例:获取BSV/USD价格
bash
curl -s http://212.56.43.191:9333/data?topic=oracle:rates:bsv&limit=1 | jq .envelopes[0].payload | fromjson | .USD
链接