Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ layout: reference
function getAlchemyRpcUrl(chainId): undefined | string;
```

Defined in: [packages/common/src/transport/chainRegistry.ts:148](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/common/src/transport/chainRegistry.ts#L148)
Defined in: [packages/common/src/transport/chainRegistry.ts:154](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/common/src/transport/chainRegistry.ts#L154)

Gets the Alchemy RPC base URL for a given chain ID.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ layout: reference
function getSupportedChainIds(): number[];
```

Defined in: [packages/common/src/transport/chainRegistry.ts:167](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/common/src/transport/chainRegistry.ts#L167)
Defined in: [packages/common/src/transport/chainRegistry.ts:173](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/common/src/transport/chainRegistry.ts#L173)

Gets all supported chain IDs from the registry.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ layout: reference
function isChainSupported(chainId): boolean;
```

Defined in: [packages/common/src/transport/chainRegistry.ts:158](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/common/src/transport/chainRegistry.ts#L158)
Defined in: [packages/common/src/transport/chainRegistry.ts:164](https://github.com/alchemyplatform/aa-sdk/blob/main/packages/common/src/transport/chainRegistry.ts#L164)

Checks if a chain ID is supported by the Alchemy RPC registry.

Expand Down
10 changes: 8 additions & 2 deletions packages/common/src/transport/chainRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const ALCHEMY_RPC_MAPPING: Record<number, string> = {
42161: "https://arb-mainnet.g.alchemy.com/v2", // arbMainnet

// ARC networks
5042: "https://arc-mainnet.g.alchemy.com/v2", // arcMainnet
5042002: "https://arc-testnet.g.alchemy.com/v2", // arcTestnet

// BASE networks
Expand All @@ -32,12 +33,17 @@ export const ALCHEMY_RPC_MAPPING: Record<number, string> = {
97: "https://bnb-testnet.g.alchemy.com/v2", // bnbTestnet
56: "https://bnb-mainnet.g.alchemy.com/v2", // bnbMainnet

// BOBA networks
288: "https://boba-mainnet.g.alchemy.com/v2", // bobaMainnet
28882: "https://boba-sepolia.g.alchemy.com/v2", // bobaSepolia

// CELO networks
11142220: "https://celo-sepolia.g.alchemy.com/v2", // celoSepolia
42220: "https://celo-mainnet.g.alchemy.com/v2", // celoMainnet

// CLANKERMON networks
510525: "https://clankermon-mainnet.g.alchemy.com/v2", // clankermonMainnet
// CRONOS networks
25: "https://cronos-mainnet.g.alchemy.com/v2", // cronosMainnet
338: "https://cronos-testnet.g.alchemy.com/v2", // cronosTestnet

// ETH networks
1: "https://eth-mainnet.g.alchemy.com/v2", // ethMainnet
Expand Down
Loading