Skip to content

Feature: Signer-Bound UserClient - #11

Merged
sephynox merged 3 commits into
mainfrom
feat/anchor-rs-update-p3
Jul 29, 2026
Merged

Feature: Signer-Bound UserClient#11
sephynox merged 3 commits into
mainfrom
feat/anchor-rs-update-p3

Conversation

@sephynox

@sephynox sephynox commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

The write conveniences added with the transmit flow off of the base node client, while the TypeScript and Rust clients put them on a UserClient. This introduces that client, so reads imply the operating account writes sign and pay fees with the bound signer.

Related Issues

Changes Made

  • UserClient binds a signer and optional operating account
  • Reads like GetState and GetBalance imply the bound account
  • Send and SetRep build, sign, and transmit in one call
  • Writes default the fee payer to the signer, or SIGNER_REQUIRED
  • Signer-less clients are read-only and reject writes

Testing

  • make test: passes

Breaking Changes

  • NodeClient is now KeetaClient
  • CreateNodeClient is now CreateKeetaClient
  • DI registration is now AddKeetaNetAnchorKeetaClient
  • Block-level Send, SetRep, and InitBuilder moved from the base client to UserClient.

@sephynox
sephynox requested review from Srayman and wezrule July 29, 2026 01:35
@sephynox sephynox self-assigned this Jul 29, 2026
@wezrule

wezrule commented Jul 29, 2026

Copy link
Copy Markdown

Nice, the keetanet-examples for csharp and docs will need rewriting after this is merged, breaking change & can use the UserClient

@sephynox
sephynox force-pushed the feat/anchor-rs-update-p3 branch from 010b1c7 to 1ca8285 Compare July 29, 2026 18:33

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

Stale comment

Comment thread src/KeetaNet.Anchor/Services/Node/UserClient.cs
Comment thread src/KeetaNet.Anchor/Services/Node/UserClient.cs
@sephynox
sephynox force-pushed the feat/anchor-rs-update-p3 branch from 1ca8285 to 94f7c96 Compare July 29, 2026 19:01
Base automatically changed from feat/anchor-rs-updates-p2 to main July 29, 2026 19:02
@sonarqubecloud

Copy link
Copy Markdown

@sephynox
sephynox merged commit c7d7f53 into main Jul 29, 2026
7 checks passed
@sephynox
sephynox deleted the feat/anchor-rs-update-p3 branch July 30, 2026 16:13
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