Skip to content

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

Merged
jenpaff merged 3 commits intodocs/t3-upgrade-prepfrom
georgen/add-keychain-docs-python-go
Apr 21, 2026
Merged

docs: add Account Keychain examples for Python and Go SDKs#312
jenpaff merged 3 commits intodocs/t3-upgrade-prepfrom
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 21, 2026 1:45pm

Request Review

@jenpaff jenpaff changed the base branch from main to docs/t3-upgrade-prep April 20, 2026 10:10
@jenpaff jenpaff requested a review from 0xrusowsky April 21, 2026 12:02
@jenpaff jenpaff marked this pull request as ready for review April 21, 2026 12:03
@jenpaff jenpaff merged commit 0965eda into docs/t3-upgrade-prep Apr 21, 2026
9 checks passed
@jenpaff jenpaff deleted the georgen/add-keychain-docs-python-go branch April 21, 2026 13:49
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.

3 participants