Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1012 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 1012 Bytes

zkFold Symbolic Wallet server and API

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.

Building

You'll need Cabal to build this package. Run

cabal build -f pedantic

Running the server

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"}'