Calls the FinCore Engine ledger API through the TypeScript SDK (@fincore/sdk-typescript): lists accounts and fetches one.
-
Start the sandbox stack (from the repo root):
docker compose up -d # or: scripts/fincore run-demo -
Build the local SDK it depends on, then this example:
( cd ../../sdk/typescript && npm install && npm run build ) npm install npm run build
-
Run it, pointing at your services and supplying a bearer token with
ledger:read:FINCORE_API_URL=http://localhost:8080 FINCORE_TOKEN=<jwt> npm start
FINCORE_API_URL defaults to http://localhost:8080. The sandbox stack does not run an identity provider, so obtain a token from your own Keycloak (the SDK sends it as a bearer when set).
SPDX-License-Identifier: BUSL-1.1