{"version":"1","protocol":"L402","provider":"l402-rails","name":"l402-gateway","description":"Lightning-native agent APIs: LNURL resolve, NIP-05, Nostr event/zap verify, preimage proof. Pay with lnget.","public_url":"https://api.major-miners.com","llms_txt":"https://api.major-miners.com/.well-known/llms.txt","services":[{"name":"lnurl-resolve","description":"Resolve a lightning address or LNURL-pay URL. Optional amountSats returns a BOLT11. Does not pay.","url":"https://api.major-miners.com/api/lnurl","path":"/api/lnurl","http_method":"POST","protocol":"L402","price_sats":10,"payment_asset":"BTC","payment_network":"Lightning","category":"tools","request_schema":{"type":"object","required":["target"],"additionalProperties":false,"properties":{"target":{"type":"string","description":"Lightning address, lnurl1…, or https LNURL-pay URL"},"amountSats":{"type":"integer","minimum":1}}},"example":{"target":"victoriousinnovation563427@getalby.com"}},{"name":"nostr-nip05","description":"Resolve a Nostr NIP-05 identifier to pubkey/npub; fetches kind-0 lud16 by default.","url":"https://api.major-miners.com/api/nostr","path":"/api/nostr","http_method":"POST","protocol":"L402","price_sats":10,"payment_asset":"BTC","payment_network":"Lightning","category":"tools","request_schema":{"type":"object","required":["target"],"additionalProperties":false,"properties":{"target":{"type":"string","description":"name@domain or bare domain"},"includeProfile":{"type":"boolean","default":true}}},"example":{"target":"jack@cash.app","includeProfile":false}},{"name":"nostr-event-verify","description":"Verify Nostr event id/sig. checkZap extracts kind-9735 bolt11; preimage proves zap settlement.","url":"https://api.major-miners.com/api/nostr-event","path":"/api/nostr-event","http_method":"POST","protocol":"L402","price_sats":10,"payment_asset":"BTC","payment_network":"Lightning","category":"tools","request_schema":{"type":"object","required":["event"],"additionalProperties":false,"properties":{"event":{"type":"object","required":["id","pubkey","created_at","kind","tags","content","sig"],"additionalProperties":true,"properties":{"id":{"type":"string"},"pubkey":{"type":"string"},"created_at":{"type":"number"},"kind":{"type":"number"},"tags":{"type":"array"},"content":{"type":"string"},"sig":{"type":"string"}}},"checkZap":{"type":"boolean"},"preimage":{"type":"string","description":"64-char hex preimage"}}},"example":{"event":{"kind":1,"created_at":1786146549,"tags":[],"content":"l402-smoke","pubkey":"73ae0da6e32f6734a2191f960851f04e769702c941a66e7565c01dbee18ace4d","id":"e30f71d18ed2d3e8233982265e360d94df18de80fa68285dcc5fa980acda33a1","sig":"9bfa6c789dfa17a77b6765166209bc206ce3bbf0d9d2016668bdc7c16de5e4bdc547d4e8b5faea508d46ccb89199109671cc6052a874a4440aff256fc6ac1379"},"checkZap":false}},{"name":"agent-toolkit","description":"Paid tools. Prefer preimage_verify, lnurl_resolve, nip05_resolve, nostr_event_verify, bolt11_decode.","url":"https://api.major-miners.com/api/tool","path":"/api/tool","http_method":"POST","protocol":"L402","price_sats":5,"payment_asset":"BTC","payment_network":"Lightning","category":"tools","request_schema":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","enum":["btc_price","sats_convert","sha256","bolt11_decode","lnurl_resolve","nip05_resolve","preimage_verify","nostr_event_verify","mempool_fees","onchain_tx"]},"args":{"type":"object"}}},"example":{"name":"preimage_verify","args":{"preimage":"0000000000000000000000000000000000000000000000000000000000000000","paymentHash":"0000000000000000000000000000000000000000000000000000000000000000"}}},{"name":"agent-mail-inbox","description":"Create an agent inbox at mail.major-miners.com. 100 sats.","url":"https://api.major-miners.com/api/mail/inboxes","path":"/api/mail/inboxes","http_method":"POST","protocol":"L402","price_sats":100,"payment_asset":"BTC","payment_network":"Lightning","category":"email","request_schema":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"}}},"example":{"label":"agent"}},{"name":"agent-mail-send","description":"Send from an inbox. Outbound is allowlisted until SES production; paid 402 then 403 if recipient is not allowed.","url":"https://api.major-miners.com/api/mail/send","path":"/api/mail/send","http_method":"POST","protocol":"L402","price_sats":50,"payment_asset":"BTC","payment_network":"Lightning","category":"email","request_schema":{"type":"object","required":["inboxId","to","subject","text"],"additionalProperties":false,"properties":{"inboxId":{"type":"string","format":"uuid"},"to":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"subject":{"type":"string"},"text":{"type":"string"}}},"example":{"inboxId":"00000000-0000-0000-0000-000000000001","to":"probe@example.com","subject":"ping","text":"ping"}},{"name":"agent-mail-list","description":"List messages in an inbox. 10 sats.","url":"https://api.major-miners.com/api/mail/list","path":"/api/mail/list","http_method":"POST","protocol":"L402","price_sats":10,"payment_asset":"BTC","payment_network":"Lightning","category":"email","request_schema":{"type":"object","required":["inboxId"],"additionalProperties":false,"properties":{"inboxId":{"type":"string","format":"uuid"},"limit":{"type":"integer","minimum":1,"maximum":50}}},"example":{"inboxId":"00000000-0000-0000-0000-000000000001"}},{"name":"agent-mail-get","description":"Get one message. 10 sats.","url":"https://api.major-miners.com/api/mail/get","path":"/api/mail/get","http_method":"POST","protocol":"L402","price_sats":10,"payment_asset":"BTC","payment_network":"Lightning","category":"email","request_schema":{"type":"object","required":["inboxId","messageId"],"additionalProperties":false,"properties":{"inboxId":{"type":"string","format":"uuid"},"messageId":{"type":"string"}}},"example":{"inboxId":"00000000-0000-0000-0000-000000000001","messageId":"1"}},{"name":"text-transformer","description":"Demo: uppercase | reverse | leetspeak | morse. Prefer LNURL / Nostr tools.","url":"https://api.major-miners.com/api/transform","path":"/api/transform","http_method":"POST","protocol":"L402","price_sats":5,"payment_asset":"BTC","payment_network":"Lightning","category":"tools","request_schema":{"type":"object","required":["text","type"],"additionalProperties":false,"properties":{"text":{"type":"string"},"type":{"type":"string","enum":["uppercase","reverse","leetspeak","morse"]}}},"example":{"text":"ping","type":"uppercase"}},{"name":"mempool-fees","description":"Mempool.space fee ladder (also free at mempool.space).","url":"https://api.major-miners.com/api/fees","path":"/api/fees","http_method":"POST","protocol":"L402","price_sats":10,"payment_asset":"BTC","payment_network":"Lightning","category":"market-data","request_schema":{"type":"object","additionalProperties":false,"properties":{"detail":{"type":"boolean"}}},"example":{"detail":false}},{"name":"onchain-tx","description":"Look up a Bitcoin txid via mempool.space. Does not broadcast.","url":"https://api.major-miners.com/api/tx","path":"/api/tx","http_method":"POST","protocol":"L402","price_sats":10,"payment_asset":"BTC","payment_network":"Lightning","category":"blockchain","request_schema":{"type":"object","required":["txid"],"additionalProperties":false,"properties":{"txid":{"type":"string","minLength":64,"maxLength":64},"includeHex":{"type":"boolean"}}},"example":{"txid":"f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16","includeHex":false}}]}