跳到主要内容

Get Address Transactions

This endpoint allows you to fetch the transaction history for a given XCH address.

Endpoint

GET https://api.spacescan.io/address/transactions/{address}

Parameters

ParameterTypeDescription
addressstringThe XCH address to fetch transactions for
Free API

Use api.spacescan.io for free tier access. See our API Plans for rate limits and features.

Pro API

Use pro-api.spacescan.io with your API key in the x-api-key header. See our API Plans for details.

curl -X GET "https://pro-api.spacescan.io/address/transactions/{address}" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Example

Response

Failed to load API response. Please try again later.

Response Schema

FieldTypeDescription
statusstringThe status of the API request
dataobjectContains the transaction data
data.coinsarrayList of coin transactions
data.rowCountnumberTotal number of transactions
data.cat_balanceobjectCAT (Chia Asset Token) balance information

Coin Transaction Object

Each coin in the data.coins array contains the following fields:

FieldTypeDescription
coin_namestringUnique identifier for the coin
confirmed_blockstringBlock number where the transaction was confirmed
spend_blockstringBlock number where the coin was spent (null if unspent)
parent_coinstringIdentifier of the parent coin
coin_modstringCoin modification type (e.g., "STND" for standard)
owner_addressstringAddress of the coin owner
confirmed_timestringTimestamp of confirmation (ISO 8601 format)
spend_timestringTimestamp of spending (ISO 8601 format, null if unspent)
from_addressstringAddress of the sender
memostringTransaction memo (null if not provided)
amountstringTransaction amount in XCH
amount_mojostringTransaction amount in mojo (smallest unit)
spend_txn_typestringType of spending transaction (null if unspent)
timestampnumberUnix timestamp of the transaction
idstringTransaction ID (null in this example)
coinbasebooleanIndicates if this is a coinbase transaction
confirmed_txn_idstringID of the confirmation transaction
spend_txn_idstringID of the spending transaction (null if unspent)
typestringType of the transaction (e.g., "NAN" for standard)