This package contains zkFold Wallet backend, including a Haskell API, a wallet server backend and a server executable. The server supports Cardano CIP-30 API.
You'll need Cabal to build this package. Run
cabal build -f pedantic
First, set up Maestro API key and endpoint in .env:
API_KEY=
URL=
NETWORK_ID=
After build, replace XXXX with the port number (default is 3000) and run
cabal run symbolic-wallet-server
cabal run symbolic-wallet-server -- --port XXXX
When the server is running, you can query it via curl (assuming that the port is set to 3000):
curl -X GET localhost:3000/api/getExtensions
curl -H "Content-Type: application/json" -X POST localhost:3000/api/getUtxos -d '{"walletId": "testWallet"}'