Skip to main content
InkyPump has two related records:
  1. A global referral code owned by a wallet.
  2. A permanent, chain-scoped fee-earning binding from a referred wallet to a code.
An on-chain Referral event is not a substitute for the permanent fee-earning binding.

Referral code

Code creation is challenge-based. It is not Bearer-token authentication.

Permanent fee-earning binding

Ink also exposes:

Ink binding flow

Request a challenge:
The response includes challengeId, expiresAt, signingDomain, normalized referralCode, nonce, and the exact message to sign. After personal_sign, submit all challenge fields unchanged:
The binding is permanent. The API rejects self-referral, an already-bound wallet, expired/consumed challenges, mismatched data, and invalid signatures.

Accounting fields

Dashboard responses keep states separate, including pending, uncertain, finalized, accrued, claimable, reserved, and paid amounts. Do not collapse all of them into “earned.” Keep raw amount strings and dataThroughBlock.
Call these endpoints from your backend. They use chain context, rate limits, and no-store responses.