|
| 1 | +--- |
| 2 | +title: Insights |
| 3 | +description: Guide to using blockchain explorers in SettleMint |
| 4 | +--- |
| 5 | + |
| 6 | +import Tabs from '@theme/Tabs'; |
| 7 | +import TabItem from '@theme/TabItem'; |
| 8 | + |
1 | 9 | # Insights |
2 | 10 |
|
3 | | -To view and inspect transactions in your blockchain application, SettleMint provides insightful dashboards via the integrated Blockscout blockchain explorer. |
| 11 | +To view and inspect transactions in your blockchain application, SettleMint provides insightful dashboards via integrated blockchain explorers: |
| 12 | +- **Blockscout** - For EVM compatible networks (Besu, Polygon Edge) |
| 13 | +- **Hyperledger Explorer** - For Fabric networks |
| 14 | +- **Otterscan** - Alternative EVM explorer with advanced features |
4 | 15 |
|
5 | | -**Blockscout** can be hooked up to any of your permissioned EVM compatible blockchain networks running in SettleMint. This includes **Hyperledger Besu and Polygon Edge**. |
| 16 | +## Add Blockchain Explorer |
6 | 17 |
|
7 | | -## Adding the blockchain explorer |
| 18 | +<Tabs> |
| 19 | +<TabItem value="platform-ui" label="Platform UI"> |
8 | 20 |
|
9 | 21 | Navigate to the **application** where you want to add a blockchain explorer. Click **Insights** in the left navigation, and then click **Add Insights**. This opens a form. |
10 | 22 |
|
11 | | -Follow these steps to add the blockchain explorer: |
12 | | - |
| 23 | +Follow these steps: |
13 | 24 | 1. Select **Blockchain Explorer** |
14 | | -2. Select the target **blockchain node** for the blockchain explorer and click **Continue**. Make sure you have a **Hyperledger Besu node or Polygon Edge node** in place. |
15 | | -3. Enter a **name** for this instance of the blockchain explorer. |
16 | | -4. Choose a **deployment plan**. Select the type, cloud provider, region and resource pack. [More about deployment plans](launch-platform/managed-cloud-deployment/3_deployment-plans.md) |
17 | | -5. You see the **resource cost** for this blockchain explorer displayed at the bottom of the form. Click **Confirm** to add the blockchain explorer. |
| 25 | +2. Select the target **blockchain node** and click **Continue** |
| 26 | +3. Enter a **name** for your explorer instance |
| 27 | +4. Configure deployment settings (provider, region, size) |
| 28 | +5. Click **Confirm** to add the explorer |
| 29 | + |
| 30 | +</TabItem> |
| 31 | +<TabItem value="sdk-cli" label="SDK CLI"> |
| 32 | + |
| 33 | +First ensure you're authenticated: |
| 34 | +```bash |
| 35 | +settlemint login |
| 36 | +``` |
| 37 | + |
| 38 | +Create blockchain explorer: |
| 39 | +```bash |
| 40 | +# Create blockchain explorer |
| 41 | +settlemint platform create insights blockscout <name> |
| 42 | + |
| 43 | +# Get information about the command and all available options |
| 44 | +settlemint platform create insights blockscout --help |
| 45 | +``` |
| 46 | + |
| 47 | +</TabItem> |
| 48 | +<TabItem value="sdk-js" label="SDK JS"> |
| 49 | + |
| 50 | +For a full example of how to create a blockchain explorer using the SDK, see the [Blockscout SDK API Reference](https://www.npmjs.com/package/@settlemint/sdk-blockscout#api-reference). |
| 51 | + |
| 52 | +</TabItem> |
| 53 | +</Tabs> |
| 54 | + |
| 55 | +## Manage Explorer |
| 56 | + |
| 57 | +<Tabs> |
| 58 | +<TabItem value="platform-ui" label="Platform UI"> |
| 59 | + |
| 60 | +Navigate to your explorer and click **Manage insights** to: |
| 61 | +- View explorer details and status |
| 62 | +- Monitor health status |
| 63 | +- Access the explorer interface |
| 64 | +- Update configurations |
| 65 | + |
| 66 | +Current status values: |
| 67 | +- `DEPLOYING` - Initial deployment in progress |
| 68 | +- `COMPLETED` - Running normally |
| 69 | +- `FAILED` - Deployment or operation failed |
| 70 | +- `PAUSED` - Explorer is paused |
| 71 | +- `RESTARTING` - Explorer is restarting |
| 72 | + |
| 73 | +Health status indicators: |
| 74 | +- `HEALTHY` - Operating normally |
| 75 | +- `HAS_INDEXING_BACKLOG` - Processing backlog |
| 76 | +- `NOT_HA` - High availability issue |
| 77 | +- `NO_PEERS` - Network connectivity issue |
| 78 | + |
| 79 | +</TabItem> |
| 80 | +<TabItem value="sdk-cli" label="SDK CLI"> |
| 81 | + |
| 82 | +```bash |
| 83 | +# List explorers |
| 84 | +settlemint platform list services --type insights |
| 85 | + |
| 86 | +# Restart explorer |
| 87 | +settlemint platform restart insights blockscout <name> |
| 88 | +``` |
| 89 | + |
| 90 | +</TabItem> |
| 91 | +<TabItem value="sdk-js" label="SDK JS"> |
| 92 | + |
| 93 | +```typescript |
| 94 | +// List explorers |
| 95 | +const listExplorers = async () => { |
| 96 | + const explorers = await client.insights.list("your-app"); |
| 97 | + console.log('Explorers:', explorers); |
| 98 | +}; |
| 99 | + |
| 100 | +// Get explorer details |
| 101 | +const getExplorer = async () => { |
| 102 | + const explorer = await client.insights.read("explorer-unique-name"); |
| 103 | + console.log('Explorer details:', explorer); |
| 104 | +}; |
| 105 | + |
| 106 | +// Restart explorer |
| 107 | +const restartExplorer = async () => { |
| 108 | + await client.insights.restart("explorer-unique-name"); |
| 109 | +}; |
| 110 | +``` |
| 111 | + |
| 112 | +</TabItem> |
| 113 | +</Tabs> |
| 114 | + |
| 115 | +## Using the Explorer |
18 | 116 |
|
19 | | -## Using the blockchain explorer |
| 117 | +When the blockchain explorer is deployed and running successfully, you can: |
20 | 118 |
|
21 | | -When the blockchain explorer is deployed and running successfully, click it from the list and start using it. Click the **Interface tab** to access the web UI. You can view this in full screen mode by clicking **View in fullscreen mode**. |
| 119 | +1. Access the web interface through the **Interface tab** |
| 120 | +2. View in fullscreen mode for better visibility |
| 121 | +3. Inspect blocks, transactions, addresses and balances |
22 | 122 |
|
23 | | -You can inspect all blocks, transactions, addresses and balances. |
| 123 | +Key features: |
| 124 | +- View latest blocks and transactions |
| 125 | +- Search by block number, transaction hash, or address |
| 126 | +- Inspect transaction details and status |
| 127 | +- View account balances and token transfers |
| 128 | +- Monitor smart contract interactions |
24 | 129 |
|
25 | | -Click a block in the latest Blocks section to inspect its transactions, or click a transaction form the Transactions section to view its details. You can also click View all Blocks or View all Transactions button to view the full list of transactions or blocks. |
| 130 | + |
26 | 131 |
|
27 | | - |
| 132 | +### Transaction Details |
| 133 | +Click a Transaction hash to see detailed information including: |
| 134 | +- Gas usage and fees |
| 135 | +- Input data and events |
| 136 | +- Status and confirmations |
| 137 | +- Related addresses |
28 | 138 |
|
29 | | -Click a Transaction hash to see the Transaction Details |
| 139 | + |
30 | 140 |
|
31 | | - |
| 141 | +### Address Details |
| 142 | +Click an Account address to view: |
| 143 | +- Balance and token holdings |
| 144 | +- Transaction history |
| 145 | +- Contract interactions |
| 146 | +- Analytics and graphs |
32 | 147 |
|
33 | | -Click an Account address to see the Address Details |
| 148 | + |
34 | 149 |
|
35 | | - |
| 150 | +:::info Note |
| 151 | +All operations require appropriate permissions in your workspace. |
| 152 | +::: |
0 commit comments