Skip to content

Commit

Permalink
fix(js-client): Improve discoverability
Browse files Browse the repository at this point in the history
  • Loading branch information
qbzzt committed Jul 12, 2023
1 parent d4aa4de commit 24fa033
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/docs/sdk/js-client.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: The OP Mainnet Client SDK
title: The OP Stack Client SDK
lang: en-US
---

Expand All @@ -8,18 +8,15 @@ There are a few areas in which the SDK can help you navigate [the differences be
- [Gas costs](../developers/build/transaction-fees.md)
- [Interlayer communication](../developers/bridge/basics.md)

## JavaScript SDK

The JavaScript SDK directly multiple OP Chains: OP (Mainnet and Goerli), Base Goerli, etc.
To see whether a specific OP Chain is supported directly, look in the `CONTRACT_ADDRESSES` constant in [`chain-constants.ts`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/sdk/src/utils/chain-constants.ts#L124-L129).

"Unsupported chains" just take an extra step to use.
The SDK supports multiple OP Chains: OP, Base, Zora, etc.
To see whether a specific OP Chain is supported directly, [see the documentation](https://sdk.optimism.io/enums/l2chainid).
Chains that aren't officially supported just take a few extra steps.
Get the L1 contract addresses, and [provide them to the SDK](https://stack.optimism.io/docs/build/sdk/#contract-addresses).
Once you do that, you can use the SDK normally.

[Reference](https://sdk.optimism.io/)

Tutorials:
## Tutorials:
- [Viewing transactions between layers](https://github.com/ethereum-optimism/optimism-tutorial/tree/main/sdk-view-tx)
- [Bridging ETH](https://github.com/ethereum-optimism/optimism-tutorial/tree/main/cross-dom-bridge-eth)
- [Bridging ERC-20](https://github.com/ethereum-optimism/optimism-tutorial/tree/main/cross-dom-bridge-erc20)
Expand Down

0 comments on commit 24fa033

Please sign in to comment.