Skip to main content
POST
Builds payDistributor(distributor) on the vault. It pays everything the vault holds for one distributor to that distributor’s payout wallet. The payout wallet is the distributor’s own address until it is moved with Set Distributor Wallet. Any wallet may sign. The vault pays the distributor’s payout wallet, never the signer. Only fees already collected into the vault are payable: run Collect Distributor Fees for each market first. claimable on Get Earnings shows the amount. The API builds a payout for one of your instance’s own distributor wallets. The instance that operates the vault may also build one for any other distributor, which still pays that distributor’s own payout wallet.

Path Parameters

string
required
Vault ID.

Body Parameters

string
The distributor wallet to pay out, as a 0x address. Defaults to your instance’s distributor wallet: its primary verified wallet, or its earliest when none is primary. A distributor that is not a verified wallet of your instance answers DISTRIBUTOR_NOT_OWNED, unless your instance operates the vault.
string
Hash of the mined payout, 0x and 64 hex characters. Send it to confirm and record the result; nothing else is needed then. Omit it to receive the calldata.
The route validates every field of the schema it shares with the other distributor actions, even where this action ignores it.

Response Fields

The calldata response:
object
The confirmation response, after the backend has verified the receipt:
object
The payout reaches paid on Get Earnings once its block is final, because the earnings history is read only from settled blocks.

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 payout on this vault. See transaction verification errors.