Oracle
Verify Signer
Check whether the instance wallet may sign prices on the market oracle
GET
/
lending-external-securities-v2
/
api
/
markets
/
{marketId}
/
verify-signer
curl "https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/verify-signer" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/markets/${marketId}/verify-signer`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"signerAddress": "0x1234f9a07c6b53d81e2a4f70c9b385d6014a7e52",
"oracleAddress": "0x3b25752c1459c5cf1b0bfcfdf0d56883c8047423",
"isAuthorized": true
}
}
{
"success": false,
"error": {
"code": "NO_ORACLE",
"message": "No oracle configured"
}
}
Reads from the chain whether this instance’s wallet can push and sign prices on the market’s oracle, as an authorized signer or as the oracle owner. The wallet checked is the instance’s first verified wallet, primary wallet first.
It answers one question only. It does not check the price signer the lender of record declared, which is usually a different key: read
The call also refreshes the
priceSigner and priceSignerAuthorized on Get Oracle Status for that. To check any other address, use Get Access Role with role=ORACLE_SIGNER.
A failed chain read returns
isAuthorized: false, exactly like a wallet that lacks authorization. Retry before acting on a false.signerAuthorized flag on the market record that Get Market returns. On an ORACLE-priced market the oracle reads an external feed and refuses every attested price, so an authorized wallet still cannot push there. On a FIXED market an authorized wallet can only mark the price down, through Sync Oracle Price.
Path Parameters
string
required
Response Fields
object
curl "https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/verify-signer" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/markets/${marketId}/verify-signer`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"signerAddress": "0x1234f9a07c6b53d81e2a4f70c9b385d6014a7e52",
"oracleAddress": "0x3b25752c1459c5cf1b0bfcfdf0d56883c8047423",
"isAuthorized": true
}
}
{
"success": false,
"error": {
"code": "NO_ORACLE",
"message": "No oracle configured"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
NO_ORACLE | 400 | The market records no oracle address |
MISSING_MARKET_ID | 400 | marketId is longer than 100 characters |
MARKET_NOT_FOUND | 404 | No market with this ID on your instance |
⌘I
curl "https://api.trusset.org/lending-external-securities-v2/api/markets/{marketId}/verify-signer" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/markets/${marketId}/verify-signer`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"signerAddress": "0x1234f9a07c6b53d81e2a4f70c9b385d6014a7e52",
"oracleAddress": "0x3b25752c1459c5cf1b0bfcfdf0d56883c8047423",
"isAuthorized": true
}
}
{
"success": false,
"error": {
"code": "NO_ORACLE",
"message": "No oracle configured"
}
}
