Subfrost API Documentation

Welcome to the Subfrost API. This service provides access to Bitcoin, Ordinals, Runes, and Alkanes data.

Data API (REST)

Base URL: https:///v4/api

All endpoints expect POST requests with a JSON body unless otherwise noted.

General

Bitcoin Price

Alkanes

Balance

AMM

Pools

Storage

JSON-RPC Endpoint

URL: https:///v4/jsonrpc

To execute these methods remotely, send a POST request to the endpoint with a standard JSON-RPC 2.0 payload:

{
  "jsonrpc": "2.0",
  "method": "method_name",
  "params": [ ... ],
  "id": 1
}

Method Naming Convention:

Lua Scripting Context

When executing Lua scripts via sandshrew_evalscript or sandshrew_evalsaved, a global table _RPC is available.

Naming Convention for `_RPC` Methods:

Examples:

Esplora (Electrs) Methods

Address Methods

Transaction Methods

Block Methods

Mempool Methods

Fee Methods

Ord Methods

Block Methods

Inscription Methods

Output Methods

Rune Methods

Sat Methods

Child/Parent Methods

Collection Methods

Bitcoin Core RPC Methods

Blockchain

Mining

Network

Raw Transactions

Metashrew Methods

View Methods

Alkanes Methods (via metashrew_view)

All alkanes methods are forwarded to metashrew_view internally:

Sandshrew Methods

Utility Methods

Scripting Methods