ContractClient.getMembershipTokenBalance is currently a stub that throws NOT_IMPLEMENTED. Implement token balance checking using an on-chain provider.
Suggested tasks
- Add a provider integration using
viem or another agreed library
- Use the configured
rpcUrl
- Validate wallet and contract addresses
- Query token balance from the contract
- Return the balance as a string
- Add tests with a mocked provider
Acceptance criteria
getMembershipTokenBalance no longer throws NOT_IMPLEMENTED
- Token balances can be queried through the SDK
- Missing
rpcUrl or contract address produces a clear error
- Provider logic is t
ContractClient.getMembershipTokenBalanceis currently a stub that throwsNOT_IMPLEMENTED. Implement token balance checking using an on-chain provider.Suggested tasks
viemor another agreed libraryrpcUrlAcceptance criteria
getMembershipTokenBalanceno longer throwsNOT_IMPLEMENTEDrpcUrlor contract address produces a clear error