From f047bb7fe67f1f9f0178dfe0aae0c212ee2654b8 Mon Sep 17 00:00:00 2001 From: "leo.shi" <554601845@qq.com> Date: Tue, 26 Aug 2025 10:26:27 +0800 Subject: [PATCH] [SDK] Add Hashkey chain configuration --- .../chain-definitions/hashkey-testnet.ts | 22 +++++++++++++++++++ .../src/chains/chain-definitions/hashkey.ts | 21 ++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 packages/thirdweb/src/chains/chain-definitions/hashkey-testnet.ts create mode 100644 packages/thirdweb/src/chains/chain-definitions/hashkey.ts diff --git a/packages/thirdweb/src/chains/chain-definitions/hashkey-testnet.ts b/packages/thirdweb/src/chains/chain-definitions/hashkey-testnet.ts new file mode 100644 index 00000000000..4b8e006be4e --- /dev/null +++ b/packages/thirdweb/src/chains/chain-definitions/hashkey-testnet.ts @@ -0,0 +1,22 @@ +import { defineChain } from "../utils.js"; + +/** + * @chain + */ +export const HashkeyTestnet = /*@__PURE__*/ defineChain({ + blockExplorers: [ + { + name: "Hashkey Explorer", + url: "https://testnet-explorer.hsk.xyz", + }, + ], + rpc: "https://testnet.hsk.xyz", + id: 133, + name: "Hashkey Testnet", + nativeCurrency: { + decimals: 18, + name: "HashKey Platform Token", + symbol: "HSK", + }, + testnet: true, +}); diff --git a/packages/thirdweb/src/chains/chain-definitions/hashkey.ts b/packages/thirdweb/src/chains/chain-definitions/hashkey.ts new file mode 100644 index 00000000000..b615b05f09a --- /dev/null +++ b/packages/thirdweb/src/chains/chain-definitions/hashkey.ts @@ -0,0 +1,21 @@ +import { defineChain } from "../utils.js"; + +/** + * @chain + */ +export const Hashkey = /*@__PURE__*/ defineChain({ + blockExplorers: [ + { + name: "Hashkey Explorer", + url: "https://hashkey.blockscout.com/", + }, + ], + rpc: "https://mainnet.hsk.xyz", + id: 177, + name: "Hashkey", + nativeCurrency: { + decimals: 18, + name: "HashKey Platform Token", + symbol: "HSK", + }, +});