Skip to content

fix: default balance lookup to wallet - #21

Open
Saluana wants to merge 1 commit into
akash-network:mainfrom
Saluana:agent/default-balance-to-wallet
Open

fix: default balance lookup to wallet#21
Saluana wants to merge 1 commit into
akash-network:mainfrom
Saluana:agent/default-balance-to-wallet

Conversation

@Saluana

@Saluana Saluana commented Jul 18, 2026

Copy link
Copy Markdown

Summary

  • make address optional for get-akash-balances
  • use the configured wallet address when callers omit it
  • preserve explicit-address lookups for any Akash account

Root cause

The MCP already owns a configured wallet, but the balance tool still required clients to fetch and repeat that same address before it could query the wallet balance.

Impact

Agents can now call get-akash-balances with an empty argument object for the configured wallet, while retaining the ability to inspect another account by supplying address.

Validation

  • npm test — 67 tests passed
  • npm exec tsc -- --noEmit — passed
  • npm exec eslint -- src/tools/get-balances.ts — passed

@Saluana
Saluana marked this pull request as ready for review July 18, 2026 04:40
@Saluana
Saluana marked this pull request as draft July 18, 2026 04:46
@Saluana
Saluana marked this pull request as ready for review July 18, 2026 04:51
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.

1 participant