Skip to main content
POST
Seller Financing is in beta and runs on Ethereum Sepolia instances only for now (DEVELOPMENT instances on Ethereum). A PRODUCTION instance, or one on another network, answers 503 SELLER_FINANCING_UNAVAILABLE. See Seller Financing.
Builds setConfig on the market for a holder of the operator role to sign. The configuration sets the ranges new listings must fall within and the rates they are stamped with. It replaces the whole configuration, so send every field, including the ones you keep. Read the current values with Get Market. A new configuration reaches new listings only. Every listing already created, open or with a running loan, keeps the terms it was stamped with. The operator can update the configuration while the market is paused.
A configuration mined just before a seller’s pending listing applies to that listing. Sellers see the terms they got in the ListingCreated event and can cancel an open listing they do not accept.

Path Parameters

string
required
The market’s record ID, as id on List Markets.

Body Parameters

object
required
The full configuration. Each minimum must not exceed its maximum, minInterestPeriodDays must not exceed maxDurationDays, and at least one strategy must be enabled, or the request answers 400 INVALID_CONFIG. While minInterestPeriodDays is below maxDurationDays, maxGracePeriodDays must be at least 1, because a listing with periodic due dates needs a grace period of at least one day; only a market where every listing has a single period may keep 0. A smaller value answers 400 INVALID_CONFIG with the message “maxGracePeriodDays must be at least 1 while interest periods can be shorter than the runtime: a listing with periodic due dates needs a grace period of at least 1 day”.
string
required
The wallet that signs: a holder of OPERATOR_ROLE on the market, the operator named at deployment unless the admin moved the role. Without it the answer is 400 FROM_REQUIRED. Any other wallet answers 409 TX_WOULD_REVERT with AccessControlUnauthorizedAccount, and details.requiredRole and details.roleHolders name the role and the wallets that hold it now.

Response Fields

object

Error Codes