Add a builder code
POST/builders/:slug/codes
Claims an ERC-8021 builder code for your builder. Launches whose calldata carries the code are credited to your builder at the code tier. A code is a claim anyone can append, so the index shows that credit only under attribution=all and never counts it as verified.
The first builder to register a code gets it, and Bankr settles disputes by hand. A builder holds at most 20 codes. 201 when the code is added, 200 when it was already yours. Shares the 30-per-minute builder write limit.
Request
Responses
- 200
- 201
- 400
- 401
- 403
- 404
- 409
- 429
- 500
The builder's public profile after the change.
The builder's public profile after the change.
An invalid code, with details.
No key, or the key is invalid or inactive (message says which).
One of:
API_KEY_READ_ONLY: the key is read-only.- The builder belongs to another account.
- The account has not accepted Bankr's terms (Create a builder only).
- The account is suspended:
errorisAccount suspendedandbannedistrue. - A partner-provisioned wallet that is suspended or closed, or whose partner organization is deactivated.
- The request's IP is not on the key's IP allowlist.
No builder has this slug, or the wallet behind the key no longer exists.
The code is registered to another builder or reserved by Bankr, or the builder already holds 20 codes.
Over the builder write limit, 30 requests per minute per IP. Wait the number of seconds in Retry-After, then retry.
Response Headers
Seconds until the limit resets.
Requests allowed per minute.
Requests left in this minute.
Seconds until the limit resets.
Something failed on Bankr's side. The body is a fixed message with no code; retry later.