Register
Get Market Register
The asset register named for the collateral token of a market, and its answer
GET
/
asset-registers
/
api
/
markets
/
{marketAddress}
/
register
curl "https://api.trusset.org/asset-registers/api/markets/0x70a0e25c7b768b87e658348b3b577678a173e038/register" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/asset-registers/api/markets/${marketAddress}/register`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
const imported = data.register?.response === 'IMPORTED';
{
"success": true,
"data": {
"marketAddress": "0x70a0e25c7b768b87e658348b3b577678a173e038",
"tokenAddress": "0x39478e924930d7fed1fa3803ecf9b0ddc08ce512",
"canEdit": true,
"appliesTo": "TOKEN",
"onChain": false,
"register": {
"instanceId": "cmwk2r8v10003l80f4t6h9d2e",
"instanceName": "Register Production",
"companyName": "Elbe Register GmbH",
"registerKind": "OFF_CHAIN",
"registerKindLabel": "Off-chain register",
"response": "IMPORTED",
"respondedAt": "2026-11-18T10:31:07.000Z",
"assignedAt": "2026-11-18T10:14:52.000Z",
"listed": true
}
},
"error": null,
"metadata": {
"timestamp": "2026-11-18T10:40:03.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t"
}
}
Returns the asset register the deployer named for the collateral token behind a market, and whether that register has imported the market.
The record opens to every instance that holds a record of the market: the instance that deployed it and the instance of its lender of record.
A register provider does not read this endpoint for its own markets. It holds no record of the market, so the call answers
canEdit says which of the two is calling. Only the deploying instance can change the register, with Set Market Register and Clear Market Register.
The asset register is recorded beside the market, not in it.
onChain is always false and appliesTo is always TOKEN: the assignment covers every market of the same deployer on the same collateral token.404 MARKET_NOT_FOUND. It reads List Register Markets instead.
Path Parameters
The market contract address,
0x followed by 40 hex characters. Lowercase or correctly checksummed.Response Fields
Show child attributes
Show child attributes
The collateral token the assignment belongs to, lowercased.
null when the market records no collateral token.true for the instance that deployed the market. false for a lender of record, which reads the register and cannot change it. A change is checked on chain again when it is made.null while no register is named.Show child attributes
Show child attributes
PENDING until the register answers for this market, IMPORTED once it imported the market, DECLINED when it declined it. IMPORTED says the register took the market into its instance. It does not say that a register entry exists.curl "https://api.trusset.org/asset-registers/api/markets/0x70a0e25c7b768b87e658348b3b577678a173e038/register" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/asset-registers/api/markets/${marketAddress}/register`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
const imported = data.register?.response === 'IMPORTED';
{
"success": true,
"data": {
"marketAddress": "0x70a0e25c7b768b87e658348b3b577678a173e038",
"tokenAddress": "0x39478e924930d7fed1fa3803ecf9b0ddc08ce512",
"canEdit": true,
"appliesTo": "TOKEN",
"onChain": false,
"register": {
"instanceId": "cmwk2r8v10003l80f4t6h9d2e",
"instanceName": "Register Production",
"companyName": "Elbe Register GmbH",
"registerKind": "OFF_CHAIN",
"registerKindLabel": "Off-chain register",
"response": "IMPORTED",
"respondedAt": "2026-11-18T10:31:07.000Z",
"assignedAt": "2026-11-18T10:14:52.000Z",
"listed": true
}
},
"error": null,
"metadata": {
"timestamp": "2026-11-18T10:40:03.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
VALIDATION_ERROR | 400 | marketAddress is not 0x followed by 40 hex characters |
INVALID_ADDRESS | 400 | marketAddress is the zero address, or mixed case with a failing checksum |
AUTH_REQUIRED | 401 | No X-API-Key header |
AUTH_FAILED | 401 | The key is malformed, unknown, expired, or its instance is archived |
CREDIT_LIMIT_EXCEEDED | 402 | The instance’s monthly credit allowance is exhausted |
ACCOUNT_FROZEN | 403 | The account behind the key is suspended |
MARKET_NOT_FOUND | 404 | This instance holds no lending market with this address |
RATE_LIMIT_EXCEEDED | 429 | More than 100 reads in the minute |
REGISTER_READ_FAILED | 500 | The record could not be read |
DEPLOYER_UNREAD | 503 | The deployment of the market could not be read from the chain, so its register cannot be decided. Retry shortly |
⌘I
curl "https://api.trusset.org/asset-registers/api/markets/0x70a0e25c7b768b87e658348b3b577678a173e038/register" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/asset-registers/api/markets/${marketAddress}/register`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
const imported = data.register?.response === 'IMPORTED';
{
"success": true,
"data": {
"marketAddress": "0x70a0e25c7b768b87e658348b3b577678a173e038",
"tokenAddress": "0x39478e924930d7fed1fa3803ecf9b0ddc08ce512",
"canEdit": true,
"appliesTo": "TOKEN",
"onChain": false,
"register": {
"instanceId": "cmwk2r8v10003l80f4t6h9d2e",
"instanceName": "Register Production",
"companyName": "Elbe Register GmbH",
"registerKind": "OFF_CHAIN",
"registerKindLabel": "Off-chain register",
"response": "IMPORTED",
"respondedAt": "2026-11-18T10:31:07.000Z",
"assignedAt": "2026-11-18T10:14:52.000Z",
"listed": true
}
},
"error": null,
"metadata": {
"timestamp": "2026-11-18T10:40:03.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmrz4d1v20000cghx8k6p3m7t"
}
}
