Skip to content

feat: add T-Rex testnet chain #7540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/blue-planets-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

add trextestnet to chains package
17 changes: 17 additions & 0 deletions packages/thirdweb/src/chains/chain-definitions/t-rex-testnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineChain } from "../utils.js";

/**
* @chain
*/
export const tRexTestnet = /*@__PURE__*/ defineChain({
blockExplorers: [
{
name: "T-Rex Testnet Block Explorer",
url: "https://testnet.trex.xyz/",
},
],
id: 1962,
name: "T-Rex Testnet",
nativeCurrency: { decimals: 18, name: "Ether", symbol: "ETH" },
testnet: true,
});
1 change: 1 addition & 0 deletions packages/thirdweb/src/exports/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export { scrollAlphaTestnet } from "../chains/chain-definitions/scroll-alpha-tes
export { scrollSepoliaTestnet } from "../chains/chain-definitions/scroll-sepolia-testnet.js";
export { sepolia } from "../chains/chain-definitions/sepolia.js";
export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js";
export { tRexTestnet } from "../chains/chain-definitions/t-rex-testnet.js";
export { treasure } from "../chains/chain-definitions/treasure.js";
export { treasureTopaz } from "../chains/chain-definitions/treasureTopaz.js";
export { xai } from "../chains/chain-definitions/xai.js";
Expand Down
Loading