開發者
一個用戶端,服務所有產品。
五次呼叫即可涵蓋完整生命週期。你的 API 金鑰始終留在自己的伺服器上——瀏覽器或行動應用程式與你的後端通訊,你的後端再與我們通訊。支援 WharfKit 錢包工作階段與通行金鑰。
import { BoundIdentityClient } from "@bound-identity/sdk";
const id = new BoundIdentityClient({
baseUrl: process.env.BOUND_IDENTITY_URL!,
apiKey: process.env.BOUND_IDENTITY_API_KEY!, // server-side only
});
// 1. New user arrives — they get a working account immediately.
const { accountDid } = await id.freeCreate({ ownerPublicKey });
// 2. They reach something that needs a real identity. Send them to verify.
const { personDid, accessToken } = await id.startKyc({ accountDid });
// … open the verification screen your provider returns …
// 3. Tie the passed check to this account: the user signs a one-time message.
const { payloadToSign, message } = await id.createBindChallenge({ accountDid, personDid });
await id.confirmBind({ accountDid, personDid, nonce: message.nonce, signature });
// 4. Lift the limits. Done.
await id.unlock({ accountDid });任何身分證件都不會經過你的程式碼,任何密鑰都不會抵達瀏覽器。如果想在動手寫程式前先看看流程,免費的 Builder 方案會在測試區塊鏈與模擬身分驗證上完整跑通。
API
OpenAPI 位於產品儲存庫的 /docs/openapi.yaml。本機預設基礎網址:http://127.0.0.1:4100
每個產品一把金鑰
為你經營的每個產品分別簽發 API 金鑰——你的錢包、你的交易平台、你的核心銀行整合。每把金鑰只能看到自己的資料;隔離由 API 強制執行,而不是靠約定。