Distributor Fees
Collect Distributor Fees
Calldata that pulls the vault’s distributor slice from one market into the vault
POST
Builds
The route validates every field of the schema it shares with the other distributor actions (
The confirmation response, after the backend has verified the receipt:
collectDistributorFees(market) on the vault. It pulls the vault’s slice of one market’s distributor share into the vault. The vault then credits the part earned by attributed shares to their distributors and the rest, earned by shares no distributor brought, to the vault operator. It collects one market at a time.
Any wallet may sign. The market pays the slice to the vault itself, never to the signer, and it refuses anyone else’s attempt to sweep the vault’s slice. A collection pays nobody out: follow it with Pay Distributor or Pay Operator Fees. Get Earnings shows each market’s waiting claim.
The market must be one whose lender of record is the vault’s owner, settling in the vault’s asset. Any instance that can see the vault may build the call.
Path Parameters
string
required
Vault ID.
Body Parameters
string
The market to collect from, as a
0x address. Required to build the calldata.string
The wallet you intend to sign with. The API simulates the collection before offering calldata, from this wallet when given and from the vault’s own address otherwise. The contract accepts any signer either way.
string
Hash of the mined collection,
0x and 64 hex characters. Send it to confirm and record the result; nothing else is needed then. Omit it to receive the calldata.marketAddress, distributor, wallet, approved, signerAddress, txHash), even where this action ignores it.
Response Fields
The calldata response:object
object
Error Codes
Confirming with
txHash can also return TX_NOT_FOUND (404), TX_REVERTED, TX_WRONG_TARGET or TX_WRONG_FUNCTION (400), and TX_NOT_VERIFIED (400) when the transaction carries no collection on this vault. See transaction verification errors.