Skip to content

Commit c5b31b5

Browse files
nhussein11Telucero
andauthored
[Add] - connect to kusama page (#769)
* fix: adding connect to kusama page * Apply suggestions from code review Co-authored-by: Taylor Lucero <[email protected]> * llms * Apply suggestions from code review Co-authored-by: Taylor Lucero <[email protected]> * fix: llms --------- Co-authored-by: Taylor Lucero <[email protected]>
1 parent 70aca9e commit c5b31b5

File tree

4 files changed

+193
-0
lines changed

4 files changed

+193
-0
lines changed

develop/smart-contracts/.pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ nav:
33
- index.md
44
- 'Overview': overview.md
55
- 'Connect to Polkadot': connect-to-polkadot.md
6+
- 'Connect to Kusama': connect-to-kusama.md
67
- 'Wallets': wallets.md
78
- 'Local Development Node': local-development-node.md
89
- dev-environments
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
title: Connect to Kusama
3+
description: Explore how to connect to Kusama Hub for developing and testing smart contracts in a live environment with real monetary value.
4+
---
5+
6+
# Connect to Kusama
7+
8+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
9+
10+
<div class="button-wrapper">
11+
<a href="#" class="md-button connectMetaMask" value="kusamaHub">Connect to Kusama Hub</a>
12+
</div>
13+
14+
For more information about how to connect to a Polkadot network, please check the [Wallets](/develop/smart-contracts/wallets/){target=\_blank} guide.
15+
16+
!!! info "Production Environment"
17+
Kusama Hub offers a live environment for deploying smart contracts. Please note that the most recent version of Polkadot's Ethereum-compatible stack is available on the TestNet; however, you can also deploy it to the Kusama Hub for production use.
18+
19+
20+
## Networks Details
21+
22+
Developers can leverage smart contracts on Kusama Hub for live production deployments. This section outlines the network specifications and connection details.
23+
24+
=== "Kusama Hub"
25+
26+
Network name
27+
```text
28+
Kusama Hub
29+
```
30+
---
31+
Currency symbol
32+
```text
33+
KSM
34+
```
35+
---
36+
37+
Chain ID
38+
```text
39+
420420418
40+
```
41+
---
42+
43+
RPC URL
44+
```text
45+
https://kusama-asset-hub-eth-rpc.polkadot.io
46+
```
47+
---
48+
49+
Block explorer URL
50+
```text
51+
https://blockscout-kusama-asset-hub.parity-chains-scw.parity.io/
52+
```
53+
---
54+
55+
## Important Deployment Considerations
56+
57+
While the compatibility with regular EVM codebases is still being maximized, some recommendations include:
58+
59+
- **Leverage [Hardhat](/develop/smart-contracts/dev-environments/hardhat){target=\_blank}** to compile, deploy, and interact with your contract.
60+
- **Use MetaMask** to interact with your dApp (note that using MetaMask can sometimes lead to `Invalid transaction` errors - this is actively being worked on and will be fixed soon).
61+
- **Avoid Remix** for deployment as MetaMask enforces a 48kb size limit when using the [Remix IDE](/develop/smart-contracts/dev-environments/remix){target=\_blank}, which is why Hardhat Polkadot is recommended for deployment.
62+
63+
Kusama Hub is a live environment. Ensure your contracts are thoroughly tested before deployment, as transactions on Kusama Hub involve real KSM tokens and **cannot be reversed**.
64+
65+
## Where to Go Next
66+
67+
For your next steps, explore the various smart contract guides demonstrating how to use and integrate different tools and development environments into your workflow.
68+
69+
<div class="grid cards" markdown>
70+
71+
- <span class="badge guide">Guide</span> **Deploy your first contract with Hardhat**
72+
73+
---
74+
75+
Explore the recommended smart contract development and deployment process on Kusama Hub using Hardhat.
76+
77+
[:octicons-arrow-right-24: Build with HardHat](/develop/smart-contracts/dev-environments/hardhat/)
78+
79+
- <span class="badge guide">Guide</span> **Interact with the blockchain using viem**
80+
81+
---
82+
83+
Use viem for interacting with Ethereum-compatible chains to deploy and interact with smart contracts on Kusama Hub.
84+
85+
[:octicons-arrow-right-24: Build with viem](/develop/smart-contracts/libraries/viem/)
86+
87+
</div>

js/connect-to-metamask.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ const supportedNetworks = {
1212
decimals: 18,
1313
},
1414
},
15+
kusamaHub: {
16+
name: 'Kusama Hub',
17+
chainId: '0x190f1b42', //Hex value of "420420418"
18+
chainName: 'Kusama Hub TestNet',
19+
rpcUrls: ['https://kusama-asset-hub-eth-rpc.polkadot.io'],
20+
blockExplorerUrls: ['https://blockscout-kusama-asset-hub.parity-chains-scw.parity.io/'],
21+
nativeCurrency: {
22+
name: 'Kusama Token',
23+
symbol: 'KSM',
24+
decimals: 18,
25+
},
26+
}
1527
};
1628

1729
/*

llms.txt

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Doc-Page: https://docs.polkadot.com/develop/parachains/testing/
3838
Doc-Page: https://docs.polkadot.com/develop/parachains/testing/mock-runtime/
3939
Doc-Page: https://docs.polkadot.com/develop/parachains/testing/pallet-testing/
4040
Doc-Page: https://docs.polkadot.com/develop/smart-contracts/block-explorers/
41+
Doc-Page: https://docs.polkadot.com/develop/smart-contracts/connect-to-kusama/
4142
Doc-Page: https://docs.polkadot.com/develop/smart-contracts/connect-to-polkadot/
4243
Doc-Page: https://docs.polkadot.com/develop/smart-contracts/dev-environments/foundry/
4344
Doc-Page: https://docs.polkadot.com/develop/smart-contracts/dev-environments/hardhat/
@@ -6859,6 +6860,98 @@ Routescan delivers multi-chain explorer capabilities with specialized support fo
68596860
![](/images/develop/smart-contracts/block-explorers/block-explorers-3.webp) -->
68606861
--- END CONTENT ---
68616862

6863+
Doc-Content: https://docs.polkadot.com/develop/smart-contracts/connect-to-kusama/
6864+
--- BEGIN CONTENT ---
6865+
---
6866+
title: Connect to Kusama
6867+
description: Explore how to connect to Kusama Hub for developing and testing smart contracts in a live environment with real monetary value.
6868+
---
6869+
6870+
# Connect to Kusama
6871+
6872+
!!! smartcontract "PolkaVM Preview Release"
6873+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
6874+
6875+
<div class="button-wrapper">
6876+
<a href="#" class="md-button connectMetaMask" value="kusamaHub">Connect to Kusama Hub</a>
6877+
</div>
6878+
6879+
For more information about how to connect to a Polkadot network, please check the [Wallets](/develop/smart-contracts/wallets/){target=\_blank} guide.
6880+
6881+
!!! info "Production Environment"
6882+
Kusama Hub offers a live environment for deploying smart contracts. Please note that the most recent version of Polkadot's Ethereum-compatible stack is available on the TestNet; however, you can also deploy it to the Kusama Hub for production use.
6883+
6884+
6885+
## Networks Details
6886+
6887+
Developers can leverage smart contracts on Kusama Hub for live production deployments. This section outlines the network specifications and connection details.
6888+
6889+
=== "Kusama Hub"
6890+
6891+
Network name
6892+
```text
6893+
Kusama Hub
6894+
```
6895+
---
6896+
Currency symbol
6897+
```text
6898+
KSM
6899+
```
6900+
---
6901+
6902+
Chain ID
6903+
```text
6904+
420420418
6905+
```
6906+
---
6907+
6908+
RPC URL
6909+
```text
6910+
https://kusama-asset-hub-eth-rpc.polkadot.io
6911+
```
6912+
---
6913+
6914+
Block explorer URL
6915+
```text
6916+
https://blockscout-kusama-asset-hub.parity-chains-scw.parity.io/
6917+
```
6918+
---
6919+
6920+
## Important Deployment Considerations
6921+
6922+
While the compatibility with regular EVM codebases is still being maximized, some recommendations include:
6923+
6924+
- **Leverage [Hardhat](/develop/smart-contracts/dev-environments/hardhat){target=\_blank}** to compile, deploy, and interact with your contract.
6925+
- **Use MetaMask** to interact with your dApp (note that using MetaMask can sometimes lead to `Invalid transaction` errors - this is actively being worked on and will be fixed soon).
6926+
- **Avoid Remix** for deployment as MetaMask enforces a 48kb size limit when using the [Remix IDE](/develop/smart-contracts/dev-environments/remix){target=\_blank}, which is why Hardhat Polkadot is recommended for deployment.
6927+
6928+
Kusama Hub is a live environment. Ensure your contracts are thoroughly tested before deployment, as transactions on Kusama Hub involve real KSM tokens and **cannot be reversed**.
6929+
6930+
## Where to Go Next
6931+
6932+
For your next steps, explore the various smart contract guides demonstrating how to use and integrate different tools and development environments into your workflow.
6933+
6934+
<div class="grid cards" markdown>
6935+
6936+
- <span class="badge guide">Guide</span> **Deploy your first contract with Hardhat**
6937+
6938+
---
6939+
6940+
Explore the recommended smart contract development and deployment process on Kusama Hub using Hardhat.
6941+
6942+
[:octicons-arrow-right-24: Build with HardHat](/develop/smart-contracts/dev-environments/hardhat/)
6943+
6944+
- <span class="badge guide">Guide</span> **Interact with the blockchain using viem**
6945+
6946+
---
6947+
6948+
Use viem for interacting with Ethereum-compatible chains to deploy and interact with smart contracts on Kusama Hub.
6949+
6950+
[:octicons-arrow-right-24: Build with viem](/develop/smart-contracts/libraries/viem/)
6951+
6952+
</div>
6953+
--- END CONTENT ---
6954+
68626955
Doc-Content: https://docs.polkadot.com/develop/smart-contracts/connect-to-polkadot/
68636956
--- BEGIN CONTENT ---
68646957
---

0 commit comments

Comments
 (0)