Skip to content

Commit

Permalink
Update index.ts to expose SimpleWalletClient object
Browse files Browse the repository at this point in the history
The SimpleWalletClient object is needed by developers creating Web3 apps that interact with the user's wallet.  For example:

        const config: StoryConfig = {
            chainId: await this.getCurrentChainId(), // Get the current chain ID from MetaMask
            transport: http(RPCProviderUrl), // Using MetaMask's provider
            wallet: this.walletClient as SimpleWalletClient
        };


This is so they can interact with the user's wallet for doing important operations on the Story Protocol blockchain, like signing payloads or paying for transactions.
  • Loading branch information
roschler authored Nov 18, 2024
1 parent 456fc3d commit 530a83b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,5 @@ export type {

export { getPermissionSignature, getSignature } from "./utils/sign";
export { convertCIDtoHashIPFS, convertHashIPFStoCID } from "./utils/ipfs";

export type { SimpleWalletClient } from "../src/abi/generated.js";

0 comments on commit 530a83b

Please sign in to comment.