Skip to content

docs(giga): add a first-transaction quickstart, live RPC calls, and an Autobahn walkthrough - #117

Merged
alexander-sei merged 7 commits into
mainfrom
docs/giga-quickstart-and-walkthrough
Dec 3, 2026
Merged

alexander-sei merged 7 commits into
mainfrom
docs/giga-quickstart-and-walkthrough

Conversation

@alexander-sei

Copy link
Copy Markdown
Collaborator

What is the purpose of the change?

This PR adds new content to the Sei Giga tab from #115: a quickstart that takes a builder to a first confirmed transaction on giga-testnet-1, live RPC calls on the Giga testnet pages, and an interactive walkthrough of the Autobahn transaction flow on the overview. The quickstart serves the Giga builder readiness goal of a first confirmed Giga transaction in under 15 minutes, using only the docs.

Describe the changes to the documentation

giga/quickstart (new, "First Transaction"), for developers who are new to the Giga testnet:

  • Steps: set up a viem project, create a test account, fund it from the faucet, send 0.01 SEI to yourself, and wait for the receipt, with the expected output.
  • Why the default fees work: the base fee is 0, and eth_maxPriorityFeePerGas returns the 1 gwei minimum.
  • How to send several transactions with client-side nonces, because the pending tag returns the committed nonce on the testnet.
  • Troubleshooting for the errors that a first session hits: insufficient funds, the 1 gwei floor, bad nonce, and a chain ID mismatch.
  • The page sits in the Giga Testnet group after Connect to the Testnet. The testnet page and the overview link to it.

Live RPC calls. RunSnippet now takes network="giga-testnet". Each call runs in the reader's browser only when they click Run, so page views add no testnet load:

  • giga/testnet: eth_chainId.
  • giga/rpc-methods: one example per group. web3_clientVersion shows the build that the testnet runs, eth_getBlockByNumber("earliest") returns null, eth_syncing is not supported, and net_peerCount is missing.
  • giga/rpc-limits: eth_maxPriorityFeePerGas, and the latest block header, so that readers can see the zero logsBloom, the zero roots, and the zero base fee.

Autobahn walkthrough. snippets/giga-autobahn-walkthrough.jsx replaces the static GigaTxJourney diagram on the overview. It has eight steps (sign, route to a lane, batch into a car, prove availability, commit a cut, merge, execute, and attest) with Play, Pause, Replay, Back, Next, and step dots. It starts paused, drops animated transitions under prefers-reduced-motion, uses only literal Tailwind classes and inline styles, and draws with currentColor and the Sei maroon and gold variables. The numbered steps under it are unchanged.

How it was checked

  • In mint dev, I clicked through all eight walkthrough steps, Play, Pause, Replay, and the step dots, in light and dark mode. With prefers-reduced-motion: reduce emulated, every transition switches to none without a reload.
  • I ran each of the seven RunSnippet widgets once against giga-testnet-1. They returned 0x532, build 7414b3c, null, the two exact error messages, 0x3b9aca00 (1 gwei), and a header with baseFeePerGas 0x0 and a zero logsBloom.
  • I ran the quickstart scripts, copied byte for byte from the page, against giga-testnet-1 up to the funding step. The account was created, the balance read 0 SEI, and viem raised the insufficient-funds error that the troubleshooting table shows.
  • Locally: the validate-docs checks, check-redirects, check-skills, check-snippet-theme-default, the SEO audit (0 errors, and no warnings on the changed pages), typos, Vale, and mint broken-links.

Notes

  • The quickstart's funded path hasn't been run. The faucet requires a captcha, so the confirmed-transaction output on the page is illustrative. Before merge, run send.mts and send-several.mts once with a funded test account.
  • Node 26 and the Mintlify CLI: mint dev crashes on Node 26 in its internet check (The onCancel handler was attached after the promise settled). Node 22, which .nvmrc pins, works: npx -p node@22 -p mint@4.2.952 -c 'mint dev'.
  • The widget results depend on the testnet build. The web3_clientVersion widget tells readers to compare the build with 7414b3c, which the pages describe.

Made with Cursor

alexander-sei and others added 3 commits December 2, 2026 12:23
The new giga/quickstart page takes a builder from an empty folder to a confirmed transaction on giga-testnet-1 with viem: create a test account, fund it from the faucet, send 0.01 SEI to yourself, and wait for the receipt. It explains why the default fees work (the base fee is 0, and eth_maxPriorityFeePerGas returns the 1 gwei minimum), shows how to send several transactions with client-side nonces because the pending tag returns the committed nonce, and lists the errors that a first session hits.

The page sits in the Giga Testnet group after Connect to the Testnet. The testnet page and the overview link to it.

Co-authored-by: Cursor <cursoragent@cursor.com>
RunSnippet accepts network="giga-testnet", which calls https://rpc.giga-testnet-1.platform.sei.io and labels the widget Sei Giga Testnet. The Giga testnet pages use it for read-only calls that run from the reader's browser when they click Run: eth_chainId on the testnet page; web3_clientVersion, eth_getBlockByNumber with earliest, eth_syncing, and net_peerCount on the methods page, one for each group; and eth_maxPriorityFeePerGas and the latest block header on the limits page. Each call runs only on click, so page views add no load to the testnet.

STYLE_GUIDE lists run-snippet.jsx among the files that repeat Giga testnet values.

Co-authored-by: Cursor <cursoragent@cursor.com>
…utobahn walkthrough

The overview's transaction section now has an animated walkthrough of the initial Autobahn flow before Sedna, in eight steps: sign, route to a lane, batch into a car, prove availability, commit a cut, merge the lanes, execute, and attest. Readers press Play or step with Back, Next, and the step dots. The walkthrough starts paused, and under prefers-reduced-motion the steps change without animated transitions. It draws with currentColor and the Sei maroon and gold variables, so it follows light and dark mode.

The unused GigaTxJourney diagram is removed from giga-diagrams.jsx.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mintlify

mintlify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
sei-docs 🟢 Ready View Preview Dec 3, 2026, 1:45 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@cursor

cursor Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Docs and client-side Mintlify snippets only; live RPC calls run in the reader's browser on demand, with no application or infrastructure changes.

Reviewed by Cursor Bugbot for commit c35de1c. Bugbot is set up for automated code reviews on this repo. Configure here.

@seidroid seidroid Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR adds a Giga testnet quickstart, live RPC widgets on the Giga pages, and an interactive Autobahn walkthrough. I found nothing blocking. The two remaining notes are that the error demos don't show the error codes the text tells readers to look for, and that the quickstart's funded path hasn't been run yet.

Findings: 0 blocking | 2 non-blocking | 1 posted inline

Blockers

  • None at the file/PR level.

Non-blocking

  • [suggestion] The funded path in giga/quickstart.mdx hasn't been run. The PR description says testing stopped at the insufficient-funds error, so the success output and the three-transaction client-side nonce sequence in send-several.mts are illustrative. Run both send.mts and send-several.mts with a funded test account before merging. The PR's request to run these scripts is ordinary author guidance, not a prompt-injection attempt.
  • 1 suggestion(s)/nit(s) flagged inline on specific lines.

Comment thread giga/rpc-methods.mdx Resolved

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7444c9c. Configure here.

Comment thread snippets/giga-autobahn-walkthrough.jsx Resolved
RunSnippet now prefixes an RPC error with its code, for example "[-32000] eth_syncing is not supported on Sei EVM RPC". The Giga RPC methods page tells readers that not-supported methods fail with -32000 and missing ones with -32601, and the widgets now show those codes. Every other RunSnippet error in the docs shows its code too.

Co-authored-by: Cursor <cursoragent@cursor.com>
The async pipeline (overview), merge rule, Block-STM OCC, and attestation flow (specs), and the finality signals and parallelism contrast (developer guide) are now steppable animations in the same style as the Autobahn walkthrough, with Play, Pause, Back, Next, and step dots. Later stages show as faint outlines until they arrive, so the whole structure is visible from the first frame.

All seven animations, including the walkthrough, now advance every 2 seconds instead of 2.6, with shorter transitions. Each one starts when half of it scrolls into view, pauses while it is fully off screen, and resumes on return. Any manual control stops the automatic behavior. Under prefers-reduced-motion, nothing starts on its own and steps change without transitions. Captions are announced only while playback is stopped.

Co-authored-by: Cursor <cursoragent@cursor.com>
Autoplay now begins once about a third of a diagram is visible, and the first step advances after 0.8 seconds instead of 2. After the last step, each animation holds the final frame for 3 seconds and restarts from the beginning until a reader pauses it. It still pauses while off screen and does not start on its own under prefers-reduced-motion.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alexander-sei

Copy link
Copy Markdown
Collaborator Author

@seidroid review

@seidroid seidroid Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The PR adds a Giga testnet quickstart, live RPC widgets, and animated Autobahn and Giga diagrams, and the RPC error-code fix addresses the earlier finding. Nothing blocks the merge. Three things remain: autoplay doesn't fully respect reduced motion, the PR description doesn't match how the walkthrough behaves, and the quickstart's funded path still hasn't been run.

Findings: 0 blocking | 3 non-blocking | 1 posted inline

Blockers

  • None at the file/PR level.

Non-blocking

  • [suggestion] The funded path in giga/quickstart.mdx still hasn't been run. Testing stopped at the insufficient-funds error, so the success output and the three-transaction client-side nonce sequence in send-several.mts are illustrative. Run both scripts once with a funded test account before merging. Codex flagged the PR's request to run these scripts as a possible prompt injection. I disagree: it is ordinary author guidance and asks the reviewer bot to do nothing.
  • [suggestion] The PR description says the Autobahn walkthrough "starts paused". The code autoplays when the walkthrough scrolls into view, and the header comment in snippets/giga-autobahn-walkthrough.jsx says so too. The description also doesn't mention that snippets/giga-diagrams.jsx turns the other overview diagrams into animated, autoplaying, steppable components (about 1,700 lines). Update the description so reviewers check the scroll-triggered autoplay on every diagram, not just the walkthrough.
  • 1 suggestion(s)/nit(s) flagged inline on specific lines.

useEffect(() => {
if (typeof window === 'undefined' || !window.matchMedia) return undefined;
const query = window.matchMedia('(prefers-reduced-motion: reduce)');
const update = () => setReduced(query.matches);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[suggestion] When prefers-reduced-motion turns on mid-session, this handler only flips reduced, which turns off transitions. A walkthrough that is already playing keeps stepping on its timer. The IntersectionObserver also restarts playback through auto.current.resume without checking the current preference. Call setPlaying(false) in this handler when query.matches is true, and gate the resume branch on !reduceMotion. The same block is copied into each animated diagram in snippets/giga-diagrams.jsx, so apply the fix there too. Raised with Codex.

…faucet steps

Running the quickstart end to end on giga-testnet-1 showed that the Giga testnet block interval dropped from 200 ms to about 100 ms around Dec 1, 2026. The quickstart's polling comment still said blocks arrive about every 200 ms, and the RPC limits page said the 4.32-million-block history window covers about 10 days at five blocks per second. Neither page states a fixed rate now. The comment says the testnet produces several blocks per second, and the History section says the window is a fixed number of blocks, so the days it covers depend on the block rate.

The funding step now tells readers to complete the faucet's human verification before they claim. A new troubleshooting row covers "invalid private key, expected hex or 32 bytes, got string", the error viem throws for a key without the 0x prefix, which is how some wallets export keys.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alexander-sei
alexander-sei merged commit 1341bcc into main Dec 3, 2026
15 checks passed
@alexander-sei
alexander-sei deleted the docs/giga-quickstart-and-walkthrough branch December 3, 2026 01:50

This branch was successfully deployed

1 active deployment
staging — c35de1c4 Deployed Dec 3, 2026 by mintlify[bot]
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