Hinkal Partner

Go Live

The Dashboard's Go-live card has three steps. This page shows what completes each one.

The Go live card at the top of the Dashboard tracks three steps and ticks each one off on its own.

Create an API key

Choose Create API key, name it (for example Production backend) and confirm. The next screen shows the full publishable and secret keys. Put the secret key in your secrets manager. You can copy it again later from the API Keys page.

Owners, Admins and Developers can create keys, after a recent sign-in. See API Keys.

Make your first call

Send one signed request with your key to a route that reads it. The card checks every 5 seconds and switches to Done · Last request … once the API has seen the key.

GET /get-fee is the easiest first call because it moves nothing. It uses the setup code and helpers from Examples:

const session = await createSession();

const params = sessionGetParams(session, CHAIN_ID);
params.set("feeToken", USDC);
params.append("tokenAddresses", USDC);
params.set("externalActionId", "Transact");

const fee = await get("/get-fee", params, {
  ...requestSignatureGetHeader(session, "/get-fee", params.toString()),
  "x-api-key": process.env.HINKAL_SECRET_KEY,
});

console.log(fee);
// { success: true, feeAmount: "41250", hinkalVariableRateBps: 10, partnerFeeBps: 0, breakdown: { … }, nonce: "…" }

partnerFeeBps is there only when the key is valid. It stays 0 until step 3.

The request has to be signed, because the API checks the session and signature before it looks at the key. See Authentication. A plain receive address (/receive-address without recipientAddress) is never credited, so use /get-fee or another route from the list.

Done means the API saw the key, not that the call succeeded. Check the response as well.

Set your fee and go live

Enter your fee in basis points (the box is prefilled with 10) and choose Go live. Fees and Revenue Share explains how it's charged. The step then reads Done · Live and earning.

  • Only Owners and Admins can save a fee. Other roles see the box, but saving fails with Insufficient permissions.
  • Saving needs a recent sign-in. This step usually comes long after you signed in, so sign out and back in first.
  • You can set or change the fee any time in Settings.
Warning

You earn nothing until a fee above 0 is saved. The fee starts unset, and the prefilled 10 isn't saved until someone chooses Go live or Save. Saving 0 also marks the step Done, but earns nothing. Fees don't apply to past transactions.