Skip to main content
Privy supports two billing models for the costs an app incurs through wallet activity. Prepaid billing draws down a balance the app tops up in advance. Postpaid billing meters usage as it happens and invoices it at the end of the month.

Setup

Choosing your plan

Postpaid billing is available on the Enterprise plan. Contact [email protected] to enable it for an account.

Purchasing credits (prepaid)

An account on prepaid billing tops up its balance in the gas credits dashboard. The balance must cover a sponsored transaction, and Privy rejects the request once it runs out.
To query prepaid gas credit consumption for a set of wallets, use the gas spend endpoint.

Metering charges (postpaid)

Postpaid billing meters two kinds of usage independently. Each one becomes its own line item on the monthly invoice. A single wallet action can produce more than one charge. A sponsored cross-chain transfer meters both its gas and its routing cost.

Consuming charge events

Privy publishes a webhook each time it records a charge, carrying the amount and the wallet action that incurred it.

Usage webhooks

Receive an event each time Privy records a charge, and reconcile it against a wallet action.