### Start Blnk Watch Service (Direct Download) Source: https://docs.blnkfinance.com/watch/deployment Starts the Blnk Watch service after installation and environment variable configuration. ```start blnk-watch start ``` -------------------------------- ### Install blnk-watch using go install Source: https://docs.blnkfinance.com/watch/commands Builds and installs the blnk-watch binary into your Go path from the project root. This method is an alternative to using 'make'. ```bash go install ./cmd/blnk-watch ``` -------------------------------- ### Backend Install Event Handler Source: https://docs.blnkfinance.com/cloud/apps/installation Example of a Node.js backend route handler for processing Blnk Cloud install events. It saves installation details, including an encrypted API key, to a database. ```javascript app.post("/api/callback", async (req, res) => { const event = req.body; if (event.idempotency_key?.startsWith("install:")) { // Never persist the raw `api_key` in your database " encrypt it at rest (see Codebase setup). await installs.save({ installed_app_id: event.installed_app_id, app_id: event.app_id, instance_id: event.instance_id, api_key_encrypted: encryptSecret(event.api_key), api_key_prefix: event.api_key_prefix, granted_permissions: event.granted_permissions, status: "active", idempotency_key: event.idempotency_key }); return res.status(200).json({ ok: true }); } }); ``` -------------------------------- ### View a Balance Monitor using Go Source: https://docs.blnkfinance.com/balances/balance-monitoring Fetch a balance monitor using the Blnk Go client library. This example shows how to get a monitor by its ID and handle potential errors. ```go monitor, resp, err := client.BalanceMonitor.Get("mon_e0e77b0c-4985-472a-9bf5-76a48b0259b0") ``` -------------------------------- ### Start Blnk Server with Docker Compose Source: https://docs.blnkfinance.com/home/install Initiate the Blnk server for your self-hosted installation using Docker Compose. This command will build and start all necessary services defined in your Docker configuration. ```bash docker compose up ``` -------------------------------- ### Install Blnk Go SDK Source: https://docs.blnkfinance.com/sdks/go Install the Blnk Go SDK into your Go project. Ensure you have Go 1.22 or later. ```bash go mod init blnk-quickstart go get github.com/blnkfinance/blnk-go ``` -------------------------------- ### Cloud Proxy API Examples Source: https://docs.blnkfinance.com/cloud/apps/app-logic Examples of how to call Core endpoints using the Cloud Proxy API. ```bash GET https://api.cloud.blnkfinance.com/proxy/ledgers?instance_id=inst_... ``` ```bash POST https://api.cloud.blnkfinance.com/proxy/transactions?instance_id=inst_... ``` -------------------------------- ### Core API Endpoints Examples Source: https://docs.blnkfinance.com/cloud/apps/app-logic Examples of how endpoints are called directly on Core. ```bash GET http://localhost:5001/ledgers ``` ```bash POST http://localhost:5001/transactions ``` -------------------------------- ### Get Tokenized Fields Source: https://docs.blnkfinance.com/sdks/typescript/identities/get-tokenized-fields This example demonstrates how to use the TypeScript SDK to check which identity fields are tokenized. Ensure the SDK is properly installed and imported. ```typescript export const CtaCallout = props => { const {title, buttonLabel, href, trackingEvent, buttonTarget, rel = "noopener noreferrer", children} = props; const handleCtaClick = () => { if (typeof window === "undefined" || !trackingEvent) { return; } try { window.dispatchEvent(new CustomEvent("blnk:docs-cta", { detail: { name: trackingEvent, href } })); } catch {} try { window.posthog?.capture?.(trackingEvent, { href }); } catch {} const gaPayload = { cta_href: href }; try { window.gtag?.("event", trackingEvent, gaPayload); } catch {} try { window.dataLayer = window.dataLayer || []; window.dataLayer.push({ event: trackingEvent, ...gaPayload }); } catch {} }; const isExternal = typeof href === "string" && (/^https?:\/\/i).test(href); const target = buttonTarget ?? (isExternal ? "_blank" : undefined); const linkRel = isExternal ? rel : undefined; return