Developer QuickStart
With HashKey Chain, you can use familiar Ethereum development tools since it maintains EVM compatibility. Your existing smart contract development and testing tools will work seamlessly - you'll just need to point them to a HashKey Chain RPC Provider.
Acquiring Native Token
HashKey Chain uses HSK as its native currency, which is needed to pay transaction fees for deploying and interacting with the network.
To start building on HashKey Chain, we recommend beginning with the HashKey Chain Testnet. You'll first need to:
- Acquire some Sepolia ETH from a Sepolia faucet
- Bridge your tokens to HashKey Chain Testnet using our bridge interface
- You'll receive testnet HSK for development and testing
Network Configuration
HashKey Chain Testnet
Use the table below to configure your Ethereum tools to the HashKey Chain Testnet:
Network Name | HashKey Chain Testnet | Ethereum Sepolia |
---|---|---|
RPC URL | https://hashKeychain-testnet.alt.technology | https://rpc2.sepolia.org |
Chain ID | 133 | 11155111 |
Currency Symbol | HSK | ETH |
Block Explorer URL | https://explorer.hsk.xyz | https://sepolia.etherscan.io |
Configure your tooling
Hardhat
Modify your Hardhat config file hardhat.config.ts
:
const config: HardhatUserConfig = {
networks: {
hashkeyTestnet: {
url: "https://hashkeychain-testnet.alt.technology" || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
chainId: 133
},
},
};
Foundry
To deploy using the HashKey Chain Testnet, run:
forge create ... --rpc-url=https://hashkeychain-testnet.alt.technology --chain-id 133
Remix Web IDE
- Set up MetaMask with HashKey Chain Testnet using these parameters:
- Network Name: HashKey Chain Testnet
- RPC URL: https://hashkeychain-testnet.alt.technology
- Chain ID: 133
- Currency Symbol: HSK
- In Remix's "Deploy and Run Transactions" tab, select "Injected Provider - MetaMask"
- Connect your wallet and select the HashKey Chain Testnet
- Deploy your contract
Truffle
Configure your truffle.js
:
const HDWalletProvider = require("@truffle/hdwallet-provider")
module.exports = {
networks: {
hashkeyTestnet: {
provider: () =>
new HDWalletProvider(process.env.PRIVATE_KEY, "https://hashkeychain-testnet.alt.technology"),
network_id: 133,
},
}
}
ethers.js
Set up a Hashkey Chain Testnet provider:
import { ethers } from "ethers"
const provider = new ethers.providers.JsonRpcProvider("https://hashkeychain-testnet.alt.technology")
Additional Resources
- Visit our documentation portal for detailed guides
- Check out the block explorer at https://explorer.hsk.xyz to verify transactions and contracts
- Use our bridge interface to move tokens between Ethereum Sepolia and Hashkey Chain Testnet