Skip to content

docs: expand TypeScript SDK overview - #786

Merged
parvahuja merged 1 commit into
mainfrom
parv/viem-sdk-overview
Aug 3, 2026
Merged

docs: expand TypeScript SDK overview#786
parvahuja merged 1 commit into
mainfrom
parv/viem-sdk-overview

Conversation

@parvahuja

@parvahuja parvahuja commented Jul 31, 2026

Copy link
Copy Markdown
Member

Why

The TypeScript SDK overview should cover a complete basic Tempo workflow without requiring readers to assemble it from several pages.

What

  • extend the shared Viem testnet example to fund an account, read a pathUSD balance, and send a confirmed transfer
  • explain the balance and receipt values returned by the example
  • summarize common Tempo transaction inputs and link to focused guides and the Viem and Wagmi references

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tempo-docs Ready Ready Preview Aug 3, 2026 5:40pm

Request Review

Comment thread src/pages/docs/sdk/typescript/index.mdx Outdated
```

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets change to pathUSD


The Tempo extensions cover common chain operations such as querying state, sending Tempo Transactions, and managing tokens and AMM pools.

<Cards>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this removed?

<Cards>
<Card
description="Viem Actions for querying data, sending transactions, managing tokens & AMM pools, and more"
to="https://viem.sh/tempo/actions"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should keep a link to tempo actions

Comment thread src/pages/docs/sdk/typescript/index.mdx Outdated

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this sentence

Comment thread src/snippets/node-viem-quickstart.ts Outdated

await client.faucet.fundSync({ account })

const token = '0x20c0000000000000000000000000000000000001' // alphaUSD

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be pathUSD

Comment thread src/pages/docs/sdk/typescript/index.mdx Outdated
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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just say "Tempo Transactions"

Comment thread src/pages/docs/sdk/typescript/index.mdx Outdated

### Control Tempo transactions

Tempo write methods accept transaction options for fees, execution order, and timing. Batch calls use `client.sendTransactionSync`.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get rid of these two sentences

@parvahuja
parvahuja force-pushed the parv/viem-sdk-overview branch from 3b85086 to 0832d5f Compare August 3, 2026 17:36
@parvahuja
parvahuja marked this pull request as ready for review August 3, 2026 18:09
@parvahuja
parvahuja merged commit b8f4e7a into main Aug 3, 2026
12 checks passed
@parvahuja
parvahuja deleted the parv/viem-sdk-overview branch August 3, 2026 18:09

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant