Skip to content

feat(rust): Add high-level Wallet wrapper#593

Open
rnnpeng wants to merge 2 commits intocoinbase:mainfrom
rnnpeng:feat/rust-wallet-wrapper
Open

feat(rust): Add high-level Wallet wrapper#593
rnnpeng wants to merge 2 commits intocoinbase:mainfrom
rnnpeng:feat/rust-wallet-wrapper

Conversation

@rnnpeng
Copy link

@rnnpeng rnnpeng commented Feb 12, 2026

Description

This PR introduces a high-level Wallet wrapper to the Rust SDK (rust/src/wallet.rs), aiming to bring the Rust developer experience closer to parity with the Python and TypeScript SDKs.

Currently, Rust users must manually construct raw API requests using the generated Client. This change abstracts that complexity by providing a convenient Wallet struct that handles:

  • Initialisation with the API Client.
  • Simplified method signatures for common operations.

Changes:

  • Created rust/src/wallet.rs.
  • Exposed the wallet module in rust/src/lib.rs.
  • Added unit tests in rust/tests/wallet_tests.rs to verify initialisation and client binding.

Tests

I have verified the changes locally using cargo test.

Method: Wallet::new()
Network: N/A (Unit Test)
Setup: Mocked Client initialisation with dummy credentials

Output:
running 1 test
test test_wallet_initialization ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

## Checklist

- [ ] Updated the [typescript README](https://github.com/coinbase/cdp-sdk/blob/main/typescript/src/README.md) if relevant (N/A - Rust only)
- [ ] Updated the [python README](https://github.com/coinbase/cdp-sdk/blob/main/python/README.md) if relevant (N/A - Rust only)
- [x] Added a changelog entry
- [ ] Added e2e tests if introducing new functionality (Pending API keys for integration tests)

@cb-heimdall
Copy link

cb-heimdall commented Feb 12, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@rnnpeng rnnpeng force-pushed the feat/rust-wallet-wrapper branch from 946b3ac to 008388f Compare February 12, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants