docs: expand TypeScript SDK overview - #786
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| ``` | ||
|
|
||
| Connect to Tempo Testnet and use the [faucet](/docs/quickstart/faucet) to fund the account with test tokens. | ||
| Connect to Tempo Testnet, fund an account, read its alphaUSD balance, and send a confirmed transfer. |
|
|
||
| The Tempo extensions cover common chain operations such as querying state, sending Tempo Transactions, and managing tokens and AMM pools. | ||
|
|
||
| <Cards> |
| <Cards> | ||
| <Card | ||
| description="Viem Actions for querying data, sending transactions, managing tokens & AMM pools, and more" | ||
| to="https://viem.sh/tempo/actions" |
There was a problem hiding this comment.
we should keep a link to tempo actions
|
|
||
| See the [Viem Tempo API reference](https://viem.sh/tempo/actions) for every method and parameter. | ||
|
|
||
| The T3-compatible `viem` release includes the updated access-key ABI, including periodic limits and call scoping. See the [T3 network upgrade](/docs/protocol/upgrades/t3) for migration details. |
|
|
||
| await client.faucet.fundSync({ account }) | ||
|
|
||
| const token = '0x20c0000000000000000000000000000000000001' // alphaUSD |
d9bc77c to
cb1dc0e
Compare
| The T3-compatible `viem` release includes the updated access-key ABI, including periodic limits and call scoping. See the [T3 network upgrade](/docs/protocol/upgrades/t3) for migration details. | ||
| The same client includes standard Viem methods such as `getBlockNumber`, `getTransaction`, `getTransactionReceipt`, `getLogs`, `readContract`, and `simulateContract`. | ||
|
|
||
| ### Control Tempo transactions |
There was a problem hiding this comment.
This should just say "Tempo Transactions"
|
|
||
| ### Control Tempo transactions | ||
|
|
||
| Tempo write methods accept transaction options for fees, execution order, and timing. Batch calls use `client.sendTransactionSync`. |
There was a problem hiding this comment.
get rid of these two sentences
3b85086 to
0832d5f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0832d5f263
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| Use Viem for Node.js scripts, servers, and other headless applications. | ||
|
|
||
| ### Create a testnet client | ||
| ### Connect to Tempo Testnet and send a stablecoin |
There was a problem hiding this comment.
Preserve the previous testnet heading anchor
Preserve #create-a-testnet-client when renaming this heading; otherwise existing bookmarks and external links to /docs/sdk/typescript#create-a-testnet-client no longer reach the intended section. Add the old ID as an explicit anchor or alias while retaining the new heading text.
AGENTS.md reference: AGENTS.md:L66-L70
Useful? React with 👍 / 👎.
Why
The TypeScript SDK overview should cover a complete basic Tempo workflow without requiring readers to assemble it from several pages.
What