The official Java connector for the Binance Web3 Wallet API, designed for backend applications and services running on the JVM.
The connector provides an idiomatic Java interface to the Web3 Wallet REST API. It includes built-in request signing and strongly typed request and response models to help you build reliable and maintainable integrations.
For source code, issues, and release notes, see the binance-web3-connector-java repository on GitHub.
Supported environments
- Java 11 or newer
- Backend Java applications and JVM-based services
This connector is intended for server-side usage only.
Typical use cases
- Backend services querying balances, transactions, and supported chains
- Building and submitting swap and transfer transactions
- Integrating Web3 Wallet market and pricing data into backend systems
Key features
- Support for the Binance Web3 Wallet REST API
- Built-in request signing for authenticated endpoints
- Strongly typed request and response models
- Consistent and idiomatic Java API design
Getting started
Add the dependency for the Web3 Wallet connector:
Code
Create a client and send a request:
Code
The example above uses HMAC-based authentication. Asymmetric key authentication using a private key is also supported.
Refer to the package documentation for REST API examples.
Notes and best practices
- Store API keys securely using environment variables or a secrets manager
- Monitor rate limits and endpoint weights when building high-throughput services