GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: add account keys without gas in Hello World; point guides at Snapchain nodes by Sats100M · Pull Request #470 · farcasterxyz/docs

Conversation

@Sats100M

@Sats100M Sats100M commented Oct 19, 2026 •
edited by pr-codex Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Brings four pages in line with gasless account keys (snapchain#989) and with read nodes accepting writes (snapchain#1034).

Hello World (/developers/guides/basics/hello-world)

  • Step 3 added the account key with a Key Gateway transaction. It also used APP_FID, APP_PRIVATE_KEY and appAccount, which are never defined, and passed a private key as key to getSignedKeyRequestMetadata. It now adds the key with a KEY_ADD message (makeKeyAddBody + makeKeyAdd), which needs no gas. The account acts as its own app.
  • submitMessage moved into step 3, because that step now uses it first. It also checks the submit result now, instead of ignoring it.
  • Requirements:
    • "Write access to a hub (either your own, or a 3rd party hub)" now says that any Snapchain node accepts messages, your own read node included, and links to Running a node.
    • "~$10 of ETH" is now the actual price source, IdGateway.price(). I read it on OP Mainnet today: 0.0000846 ETH, about $0.20 including one storage unit.
  • Constants: the comment saying hoyt is password-protected and pointing to a third-party provider is replaced with a placeholder node URL. KeyContract and its imports are removed, since nothing uses them any more.

Feed (/developers/guides/apps/feed)

  • The code didn't run as written. It imported only getSSLHubRpcClient, but used UserDataType, isUserDataAddMessage, isCastAddMessage, fromFarcasterTime, neverthrow's Result/ok/err and a timeAgo instance that was never set up. It also called getFnameFromFid, which was never defined.
  • Added the imports and the TimeAgo setup, taken from hub-nodejs/examples/chron-feed, plus the missing function and the two extra packages in the install line. Swapped the hoyt URL for a placeholder.

Architecture overview and Create an account key

  • One sentence each, saying keys can also be added offchain with KEY_ADD. The account key guide links to the Hello World step.

How I checked

  • Feed guide: I concatenated the guide's code blocks and ran them with Node 22 and @farcaster/hub-nodejs 0.17.0 against my own Snapchain v0.14.3 mainnet read node. The only changes were the node address and getInsecureHubRpcClient, since my node has no TLS. It prints the expected feed.
  • Hello World step 3: ran verbatim with a test mnemonic and a stub client, and the resulting KEY_ADD passes validations.validateMessage.
  • The same KEY_ADD path on mainnet: my own client uses it. It added an app key through my read node, then cast with it: https://farcaster.xyz/sats100m/0xfdc3e931

PR-Codex overview

This PR enhances documentation related to account key management in the Farcaster ecosystem, emphasizing the use of the Key Gateway for adding account keys both onchain and offchain, and clarifying related processes and requirements.

Detailed summary

  • Added details on adding account keys through the Key Gateway.
  • Clarified the process for adding account keys onchain and offchain.
  • Updated instructions for creating a client to connect to a Snapchain node.
  • Modified the account key addition process to include a gasless KEY_ADD message.
  • Revised requirements to highlight the use of a Snapchain node.
  • Introduced a new function getFnameFromFid for resolving user data.
  • Updated the message submission process to handle errors properly.
  • Adjusted comments and instructions for clarity throughout the documentation.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Sats100M
docs: add account keys without gas in Hello World; point guides at Sn…
cc471c1
…apchain nodes

Hello World added the account key with a Key Gateway transaction and
referenced variables it never defined (APP_FID, APP_PRIVATE_KEY,
appAccount). It now uses a KEY_ADD message, which needs no gas. It also
told readers to use the password-protected hoyt hub or a third-party
provider; any Snapchain node, including your own read node, accepts
writes. Registration costs about $0.20 today, not $10.

The feed guide was missing most of its imports, the timeAgo setup and
getFnameFromFid, so it did not run as written. The architecture overview
and the account key guide now mention that keys can be added offchain.
@vercel

vercel Bot commented Oct 19, 2026

Copy link
Copy Markdown

@Sats100M is attempting to deploy a commit to the Internal - Neynar Team on Vercel.

A member of the Team first needs to authorize it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Sats100M
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.