Read a provider's scheduled payouts
const url = 'https://api.staging.katara.com/v1/provider/payouts/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.staging.katara.com/v1/provider/payouts/exampleReplies paid with Katara credits are paid to the provider at scheduled payouts rather than
settled one by one. This statement lists what the payout address is owed and every payout
cut for it within the last 90 days, each with the receipts it covers. A payout’s key is the
settlement key on chain; the node recomputes it from the listed receipts and the fee before
it counts the payout. The response contains ticket hashes and amounts only.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Public payout address.
Responses
Section titled “Responses”The payout statement. Amounts are USDC base units.
object
object
Unix seconds of the oldest owed reply.
Payout fee per payout.
Smallest amount paid at a run.
Unix seconds of the next payout run.
Age after which a balance under the minimum is paid if it is at least five times the fee.
object
Sum of the receipts.
Gross less the payout fee; the settled amount.
Unix milliseconds the payout was cut.
object
Example
{ "payouts": [ { "state": "scheduled" } ]}The address is invalid.
This network does not schedule payouts.