Skip to content

Commit e36f642

Browse files
authored
Add interact.md (#2)
1 parent e5aaa03 commit e36f642

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

docs/basics/img/coin-storage.png

119 KB
Loading
194 KB
Loading

docs/basics/interact.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
sidebar_position: 4
3+
---
4+
5+
# Interact with Subcoin Chain
6+
7+
The [Polkadot-JS Apps](https://polkadot.js.org/apps) is a versatile UI for engaging with a Substrate based node. You can connect to it to inspect the state of UTXO set, call RPCs, potentially transfer coins in the future.
8+
9+
To connect the Polkadot-JS Apps to your local node, open the sidebar and switch to `Development` > `Local Node (127.0.0.1:9944)`.
10+
11+
![Connect to Local Node](./img/connect-to-local-node.png)
12+
13+
## Inspect the State of UTXO Set
14+
15+
Assuming the current best block is #125,954, you may want to examine the UTXO of the coinbase transaction for this block. The Bitcoin transaction ID for this coinbase transaction is `4ae4acf6fcdfec212de5fdcb7e58028764032aacaf194754b7e60fd842acd92f`. You can view it [here](https://www.blockchain.com/explorer/transactions/btc/4ae4acf6fcdfec212de5fdcb7e58028764032aacaf194754b7e60fd842acd92f).
16+
17+
To look up the UTXO:
18+
19+
1. Go to `Developers` > `Chain State`.
20+
2. Paste the txid into the `H256` text box, note that `0x` prefix is necessary.
21+
3. Click the `+` button on the right side to view the details of the coin.
22+
23+
![Coin Storage](./img/coin-storage.png)
24+
25+
If the node you are connected to is an archive node, you will be able to inspect any UTXO at any height throughout the history.
26+
27+
## Additional Resources
28+
29+
- https://polkadot.js.org/docs/substrate/
30+
- https://docs.substrate.io/reference/command-line-tools/polkadot-apps/

0 commit comments

Comments
 (0)