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:

  1. Acquire some Sepolia ETH from a Sepolia faucet

  2. Bridge your tokens to Hashkey Chain Testnet using our bridge interface

  3. 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

  1. 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

  2. In Remix's "Deploy and Run Transactions" tab, select "Injected Provider - MetaMask"

  3. Connect your wallet and select the Hashkey Chain Testnet

  4. 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

Last updated