Skip to main content
PUT
Names a listed register provider as the asset register of the collateral token behind this market. This is a database write: nothing is signed and nothing goes on chain. The answer is the same record Get Market Register returns. Only the instance that deployed the market can name the register, because the register belongs to the token and not to the loan side. A lender of record is refused with 403 REGISTER_ISSUER_ONLY. The call is checked on chain before anything is stored. A verified wallet of the instance must be the deployer of the market, the sender of its deployment transaction or the issuer named at its deployment. A role taken on the market later does not count. The assignment is stored per collateral token. It covers every market this instance deployed on that token, including markets deployed later. Each of those markets appears in the register’s queue until the register imports or declines it. Naming the register that is already named changes nothing and answers 200. Naming a different register replaces the assignment. The previous register loses its imports of these markets and its access to their pledge record. Its webhooks receive no further events for them.

Path Parameters

string
required
A market this instance deployed, 0x followed by 40 hex characters. Lowercase or correctly checksummed.

Body Parameters

string
required
The instanceId of a register from List Asset Registers, 1 to 100 characters. A register that is not listed on the network and environment of this instance is refused with 404 REGISTER_NOT_LISTED.

Response Fields

The response is the record of Get Market Register, with register.response reading PENDING for a newly named register.

Error Codes