Skip to content
3F Docs

Multi-Maker Signed PUSH

Signed PUSH lets one bridge facilitator operate several funding contracts with one bot. The bot selects a different maker for each offer and signs an API authorization that the selected maker validates through EIP-712 or EIP-1271. No API key is required when submitting that offer.

This flow is useful when each vault or adapter sources its own liquidity and must send the final mint transaction itself.

Term Meaning
Broker / bridge facilitator Your organization-level 3F account. It owns the API key and the enrolled makers.
Maker The vault or adapter contract that supplies funds, calls mint(), receives PT/YT, and later redeems them.
Bot signer The key authorized by each maker contract to sign API messages. The signer is not stored as the offer maker.
offerAddress The broker’s legacy default maker for API-key submissions. Signed PUSH does not read or rewrite this default.

One broker can own maker A and maker B at the same time. Selecting B for one offer does not change A, the default offerAddress, or any outstanding offers. A maker can have only one broker owner.

Older integrations may call the maker a fundingAddress. There is no separate funding-address field in the signed PUSH request: use maker for the contract that funds and mints.

Before submitting offers:

  1. Complete normal bridge facilitator onboarding.
  2. Deploy each maker contract on the target chain.
  3. Make each contract validate the bot’s signatures through EIP-1271. An EOA maker also works: its signatures are checked directly.
  4. Give the bot a way to instruct that maker to source funds and call the Request contract’s mint() function.
  5. Enroll each maker under the broker.

An accepted offer only creates an on-chain mint authorization. The maker bot remains responsible for sourcing funds and minting before the deadline.

Enrollment is a management action. It requires both:

  • the broker’s x-api-key; and
  • an EnrollMaker signature that validates against the maker being enrolled.

Sign this typed data for each maker:

const domain = {
name: "grunt-api",
version: "1",
chainId,
} as const;
const types = {
EnrollMaker: [
{ name: "broker", type: "address" },
{ name: "maker", type: "address" },
{ name: "deadline", type: "uint256" },
],
} as const;
const signature = await walletClient.signTypedData({
domain,
types,
primaryType: "EnrollMaker",
message: {
broker,
maker,
deadline,
},
});

For a contract maker, maker.isValidSignature(digest, signature) must return the EIP-1271 magic value for the bot’s signature.

Every chainId in this guide must match the BF API deployment. The examples use production Ethereum mainnet (1); the API rejects another chain ID.

Submit the enrollment:

POST /v1/facilitator/makers
x-api-key: <BROKER_API_KEY>
Content-Type: application/json
{
"chainId": 1,
"maker": "0xMakerContract",
"deadline": "4102444800",
"signature": "0xMakerAuthorizedSignature"
}

Enrolling a maker that is already enabled under your broker is a no-op. Enrollment returns 409 when:

  • the maker belongs to another broker, or has been disabled (maker address already in use); or
  • the address already has offers without a reconciled owner (maker has unreconciled historical offers). Contact 3F to reconcile it.

Use GET /v1/facilitator/makers with the broker API key to list all associations. The response marks whether each maker accepts new submissions (submissionsEnabled) and whether it is the legacy default (isDefault).

To stop new offers for a maker:

POST /v1/facilitator/makers/disable
x-api-key: <BROKER_API_KEY>
Content-Type: application/json
{
"maker": "0xMakerContract"
}

Disabling a maker does not transfer it, remove its historical offers, or prevent its broker from reading that history.

Disabling is permanent: there is no re-enable endpoint, and enrolling a disabled maker again returns 409. The address stays owned by your broker and cannot be enrolled by another one.

Before disabling the default maker, enroll another maker and select it through POST /v1/facilitator/offer-address. Disabling the current default blocks API-key submissions with 403, and the disabled address cannot be selected as the default again.

Read the target auction first. You need its numeric auctionId, its Request contract address (exposed as requestId), and its rateBasisSeconds to price expectedReturn.

The signed PUSH payload uses the grunt-api domain, not the Request contract’s on-chain Offer domain:

const types = {
SubmitPushOffer: [
{ name: "action", type: "string" },
{ name: "executionMode", type: "string" },
{ name: "maker", type: "address" },
{ name: "auctionId", type: "uint256" },
{ name: "request", type: "address" },
{ name: "chainId", type: "uint256" },
{ name: "amount", type: "uint256" },
{ name: "expectedReturn", type: "uint256" },
{ name: "nonce", type: "uint256" },
{ name: "expiration", type: "uint256" },
{ name: "useCallback", type: "bool" },
{ name: "authorizationDeadline", type: "uint256" },
],
} as const;
const pushAuthorizationSignature = await botWallet.signTypedData({
domain: {
name: "grunt-api",
version: "1",
chainId,
},
types,
primaryType: "SubmitPushOffer",
message: {
action: "SUBMIT_PUSH_OFFER",
executionMode: "PUSH",
maker,
auctionId,
request: requestId,
chainId,
amount,
expectedReturn,
nonce,
expiration,
useCallback: false,
authorizationDeadline,
},
});

The selected maker must validate this exact payload. A signature valid for maker A cannot submit an offer for maker B.

expectedReturn is the yield on amount over the auction’s rateBasisSeconds: expectedReturn = floor(amount × aprBps × rateBasisSeconds / (10_000 × 31_536_000)). Its APR must not exceed the auction’s current maxRate nor fall below a quarter of the lowest APR on the auction’s ramp, otherwise the submission is rejected with 400. The example below bids 1,000 USDC at 12% APR on an annual auction (rateBasisSeconds = 31536000), so expectedReturn is 120 USDC. On a legacy 31-day FalconX auction (rateBasisSeconds = 2678400), 1,000 USDC at 11% APR is floor(1000000000 × 1100 × 2678400 / (10000 × 31536000)) = 9342465 (9.342465 USDC). See Pricing an offer.

Send the signature in pushAuthorizationSignature:

POST /v1/offer
Content-Type: application/json
{
"executionMode": "PUSH",
"chainId": 1,
"auctionId": 42,
"maker": "0xMakerContract",
"amount": "1000000000",
"expectedReturn": "120000000",
"nonce": "1",
"expiration": "4102444800",
"useCallback": false,
"authorizationDeadline": "4102444800",
"pushAuthorizationSignature": "0xMakerAuthorizedSignature"
}

Do not send the on-chain PULL signature field for this path. An API key is not needed and is ignored if sent: only the maker’s authorization counts. The API verifies the PUSH authorization and deliberately stores no executable PULL signature, so the auction engine routes the offer into maker-initiated minting.

useCallback: false does not select PUSH mode. Always send executionMode: "PUSH" for this flow.

The same bot can submit A, then B, then A again. Each request must name the intended maker and carry a signature that that maker validates.

Status Cause
400 Empty 0x PUSH signature, authorizationDeadline without pushAuthorizationSignature, a PULL signature sent with PUSH, a nonce above 9223372036854775807 (see API nonce range), or an expectedReturn whose APR is above maxRate or below the auction’s floor (usually priced on the wrong rateBasisSeconds).
401 Invalid or expired signature, expired authorizationDeadline, or a chain ID that does not match the BF API deployment.
403 The maker is not enrolled, or its submissions have been disabled.
409 The maker is already owned or disabled, has unreconciled offer history, or an offer retry changes terms or occurs after acceptance.
Field Purpose
authorizationDeadline Last time the signed API authorization can be submitted.
expiration Last time the offer can be selected by the auction.
mintDeadline Effective deadline for funding after acceptance. Returned by the API rather than signed at submission.

All request uint256 values are decimal strings over HTTP. Use integer or bigint values when constructing the typed data.

Use short-lived authorization deadlines in production. The distant timestamps above only keep the static example readable over time.

An offer is identified by its auction, maker, and nonce. Resubmitting the same nonce with identical terms (amount, expectedReturn, expiration, useCallback) returns the existing offer ID while it is still SUBMITTED, so retries are safe. Any change to those terms, or any resubmission once the offer has been accepted, returns 409 Offer already exists and is not upsertable.

To change terms, cancel the offer and submit again with a new nonce. A new nonce always creates a separate offer, and the previous one stays selectable until you cancel it.

Offer responses expose:

  • executionMode: PUSH;
  • pendingAmount: currently authorized principal;
  • pendingExpectedReturn: the expectedReturn share (yield over rateBasisSeconds) for the current authorization;
  • filledAmount: principal that has actually been funded;
  • filledExpectedReturn: the expectedReturn share for the funded principal. The yield actually repaid is prorated by the loan’s duration;
  • mintDeadline: the active UTC deadline, or null when no mint window applies.

The normal lifecycle is:

SUBMITTED → ACCEPTED → AWAITING_MINT → SUCCEEDED

When the offer reaches AWAITING_MINT, the authorization transaction is confirmed, but the Request has not received funds yet. The lease starts when the auction accepts the offer—not when the bot first polls or when authorization confirms—so mint immediately.

Before minting, read Request.mintAuthorization(maker). The engine may combine several accepted offers for the same maker into one PT/YT authorization. Source and mint that on-chain aggregate; do not use one offer row’s pendingAmount as the aggregate maxPt value.

The maker itself must send Request.mint() and receive the PT. The engine only credits a PT Deposit event when the maker is both sender and owner; minting from the bot wallet or a helper address does not count.

Partial fills can create later mint windows for the same offer. If the maker does not mint before the deadline, the existing timeout and revocation flow applies. An authorization transaction alone never increments filledAmount and is never reported as completed funding.

For the on-chain adapter flow, see the Push Mode Contract Example.

There are two authorization choices:

  • Broker API key — send x-api-key and set maker to the broker address (GET /v1/offer?maker=<broker address>) to read or cancel offers across all of its associated makers.
  • Maker signature — sign GetOffers(maker, deadline) for list/get or CancelOffer(maker, offerId, deadline) for cancellation, using the same grunt-api domain. The signature is scoped to that exact maker.

For signed reads, send the signature as Authorization: Bearer <signature> and include maker, chainId, and deadline in the query string.

Cancel with POST /v1/offer/cancel. With a maker signature, put it in the body:

POST /v1/offer/cancel
Content-Type: application/json
{
"offerId": 123,
"maker": "0xMakerContract",
"chainId": 1,
"deadline": "4102444800",
"signature": "0xMakerAuthorizedSignature"
}

With the broker API key, send x-api-key and only offerId plus maker set to the broker address; this works for offers on any of the broker’s makers. Cancel only before acceptance; cancellation cannot undo an active on-chain authorization or a completed mint.

You can enroll makers and submit signed PUSH offers from the console without writing code. See Push Offers § Additional makers.

Existing flows continue to work:

  • Omitting executionMode with an executable Offer signature remains legacy PULL.
  • Omitting executionMode and using the broker API key remains legacy PUSH through the configured default offerAddress. Omit chainId and signature on these requests; sending chainId makes the API expect a signature and returns 400.
  • Explicit PULL and signed PUSH use different typed data, so a PULL signature cannot be replayed to switch execution modes.

The live OpenAPI schema at /docs on the BF API is the source of truth for request and response fields.