Skip to content

Commit 7ad24ff

Browse files
authored
feat: add Citrea Testnet Chain (#3216)
* feat:Add Citrea Testnet Chain * Add changeset for Citrea Testnet
1 parent f6fa191 commit 7ad24ff

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Added Citrea Testnet chain.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const citreaTestnet = /*#__PURE__*/ defineChain({
4+
id: 5115,
5+
name: 'Citrea Testnet',
6+
nativeCurrency: { name: 'cBTC', symbol: 'cBTC', decimals: 18 },
7+
rpcUrls: {
8+
default: {
9+
http: ['https://rpc.testnet.citrea.xyz'],
10+
},
11+
},
12+
blockExplorers: {
13+
default: {
14+
name: 'Citrea Explorer',
15+
url: 'https://explorer.testnet.citrea.xyz',
16+
apiUrl: 'https://explorer.testnet.citrea.xyz/api',
17+
},
18+
},
19+
testnet: true,
20+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export { celoAlfajores } from './definitions/celoAlfajores.js'
8484
export { chang } from './definitions/chang.js'
8585
export { chiliz } from './definitions/chiliz.js'
8686
export { chips } from './definitions/chips.js'
87+
export { citreaTestnet } from './definitions/citreaTestnet.js'
8788
export { classic } from './definitions/classic.js'
8889
export { coinbit } from './definitions/coinbit.js'
8990
export { coinex } from './definitions/coinex.js'

0 commit comments

Comments
 (0)