Skip to main content

Payouts SDK

Revenue split calculation and payout execution (basis-point math)

Operations

Generated Reference

Overview

Revenue split calculation and payout execution (basis-point math)

Available Operations

calculate

Calculate a revenue split for a set of recipients using basis-point math. Default split is 70% compute, 20% model, 10% protocol (configurable via request body).

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.LucidCalculatePayoutResponse>

Errors

createFromReceipt

Extract token usage data from a receipt and compute the payout split automatically. Uses the receipt’s model and compute passport IDs to resolve the split configuration.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.LucidPayoutFromReceiptResponse>

Errors

get

Retrieve the computed payout split for a specific inference run by its run_id, including per-recipient amounts and the overall split configuration.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.LucidGetPayoutResponse>

Errors

verify

Verify the integrity of a payout split by checking that recipient amounts sum to the total, all recipients are valid addresses, and the payout hash is correct.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.LucidVerifyPayoutResponse>

Errors