Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
roushou committed Jun 26, 2024
1 parent e04f716 commit 82ee7eb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import { createClient, createRpcClient } from "@coinbasejs/onchain";

// 2. Create an RPC client
const rpcClient = createRpcClient({
url: RPC_URL,
apiKey: "API_KEY",
network: "base",
});

// 3. Send request
Expand All @@ -47,19 +47,20 @@ const response = await rpcClient.request({

// For convenience, you can also create a higher-level client
const client = createClient({
apiKey: '<API_KEY>',
apiKey: "API_KEY",
network: "base",
});

// Send request
const balances = await client.listBalances([{
const balances = await client.getBalances([{
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
pageSize: 1,
}]);
```

## Documentation

TODO
Read the [documentation](https://coinbasejs.com/) to learn more about coinbasejs.

## License

Expand Down

0 comments on commit 82ee7eb

Please sign in to comment.