API v1 docs
The API is authenticated via URL parameter to decrease implementation difficulty for low-code or no-code users, such as BotGhost users.
The API base URL will always be https://api.meltfinance.org.
Get the current Bitcoin price
GET /v1/btcprice
{
"status": "success",
"message": "97498.37"
}Get account balance
GET /v1/balance?apikey=YOUR_API_KEY
{
"balance": 2317800,
"balance_satoshi": 3782497370000,
"btc_balance": 3782500000,
"status": "success"
}{
"status": "error",
"message": "Invalid API key."
}Get account info
GET /v1/info?apikey=YOUR_API_KEY
Get account transactions
GET /v1/transactions?apikey=YOUR_API_KEY&limit=500
Create invoice
GET /v1/invoices/create?apikey=YOUR_API_KEY&amount=69420¤cy=sat&memo=Sigma%20Payment
Pay invoice
GET /v1/invoices/pay?apikey=YOUR_API_KEY&invoice=YOUR_INVOICE_HERE
Decode invoice
GET /v1/invoices/decode?invoice=YOUR_INVOICE_HERE
Pay LNURL or LN address
GET /v1/lnurl/pay?apikey=YOUR_API_KEY&object=YOUR_LNURL_HERE&amount=69420&memo=MEMO_HERE
Withdraw from a LNURLw
GET /v1/lnurl/withdraw?apikey=YOUR_API_KEY&lnurl=YOUR_LNURLW_HERE
Last updated