Exchange Integration
SpaceScan.io is the leading Chia blockchain explorer, recognized by Chia.net and its ecosystem, and seamlessly integrated into Chia’s native wallets. Offering exceptional reliability, high availability, and comprehensive API support, we provide exchanges with the most dependable solution to:
- Track transactions and balances in real-time
- Verify blockchain data with confidence
- Provide users with easy access to transaction history
This guide explains how to integrate Spacescan.io links into your exchange platform to provide users with detailed information about Chia (XCH) addresses, transactions, and blocks.
Address Explorer Integration
You can link any XCH address to Spacescan.io by appending the address to the base URL:
https://www.spacescan.io/address/{xch_address}
Example
https://www.spacescan.io/address/xch1a6cd558gqsz2hch5pt0l8mx7zhavf32q5lyde09zjtqcmkelr9ns59k0j8
The address explorer shows:
- Current balance
- Transaction history
- Incoming/outgoing transactions
- NFT holdings
- CAT token balances
Transaction Explorer Integration
To link to transaction details, append the transaction/coin ID to the base URL:
https://www.spacescan.io/coin/{transaction_id}
Example
https://www.spacescan.io/coin/0x99ca7ff010b9e26176d998288006f1efcac9d84af3655a0152e0d44b5d3def1d
The transaction explorer shows:
- Transaction amount
- Sender and recipient addresses
- Transaction timestamp
- Block confirmation details
- Transaction status
Block Explorer Integration
To link to block details, append the block height to the base URL:
https://www.spacescan.io/block/{block_height}
Example
https://www.spacescan.io/block/6325004
The block explorer shows:
- Block hash
- Block timestamp
- Farmer address
- Block rewards
- Transactions in the block
- Block weight and other metadata
Implementation Examples
HTML Link
<!-- Address Link -->
<a href="https://www.spacescan.io/address/xch1a6cd558gqsz2hch5pt0l8mx7zhavf32q5lyde09zjtqcmkelr9ns59k0j8" target="_blank">
View on Spacescan
</a>
<!-- Transaction Link -->
<a href="https://www.spacescan.io/coin/0x99ca7ff010b9e26176d998288006f1efcac9d84af3655a0152e0d44b5d3def1d" target="_blank">
View Transaction
</a>
<!-- Block Link -->
<a href="https://www.spacescan.io/block/6325004" target="_blank">
View Block
</a>
JavaScript
function getSpacescanUrl(type, id) {
const baseUrl = 'https://www.spacescan.io';
switch(type) {
case 'address':
return `${baseUrl}/address/${id}`;
case 'transaction':
return `${baseUrl}/coin/${id}`;
case 'block':
return `${baseUrl}/block/${id}`;
default:
throw new Error('Invalid type');
}
}
// Usage
const addressUrl = getSpacescanUrl('address', 'xch1a6cd558gqsz2hch5pt0l8mx7zhavf32q5lyde09zjtqcmkelr9ns59k0j8');
const txUrl = getSpacescanUrl('transaction', '0x99ca7ff010b9e26176d998288006f1efcac9d84af3655a0152e0d44b5d3def1d');
const blockUrl = getSpacescanUrl('block', '6325004');
Best Practices
-
Always open Spacescan links in a new tab using
target="_blank"
to preserve the user's exchange session. -
Include tooltips or labels to clearly indicate that the link will take users to Spacescan.io.
-
Consider adding the Spacescan logo next to explorer links for better user recognition.
Support
For technical support or questions about integration, please contact:
- Email: support@spacescan.io
- Discord: Join Spacescan Discord
- Twitter: @spacescan_io