Skip to content

Commit 4051ee9

Browse files
feat(cronos): add cronos to infra chains
1 parent 1b66a73 commit 4051ee9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

account-kit/infra/src/chains.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import {
2727
worldchainSepolia as vwcs,
2828
hyperliquid as vhyperliquid,
2929
hyperliquidEvmTestnet as vhyperliquidEvmTestnet,
30+
cronos as vCronos,
31+
cronosTestnet as vCronosTesnet,
3032
} from "viem/chains";
3133

3234
export type AlchemyChainConfig = {
@@ -910,3 +912,23 @@ export const hyperliquidEvmTestnet: Chain = {
910912
},
911913
},
912914
};
915+
916+
export const cronos: Chain = {
917+
...vCronos,
918+
rpcUrls: {
919+
...vCronos.rpcUrls,
920+
alchemy: {
921+
http: ["https://cronos-mainnet.g.alchemy.com/v2"],
922+
},
923+
},
924+
};
925+
926+
export const cronosTestnet: Chain = {
927+
...vCronosTesnet,
928+
rpcUrls: {
929+
...vCronosTesnet.rpcUrls,
930+
alchemy: {
931+
http: ["https://cronos-testnet.g.alchemy.com/v2"],
932+
},
933+
},
934+
};

account-kit/infra/src/exports/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export {
6060
worldl3devnet,
6161
hyperliquid,
6262
hyperliquidEvmTestnet,
63+
cronos,
64+
cronosTestnet,
6365
} from "../chains.js";
6466
export type * from "../client/decorators/smartAccount.js";
6567
export { alchemyActions } from "../client/decorators/smartAccount.js";

0 commit comments

Comments
 (0)