Overview
This guide points to a reference repository that shows you how to integrate DeFindex vaults using Crossmint smart wallets — enabling fully automated, server-side deposits, withdrawals, and cross-chain bridging with zero user interaction. The pattern uses an EVM private key registered asadminSigner to control both an ERC-4337 smart wallet on Base and a Stellar smart wallet. All Defindex vault interactions go through Crossmint’s REST API as Soroban contract-call transactions — no manual XDR construction required.
Repository
defindex-io/crossmint-defindex-guideWhat the Repository Covers
Architecture at a Glance
POSTto Crossmint REST → createcontract-calltransaction- Response is
awaiting-approvalwith a base64-encoded XDR message - Sign with
keypair.sign(Buffer.from(message, "base64"))usingSTELLAR_SERVER_KEY POSTsignature to/approvals- Poll until
onChain.txIdis returned
Quick Start
Prerequisites
- Crossmint account with a server API key (must start with
sk_, notck_) EVM_PRIVATE_KEY— becomes theadminSignerof the EVM smart wallet on BaseSTELLAR_SERVER_KEY— Stellar ed25519 secret key, becomes theadminSignerof the Stellar wallet- Defindex API key — generate one at console.defindex.io under API Keys