Bitcoin Runes
Runes API: catalog, balances and activity
Every etched rune, its etch, mint, transfer and burn log, and balances by address. Look one up by id or name. One key, one call.
1$curl "https://api.secondlayer.tools/v1/index/runes?search=dog&limit=1" \
2 -H "Authorization: Bearer sk-sl_…"
1const { runes } = await sl.index.runes.list({ search: "dog", limit: 1 });
1{
2 "runes": [{
3 "id": "840000:3",
4 "name": "DOGGOTOTHEMOON",
5 "spaced_name": "DOG•GO•TO•THE•MOON",
6 "symbol": "🐕",
7 "divisibility": 5,
8 "supply": "10000000000000000",
9 "etched_height": 840000
10 }]
11}
Webhooks· push
Get pushed instead
Get a post on every transfer of one rune. A name or an id both work.
1import { trigger } from "@secondlayer/sdk";
2
3await sl.webhooks.create({
4 name: "dog-transfers",
5 url: "https://my-app.com/webhook",
6 triggers: [trigger.runeTransfer({ rune: "840000:3" })],
7});