Skip to content

docs: add Account Keychain examples for Python and Go SDKs#312

Draft
decofe wants to merge 1 commit intomainfrom
georgen/add-keychain-docs-python-go
Draft

docs: add Account Keychain examples for Python and Go SDKs#312
decofe wants to merge 1 commit intomainfrom
georgen/add-keychain-docs-python-go

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented Apr 16, 2026

Adds ## Account Keychain sections to the Python and Go SDK docs, mirroring the existing cast keychain examples in the Foundry page.

Python (pytempo):

  • AccountKeychain.authorize_key() with restrictions (expiry, spending limits, call scopes)
  • revoke_key(), update_spending_limit(), set_allowed_calls(), remove_allowed_calls()
  • get_key() and get_remaining_limit() read-only queries
  • sign_access_key() for signing transactions as an access key holder

Go (keychain package):

  • AuthorizeKey() with KeyRestrictions and CallScopeBuilder
  • RevokeKey(), UpdateSpendingLimit(), SetAllowedCalls(), RemoveAllowedCalls()
  • SignWithAccessKey() for keychain signing
  • EncodeGetRemainingLimitCalldata() / ParseRemainingLimitResult() for queries

Prompted by: georgen

Mirror the cast keychain documentation for Python (AccountKeychain class)
and Go (keychain package) with examples for authorize, revoke, spending
limits, call scopes, signing, and querying.

Co-Authored-By: grandizzy <38490174+grandizzy@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d9747-8dba-7467-82a2-9cb7b1286188
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 16, 2026

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

Project Deployment Actions Updated (UTC)
tempo-docs Ready Ready Preview, Comment Apr 16, 2026 5:19pm

Request Review

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.

2 participants