Skip to content

Commit 5b69139

Browse files
committed
fix: aa only chain guides
1 parent c215c6f commit 5b69139

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

account-kit/infra/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export type * from "./chains.js";
55
export {
66
arbitrum,
77
arbitrumGoerli,
8-
arbitrumSepolia,
98
arbitrumNova,
9+
arbitrumSepolia,
1010
base,
1111
baseGoerli,
1212
baseSepolia,
@@ -22,12 +22,12 @@ export {
2222
polygonAmoy,
2323
polygonMumbai,
2424
sepolia,
25-
zora,
26-
zoraSepolia,
27-
worldChain,
28-
worldChainSepolia,
2925
shape,
3026
shapeSepolia,
27+
worldChain,
28+
worldChainSepolia,
29+
zora,
30+
zoraSepolia,
3131
} from "./chains.js";
3232
export type * from "./client/decorators/alchemyEnhancedApis.js";
3333
export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js";

site/pages/third-party/chains.mdx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ import {
1616
createAlchemyPublicRpcClient,
1717
zora,
1818
alchemyFeeEstimator,
19+
type ClientWithAlchemyMethods,
1920
} from "@account-kit/infra";
20-
import { split, LocalAccountSigner } from "@aa-sdk/core";
21+
import { split, LocalAccountSigner, createBundlerClient } from "@aa-sdk/core";
2122
import { http, custom } from "viem";
2223

2324
const alchemyMethods = [
@@ -31,24 +32,22 @@ const alchemyMethods = [
3132
"pm_getPaymasterStubData",
3233
];
3334

34-
const alchemyBundlerClient = createAlchemyPublicRpcClient({
35-
// zora is an example of an aa only chain
36-
chain: zora,
37-
connectionConfig: {
38-
apiKey: "YOUR_API_KEY",
39-
},
40-
});
41-
4235
const transport = split({
4336
overrides: [
4437
{
4538
methods: alchemyMethods,
46-
transport: custom(alchemyBundlerClient),
39+
transport: http("ALCHEMY_RPC_URL"),
4740
},
4841
],
4942
fallback: http("ZORA_NODE_RPC_URL"),
5043
});
5144

45+
const alchemyBundlerClient = createBundlerClient({
46+
// zora is an example of an aa only chain
47+
chain: zora,
48+
transport,
49+
}) as unknown as ClientWithAlchemyMethods;
50+
5251
const smartAccountClient = createLightAccountClient({
5352
transport,
5453
chain: zora,

0 commit comments

Comments
 (0)