Skip to main content

Java / Spring Boot SDK

The yativo-crypto-sdk-spring-boot-starter is a Spring Boot auto-configuration library that wires up all Yativo service beans automatically from your application.yml. Just add the dependency, set your credentials, and @Autowired the service you need. Maven Central

Installation

Package: com.yativo:yativo-crypto-sdk-spring-boot-starter · Latest: 1.0.1 · Requirements: Java 11+, Spring Boot 2.7+ or 3.x.

Configuration

Add the following to your application.yml:
Or in application.properties:
All beans are registered as Spring-managed singletons. The starter handles HTTP client setup, token storage, and automatic 401 token refresh for you.

Available Services


CustomerService


WalletService


WithdrawalService


TransactionService


CardService


SwapService


StandaloneIbanService


AutoForwardingService


Webhook Event Handling

When yativo.crypto.webhook.enabled=true, the starter registers an HTTP endpoint at yativo.crypto.webhook.path that verifies incoming signatures and publishes YativoWebhookEvent instances to the Spring application context. Listen to these events with @EventListener:

Available Event Types


Error Handling


Full Spring Boot Application Example