chainpeek (Tanod) Nostr decoder: NIP-19 npub, note, nprofile, nevent and naddr to hex a…
chainpeek (Tanod) Nostr decoder: NIP-19 npub, note, nprofile, nevent and naddr to hex and TLV fields, and NIP-05 name@domain to a public key. Secret keys are refused. Use when an agent must turn a Nostr npub, nprofile, note, nevent or naddr into hex, or resol…
by tanod.dev · discovered, not yet claimed by its owner · updated 2026-10-13
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
chainpeek (Tanod) Nostr decoder: NIP-19 npub, note, nprofile, nevent and naddr to hex and TLV fields, and NIP-05 name@domain to a public key. Secret keys are refused. Use when an agent must turn a Nostr npub, nprofile, note, nevent or naddr into hex, or resolve a NIP-05 address.
Tags: chainpeek · nostr · decode · ens · calldata · bazaar · builder-code · erc20ApprovalGasSponsoring · payment-identifier
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-13
{
"input": "nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpp4mhxue69uhhytnc9e3k7mgpz4mhxue69uhkg6nzv9ejuumpv34kytnrdaksjlyr9p"
}{
"hex": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"hex_meaning": "pubkey",
"input_type": "nip19",
"nostr_uri": "nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpp4mhxue69uhhytnc9e3k7mgpz4mhxue69uhkg6nzv9ejuumpv34kytnrdaksjlyr9p",
"npub": "npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6",
"pubkey_hex": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"relays": [
"wss://r.x.com",
"wss://djbas.sadkb.com"
],
"tlv": [
{
"name": "special",
"type": 0,
"value": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
},
{
"name": "relay",
"type": 1,
"value": "wss://r.x.com"
},
{
"name": "relay",
"type": 1,
"value": "wss://djbas.sadkb.com"
}
],
"type": "nprofile"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/57634.jsonfor the price and payment options. - Pay. Call
GET https://tanod.dev/v1/nostr/decode. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Polygon, Solana, eip155:56, Arbitrum One, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.001 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Polygon, Solana, eip155:56, Arbitrum One
- Demand
- 1 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.001 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
| exact | Polygon eip155:137 | USDC | $0.001 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.001 | RMk9k3VC8dr4hhjgFh88rGhjAbzfBzHxJJ5n2fTcqus | 300s |
| exact | eip155:56 eip155:56 | 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d | 1000000000000000 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
| exact | Arbitrum One eip155:42161 | USDC | $0.001 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
| exact | Base eip155:8453 | USDC | $0.001 | 0x593857A4a4F619543ea12394137C3004ce841720 | 604900s |
| exact | Polygon eip155:137 | USDC | $0.001 | 0x593857A4a4F619543ea12394137C3004ce841720 | 604900s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"amountUsd": 0.001,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "1000",
"amountUsd": 0.001,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "RMk9k3VC8dr4hhjgFh88rGhjAbzfBzHxJJ5n2fTcqus",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000",
"amountUsd": 0.001,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:56",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"amount": "1000000000000000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "1000",
"amountUsd": 0.001,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"amountUsd": 0.001,
"maxTimeoutSeconds": 604900
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "1000",
"amountUsd": 0.001,
"maxTimeoutSeconds": 604900
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"address": {
"type": "string"
},
"author_npub": {
"type": [
"string",
"null"
]
},
"author_pubkey_hex": {
"type": [
"string",
"null"
]
},
"event_id_hex": {
"type": "string"
},
"hex": {
"type": "string"
},
"hex_meaning": {
"enum": [
"pubkey",
"event_id"
]
},
"identifier": {
"type": "string"
},
"input_type": {
"enum": [
"nip19",
"nip05"
]
},
"kind": {
"type": [
"integer",
"null"
]
},
"nip05": {
"properties": {
"domain": {
"type": "string"
},
"identifier": {
"type": "string"
},
"name": {
"type": "string"
},
"npub": {
"type": [
"string",
"null"
]
},
"pubkey_hex": {
"type": [
"string",
"null"
]
},
"relays": {
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"enum": [
"found",
"verified",
"mismatch",
"not_found",
"http_error",
"invalid_response",
"redirect_not_allowed"
]
},
"url": {
"type": "string"
},
"verified": {
"type": [
"boolean",
"null"
]
}
},
"type": "object"
},
"nostr_uri": {
"type": "string"
},
"note": {
"type": "string"
},
"npub": {
"type": "string"
},
"pubkey_hex": {
"type": "string"
},
"relays": {
"items": {
"type": "string"
},
"type": "array"
},
"tlv": {
"items": {
"properties": {
"name": {
"enum": [
"special",
"relay",
"author",
"kind",
"unknown"
]
},
"type": {
"type": "integer"
},
"value": {
"type": [
"string",
"integer"
]
}
},
"type": "object"
},
"type": "array"
},
"type": {
"enum": [
"npub",
"note",
"nprofile",
"nevent",
"naddr"
]
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"input_type",
"type",
"hex",
"hex_meaning",
"tlv",
"nostr_uri"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"address": "string",
"author_npub": "string",
"author_pubkey_hex": "string",
"event_id_hex": "string",
"hex": "string",
"hex_meaning": "pubkey",
"identifier": "string",
"input_type": "nip19",
"kind": 0,
"nip05": {
"domain": "string",
"identifier": "string",
"name": "string",
"npub": "string",
"pubkey_hex": "string",
"relays": [
"string"
],
"status": "found",
"url": "string",
"verified": true
},
"nostr_uri": "string",
"note": "string",
"npub": "string",
"pubkey_hex": "string",
"relays": [
"string"
],
"tlv": [
{
"name": "special",
"type": 0,
"value": "string"
}
],
"type": "npub",
"warnings": [
"string"
]
},
"type": "string"
}Examples
curl "https://tanod.dev/v1/nostr/decode"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://tanod.dev/v1/nostr/decode");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://tanod.dev/v1/nostr/decode")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- tanod.dev
- Endpoint
- https://tanod.dev/v1/nostr/decode
- Machine-readable
/resources/57634.json