Skip to main content
POST
Revoke Loan Approval
Builds the revoke transaction on the market’s approvals contract, and confirms it on a second call with txHash. Trusset never signs: the market admin or a wallet holding LOAN_APPROVER_ROLE signs the calldata. Once confirmed, an APPROVED request is REVOKED. To void every approval of the market at once, for example when an approver wallet is lost or replaced, use Revoke All Loan Approvals.

Who can call

The lender of record.

Path Parameters

string
required
The market’s record ID on your instance.
string
required
The loan request reference: lrq_ followed by 20 characters.

Body Parameters

string
The wallet that will sign.
string
Hash of the transaction you broadcast. Send it to confirm the transaction and record the result. Omit it to receive the calldata.

The revoke follows the chain

The revoke follows the chain, not the request status. The transaction is built whenever an approval is on chain for the request’s borrower and loan, also when the request was withdrawn or declined after the approval was mined. When no approval is on chain, the build answers 409 APPROVAL_NOT_ON_CHAIN. On the confirm call:
  • The signer has to be a verified wallet of your instance. Otherwise the confirm answers 403 APPROVAL_NOT_INSTANCE_BOUND.
  • A revoke older than the approval recorded on the request did not revoke it, and answers 400 TX_NOT_VERIFIED.
  • A request that is not APPROVED is returned unchanged.

Response Fields

object

Error Codes