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 — stellar token: typed SEP-41 + SAC client · Issue #2620 · stellar/stellar-cli

stellar token: typed SEP-41 + SAC client #2620

New issue
Copy link
New issue
Copy link
Closed
Closed
stellar token: typed SEP-41 + SAC client#2620
Copy link
Assignees
fnando

Description

@aristidesstaffieri
aristidesstaffieri
opened on Jun 24, 2026
Issue body actions

Part of the Improve Agent UX for Wallets epic.

Summary

Add stellar token, a typed SEP-41 + SAC client. Each subcommand is a thin wrapper over the existing contract invoke pipeline with token-aware argument parsing, asset/contract resolution, and decimal-aware amount formatting. Because the underlying call is a contract invocation, every state-changing subcommand inherits the full pipeline (simulate → auth-entry signing → tx signing → fee-bump → submit → poll) and returns a decoded receipt. Sane default are included for settings like the transaction fee.

Subcommands

Group Subcommands
Transfer transfer, transfer-from
Read balance, allowance, name, symbol, decimals
Allowance approve
Supply burn, burn-from
SAC admin mint, set-admin, clawback, set-authorized

Target resolution

  • --id C… or an alias targets any SEP-41/SAC contract directly, reusing UnresolvedContract from config/alias.rs.
  • Special-case native — --id native resolves the native SAC.
  • Reuse contract id asset resolution + utils::contract_id_hash_from_asset; asset parsing in tx/builder/asset.rs.
  • SEP-41 reference implementation: cmd/crates/soroban-test/tests/fixtures/test-wasms/token/src/contract.rs.

New files

cmd/soroban-cli/src/commands/token/{mod.rs, transfer.rs, balance.rs, approve.rs, allowance.rs, burn.rs, mint.rs, admin.rs, args.rs} — subcommands plus shared resolution/formatting in args.rs.

Error paths

  • SAC not deployed → structured error pointing at contract deploy asset.
  • Missing trustline / authorization → named error; provisioning left to a skill using tx new change_trust.

Acceptance criteria

  • stellar token transfer --id native --to <dst> --amount <amt> on testnet resolves the SAC, simulates, signs, submits, polls, and returns a JSON receipt with tx hash + decoded result — no caller-supplied seq/fee.
  • Issued-asset transfer succeeds with a deployed SAC + trustlines; returns the deploy-pointer error when the SAC is missing; returns the named trustline error when the trustline is missing.
  • mint / set-admin / clawback / set-authorized against an administered SAC each return a decoded receipt.
  • balance / allowance return decimal-aware values; name / symbol / decimals return metadata.

Dependencies

Builds on the structured-output/CLI-API task for receipt + error shapes.

Activity

  1. github-project-automation
    added this to DevXon Jun 24, 2026
  2. github-project-automation
    moved this to Backlog (Not Ready) in DevXon Jun 24, 2026
  3. fnando
    self-assigned this
    on Jun 30, 2026
  4. janewang commented on Jul 8, 2026

    @janewang
    janewang
    on Jul 8, 2026
    Contributor
    More actions

    Marcelo suggested --type=sep41 to switch between different token types (to be defined)

  5. janewang
    moved this from Backlog (Not Ready) to In Progress in DevXon Aug 17, 2026
  6. fnando
    added 5 commits that reference this issue on Sep 8, 2026

    Add `stellar token name` subcommand (#2710)

    3ad64f8

    Add `stellar token symbol` subcommand (#2712)

    b71f1d3

    Add `stellar token decimals` subcommand (#2713)

    65f3fa5

    Add `stellar token approve` subcommand (#2714)

    1d4bbea

    Add `stellar token allowance` subcommand (#2715)

    f6c372a
  7. fnando
    added 3 commits that reference this issue on Sep 28, 2026

    Add `stellar token mint` subcommand (#2716)

    e79afa3

    Add `stellar token clawback` subcommand (#2717)

    9673252

    Add `stellar token set-admin` subcommand (#2718)

    9381772
  8. fnando
    added a commit that references this issue on Oct 7, 2026

    Add `stellar token set-authorized` subcommand (#2719)

    ccf8d1e
  9. github-actions commented on Oct 7, 2026

    @github-actions
    github-actionsBot
    on Oct 7, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue is stale because it has been assigned for 90 days with no activity.

  10. github-actions
    added
    stale
    on Oct 7, 2026
  11. fnando
    removed
    stale
    on Oct 7, 2026
  12. fnando
    closed this as completedon Oct 7, 2026
  13. fnando commented on Oct 7, 2026

    @fnando
    fnando
    on Oct 7, 2026
    Member
    More actions

    Everything on this list has been implemented.

    • Add stellar token transfer for SEP-41 and Stellar Asset Contracts #2644
    • Add stellar token balance command #2651
    • Add stellar token name subcommand #2710
    • Add stellar token symbol subcommand #2712
    • Add stellar token decimals subcommand #2713
    • Add stellar token approve subcommand #2714
    • Add stellar token allowance subcommand #2715
    • Add stellar token mint subcommand #2716
    • Add stellar token clawback subcommand #2717
    • Add stellar token set-admin subcommand #2718
    • Add stellar token set-authorized subcommand #2719
    • Add stellar token transfer-from command #2743
    • Add stellar token burn command #2744
    • Add stellar token burn-from command #2746
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @fnando
    fnando

Labels

No labels
No labels

Type

No type

Projects

  • DevX
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402775 — 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.