BTCPay Server Store Wallet (On Chain) API

Store Wallet (On Chain) operations

GitHub OpenAPI

Operations 20

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet Get an on-chain wallet's overview · Get store on-chain wallet overview #
Ask an LLM
“What is the balance and status of my store's on-chain wallet?”
“Can I see the overview of a Bitcoin wallet attached to a payment method?”
Tell an agent
Show the on-chain wallet overview for payment method {paymentMethodId} in store {storeId}.
Get the balance and status of wallet {paymentMethodId} in store {storeId}.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/histogram View a wallet's balance histogram · Get store on-chain wallet balance histogram #
Ask an LLM
“How has my store's on-chain wallet balance changed over time?”
“Can I see a histogram of my wallet's balance history?”
Tell an agent
Show the balance histogram for payment method {paymentMethodId} in store {storeId}.
Plot the balance history of wallet {paymentMethodId} in store {storeId}.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/feerate Get the on-chain fee rate for a wallet · Get store on-chain wallet fee rate #
Ask an LLM
“What fee rate should I use to send Bitcoin from my store wallet?”
“Can I target a specific number of blocks for my wallet's transaction confirmation?”
Tell an agent
Get the on-chain fee rate for payment method {paymentMethodId} in store {storeId}.
Show the wallet {paymentMethodId} fee rate for store {storeId} targeting {blockTarget} blocks.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/address Get or generate a wallet receive address · Get store on-chain wallet address #
Ask an LLM
“What is the current receive address for my store's on-chain wallet?”
“Can I force a new wallet address to be generated?”
Tell an agent
Get the receive address for payment method {paymentMethodId} in store {storeId}.
Generate a new wallet address for {paymentMethodId} in store {storeId} with force {forceGenerate}.
DELETE /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/address Unreserve a wallet receive address · UnReserve last store on-chain wallet address #
Ask an LLM
“How do I unreserve the last address my store wallet reserved?”
“Can I release a wallet address back into the pool?”
Tell an agent destructive · confirm first
Unreserve the last receive address for payment method {paymentMethodId} in store {storeId}.
Release the wallet {paymentMethodId} address in store {storeId}.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/transactions List a wallet's on-chain transactions · Get store on-chain wallet transactions #
Ask an LLM
“Which Bitcoin transactions have gone through my store wallet?”
“Can I filter a wallet's transactions by status or label?”
Tell an agent
List the on-chain transactions for payment method {paymentMethodId} in store {storeId}.
Show wallet {paymentMethodId} transactions in store {storeId} with status {statusFilter}.
POST /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/transactions Send Bitcoin from a wallet · Create store on-chain wallet transaction #
Ask an LLM
“How do I send Bitcoin from my store's on-chain wallet?”
“Can I pay with a PayJoin or broadcast the transaction right away?”
Tell an agent
Send {destinations} from payment method {paymentMethodId} in store {storeId}.
Send {destinations} from wallet {paymentMethodId} in store {storeId} at fee rate {feerate}.
POST /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/transactions/broadcast Broadcast a signed wallet transaction · Broadcast an on-chain transaction or finalized PSBT #
Ask an LLM
“How do I broadcast a raw Bitcoin transaction from my store wallet?”
“Can I send a finalized PSBT to my wallet?”
Tell an agent
Broadcast transaction {transaction} for payment method {paymentMethodId} in store {storeId}.
Send the signed wallet transaction {transaction} from {paymentMethodId} in store {storeId}.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/transactions/{transactionId} Get a wallet transaction · Get store on-chain wallet transaction #
Ask an LLM
“What is the status of one transaction in my store wallet?”
“Can I look up a single wallet transaction by ID?”
Tell an agent
Get transaction {transactionId} for payment method {paymentMethodId} in store {storeId}.
Show wallet {paymentMethodId} transaction {transactionId} in store {storeId}.
PATCH /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/transactions/{transactionId} Label or comment on a wallet transaction · Patch store on-chain wallet transaction info #
Ask an LLM
“How do I add a comment to a transaction in my store wallet?”
“Can I change a wallet transaction's label?”
Tell an agent
Set comment {comment} on transaction {transactionId} for payment method {paymentMethodId} in store {storeId}.
Label wallet {paymentMethodId} transaction {transactionId} in store {storeId} with {labels}.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/utxos List a wallet's UTXOs · Get store on-chain wallet UTXOS #
Ask an LLM
“Which unspent Bitcoin outputs does my store wallet hold?”
“Can I see the UTXOs available to spend from a wallet?”
Tell an agent
List the UTXOs for payment method {paymentMethodId} in store {storeId}.
Show spendable outputs in wallet {paymentMethodId} for store {storeId}.
POST /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/generate Generate an on-chain wallet for a payment method · Generate store on-chain wallet #
Ask an LLM
“How do I generate a Bitcoin wallet for a payment method?”
“Can I seed a new wallet with my own mnemonic?”
Tell an agent
Generate an on-chain wallet for payment method {paymentMethodId} in store {storeId}.
Create wallet {paymentMethodId} in store {storeId} from mnemonic {existingMnemonic} with passphrase {passphrase}.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/preview Preview a payment method's addresses · Preview store on-chain payment method addresses #
Ask an LLM
“What addresses would a payment method generate?”
“Can I preview the first few addresses of a payment method?”
Tell an agent
Preview addresses for payment method {paymentMethodId} in store {storeId}.
Show {count} addresses starting at {offset} for {paymentMethodId} in store {storeId}.
POST /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/preview Preview addresses for a proposed derivation scheme · Preview proposed store on-chain payment method addresses #
Ask an LLM
“Can I see which addresses a derivation scheme I supply would produce before saving it?”
“What addresses would a proposed derivation scheme generate for my store's payment method?”
Tell an agent
Preview addresses for derivation scheme {derivationScheme} on payment method {paymentMethodId} in store {storeId}.
Preview {count} addresses from index {offset} of proposed scheme {derivationScheme} for {paymentMethodId} in store {storeId}.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/objects List wallet objects · Get store on-chain wallet objects #
Ask an LLM
“What objects are stored in my store wallet?”
“Can I fetch specific wallet object types by ID?”
Tell an agent
List wallet objects of type {type} for payment method {paymentMethodId} in store {storeId}.
Fetch wallet objects {ids} from {paymentMethodId} in store {storeId}.
POST /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/objects Add or update wallet objects · Add/Update store on-chain wallet objects #
Ask an LLM
“How do I store custom data in my store wallet?”
“Can I add or update a wallet object with links?”
Tell an agent
Add or update wallet object {id} of type {type} in {paymentMethodId} for store {storeId}.
Store {data} in wallet {paymentMethodId} for store {storeId} with links {links}.
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/objects/{objectType}/{objectId} Get a wallet object · Get store on-chain wallet object #
Ask an LLM
“What data is stored in a particular wallet object?”
“Can I fetch a wallet object with its neighbour data?”
Tell an agent
Get wallet object {objectType} {objectId} for payment method {paymentMethodId} in store {storeId}.
Show wallet {objectType} {objectId} in {paymentMethodId} for store {storeId}.
DELETE /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/wallet/objects/{objectType}/{objectId} Remove a wallet object · Remove store on-chain wallet objects #
Ask an LLM
“How do I delete an object from my store wallet?”
“Can I remove a wallet object by type and ID?”
Tell an agent destructive · confirm first
Remove wallet object {objectType} {objectId} from payment method {paymentMethodId} in store {storeId}.
Delete wallet {objectType} {objectId} in {paymentMethodId} for store {storeId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/btcpay:btcpay-store-wallet-on-chain-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

btcpay-store-wallet-on-chain-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BTCPay Greenfield Store Wallet (On Chain) API
  version: v1
  description: '# Introduction


    The BTCPay Server Greenfield API is a REST API. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.


    # Authentication


    You can authenticate either via Basic Auth or an API key. It''s recommended to use an API key for better security. You can create an API key in the BTCPay Server UI under `Account` -> `Manage Account` -> `API keys`. You can restrict the API key for one or multiple stores and for specific permissions. For testing purposes, you can give it the ''Unrestricted access'' permission. On production you should limit the permissions to the actual endpoints you use, you can see the required permission on the API docs at the top of each endpoint under `AUTHORIZATIONS`.


    If you want to simplify the process of creating API keys for your users, you can use the Authorization endpoint to predefine permissions and redirect your users to the BTCPay Server Authorization UI. You can find more information about this on the API Authorization Flow docs page.


    # Usage examples


    Use **Basic Auth** to read store information with cURL:

    ```bash

    BTCPAY_INSTANCE="https://mainnet.demo.btcpayserver.org"

    USER="MyTestUser@gmail.com"

    PASSWORD="notverysecurepassword"

    PERMISSION="btcpay.store.canmodifystoresettings"

    BODY="$(echo "{}" | jq --arg "a" "$PERMISSION" ''. + {permissions:[$a]}'')"


    API_KEY="$(curl -s \

    -H "Content-Type: application/json" \

    --user "$USER:$PASSWORD" \

    -X POST \

    -d "$BODY" \

    "$BTCPAY_INSTANCE/api/v1/api-keys" | jq -r .apiKey)"

    ```


    Use an **API key** to read store information with cURL:

    ```bash

    STORE_ID="yourStoreId"


    curl -s \

    -H "Content-Type: application/json" \

    -H "Authorization: token $API_KEY" \

    -X GET \

    "$BTCPAY_INSTANCE/api/v1/stores/$STORE_ID"

    ```


    You can find more examples on our docs for different programming languages:

    - cURL

    - Javascript/Node.Js

    - PHP'
  contact:
    name: BTCPay Server
    url: https://btcpayserver.org
  license:
    name: MIT
    url: https://github.com/btcpayserver/btcpayserver/blob/master/LICENSE
servers:
- url: /
  description: BTCPay Server Greenfield API
security:
- API_Key: []
  Basic: []
tags:


# --- truncated at 32 KB (50 KB total) ---
# Full source: https://artifacts.apis.io/btcpay/openapi/btcpay-store-wallet-on-chain-api-openapi.yml