Skip to content
Open
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
13 changes: 11 additions & 2 deletions packages/agw-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,20 @@ Asynchronously creates an `AbstractClient` instance, extending the standard `Cli

```tsx
import { createAbstractClient } from '@abstract-foundation/agw-client';
import { abstractTestnet } from 'viem/chains';
import { Account } from 'viem/accounts';

const signer: Account = {
address: '0xYourSignerAddress',
// ...other account properties
};

const chain = abstractTestnet;

(async () => {
const abstractClient = await createAbstractClient({
signer: /* your signer account */,
chain: /* your chain configuration */,
signer,
chain,
});

// Use abstractClient to interact with the blockchain
Expand Down