Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

add Rootstock network: RSK Mainnet and RSK Testnet #486

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 2 additions & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ const { chains, provider } = configureChains(
- `polygonMumbai`
- `pulsechain`
- `pulsechainV4`
- `rskMainnet`
- `rskTestnet`
- `skaleBlockBrawlers`
- `skaleCalypso`
- `skaleCalypsoTestnet`
Expand Down
2 changes: 2 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ export { qTestnet } from './qTestnet'
export { rollux } from './rollux'
export { rolluxTestnet } from './rolluxTestnet'
export { ronin } from './ronin'
export { rskMainnet } from './rskMainnet'
export { rskTestnet } from './rskTestnet'
export { saigon } from './saigon'
export { scrollSepolia } from './scrollSepolia'
export { scrollTestnet } from './scrollTestnet'
Expand Down
36 changes: 36 additions & 0 deletions packages/chains/src/rskMainnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { Chain } from './types'

export const rskMainnet = {
id: 30,
name: 'RSK Mainnet',
network: 'rsk',
nativeCurrency: {
decimals: 18,
name: 'RSK Mainnet',
symbol: 'RBTC',
},
rpcUrls: {
public: {
http: ['https://public-node.rsk.co'],
},
default: {
http: ['https://public-node.rsk.co'],
},
},
blockExplorers: {
etherscan: {
name: 'RSK Explorer',
url: 'https://explorer.rsk.co',
},
default: {
name: 'RSK Explorer',
url: 'https://explorer.rsk.co',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 4249540,
},
},
} as const satisfies Chain
36 changes: 36 additions & 0 deletions packages/chains/src/rskTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { Chain } from './types'

export const rskTestnet = {
id: 31,
name: 'RSK Testnet',
network: 'rsktestnet',
nativeCurrency: {
decimals: 18,
name: 'RSK Testnet',
symbol: 'tRBTC',
},
rpcUrls: {
public: {
http: ['https://public-node.testnet.rsk.co'],
},
default: {
http: ['https://public-node.testnet.rsk.co'],
},
},
blockExplorers: {
etherscan: {
name: 'RSK Testnet Explorer',
url: 'https://explorer.testnet.rsk.co',
},
default: {
name: 'RSK Testnet Explorer',
url: 'https://explorer.testnet.rsk.co',
},
},
contracts: {
multicall3: {
address: '0xcA11bDe05977B3631167028862BE2A173976cA11',
blockCreated: 2771150,
},
},
} as const satisfies Chain
Loading