Skip to content

Your recently ended listings

GET
/v1/address/{address}/ended-listings
curl --request GET \
--url 'https://api.digirare.com/v1/address/example/ended-listings?limit=50' \
--header 'x-session-token: <x-session-token>'

Private owner view of listings that ended in the last 30 days, newest end first, each with a reason derived from stored market facts.

address
required

Mainnet P2TR or P2WPKH address. The SIGNING capability: every signature is verified by reconstructing a BIP-143/BIP-341 witness sighash.

string
limit
integer
default: 50 >= 1 <= 100
cursor
string

Opaque (created_at,id) continuation token returned as next_cursor.

Recently ended seller listings

Media typeapplication/json
object
result
required
Array<object>
object
id
required
string
asset
required

Canonical compact Counterparty key. A subasset uses its A ID; asset_longname is display metadata.

string
seller
required

Mainnet P2TR or P2WPKH address. The SIGNING capability: every signature is verified by reconstructing a BIP-143/BIP-341 witness sighash.

string
utxo_txid
required
string
/^[0-9a-f]{64}$/
utxo_vout
required
integer
price_sats
required
integer
>= 1 <= 9007199254740991
private_to
required
One of:

Mainnet P2TR or P2WPKH address. The SIGNING capability: every signature is verified by reconstructing a BIP-143/BIP-341 witness sighash.

string
counter_of
required
string | null
created_at
required
integer
ended_at
required

When the listing left the book (its last state change).

integer
reason
required

Sold: filled by a DIGIRARE buyer. sold_via_offer: the unit sold through an accepted offer. sold_other_listing: a buyer took another listing of the same unit (its public listing or a private counter). delisted: cancelled by the seller. expired: its expiry passed. counter_offer_ended: a private counter retired because the offer it answered ended. moved: the asset UTXO was spent by a transaction no DIGIRARE fill or settlement names. reorg: a Bitcoin reorg undid the attach or the UTXO. sale_dropped: a DIGIRARE sale was broadcast but never confirmed. withdrawn: taken off the book because the unit stopped verifying, with no finer cause stored.

string
Allowed values: sold sold_via_offer sold_other_listing delisted expired counter_offer_ended moved reorg sale_dropped withdrawn
sale
required
One of:
object
txid
required
string
/^[0-9a-f]{64}$/
price_sats
required
integer
>= 1 <= 9007199254740991
proceeds_sats
required
One of:
integer
>= 1 <= 9007199254740991
confirmed
required
boolean
spent_txid
required
One of:
string
/^[0-9a-f]{64}$/
result_count
required
integer
next_cursor
required
string | null
Example
{
"result": [
{
"reason": "sold"
}
]
}

Stable machine-readable failure

Media typeapplication/json
object
error
required
string
code
required
string
Allowed values: invalid_request unsupported_address_type unauthenticated forbidden not_found method_not_allowed state_changed expired invalid_transaction rate_limited internal_error upstream_unavailable service_unavailable checkout_changed target_unavailable signature_invalid template_mismatch mempool_rejected broadcast_unknown conflict_spend duplicate_funding_slot offer_selection_unavailable attached_delivery_single_item_only insufficient_funds insufficient_asset_balance price_below_minimum listing_price_above_maximum counter_price_invalid self_trade offer_capacity_full open_offer_limit policy_offer_refused
retryable
boolean
mempool_policy

On 422 mempool_rejected from a broadcast: which deterministic node policy refused the bytes. Retrying the same bytes fails the same way. fee_floor: re-quote at a higher fee_rate. chain_too_long: too many unconfirmed ancestors; wait for a confirmation, then retry. truc: a version-3 (TRUC) package rule, such as spending an unconfirmed version-3 output; wait for a confirmation, then retry.

string
Allowed values: fee_floor chain_too_long truc dust nonstandard
mempool_reason

The node’s own reject reason, on mempool_rejected (422) and on state_changed (409) when a broadcast lost to a conflicting or replacing spend.

string
wait_for_confirmation

Present and true when mempool_policy is chain_too_long or truc.

boolean
claims_released

On a checkout or accept completion refused as mempool_rejected: the journaled settlement ended and every listing, bid, and asset claim it held was released (its inputs were proven unspent). The quote or accept is replaced; request a new one.

boolean
refused_listings

Batch listing routes only: every refused item. The first sets the status and code.

Array<object>

One refused item in a batch refusal’s refused_listings array. Nothing in the batch was changed.

object
index
required
integer
listing_id
required
string
status
required
integer
code
required
string
error
required
string
key
additional properties
any
retry_after_seconds

On 429 rate_limited: the exact seconds until the oldest counted request leaves the window; a retry then is admitted (also sent as Retry-After). Limited writes are bucketed per route scope in exact sliding 60-second windows: by session address when a valid x-session-token is present, otherwise by IP, with a per-IP ceiling across sessions. Expensive writes: 20, ceiling 120. Signed completions: 120, ceiling 600. Session minting (/auth/*): 60 per IP. A request refused by any bucket is counted by none.

integer
>= 1
key
additional properties
any
Example
{
"code": "invalid_request",
"mempool_policy": "fee_floor"
}