Create aggregation
Create a new aggregation to track and measure metrics over a time window.
SDK methods
Learn more about creating aggregations and using them in policies here.Authorizations
Basic Auth header with your app ID as the username and your app secret as the password.
Headers
ID of your Privy app.
Idempotency keys ensure API requests are executed only once within a 24-hour window.
Body
Input for creating an aggregation.
The name of the aggregation.
1 - 255The RPC method this aggregation applies to.
eth_signTransaction, eth_signUserOperation The metric configuration for an aggregation, defining what field/field_source to measure and the aggregation function to apply.
The time window configuration for an aggregation.
Optional conditions to filter events before aggregation.
100The verbatim Ethereum transaction object in an eth_signTransaction or eth_sendTransaction request.
- EthereumTransactionCondition
- EthereumCalldataCondition
- EthereumTypedDataDomainCondition
- EthereumTypedDataMessageCondition
- Ethereum7702AuthorizationCondition
- TempoTransactionCondition
- SolanaProgramInstructionCondition
- SolanaSystemProgramInstructionCondition
- SolanaTokenProgramInstructionCondition
- SystemCondition
- TronTransactionCondition
- TronCalldataCondition
- SuiTransactionCommandCondition
- SuiTransferObjectsCommandCondition
- ActionRequestBodyCondition
- AggregationCondition
Optional grouping configuration for bucketing metrics.
2Owner input specifying a Privy user ID.
- OwnerInputUser
- OwnerInputPublicKey
The key quorum ID to set as the owner of the resource. If you provide this, do not specify an owner.
Response
Created aggregation object.
An aggregation that measures and tracks metrics over a period of time.
The name of the aggregation.
1 - 255The RPC method this aggregation applies to.
eth_signTransaction, eth_signUserOperation The metric configuration for an aggregation, defining what field/field_source to measure and the aggregation function to apply.
The time window configuration for an aggregation.
Unique ID of the aggregation.
Unix timestamp of when the aggregation was created in milliseconds.
The key quorum ID of the owner of the aggregation.
Optional conditions to filter events before aggregation.
100The verbatim Ethereum transaction object in an eth_signTransaction or eth_sendTransaction request.
- EthereumTransactionCondition
- EthereumCalldataCondition
- EthereumTypedDataDomainCondition
- EthereumTypedDataMessageCondition
- Ethereum7702AuthorizationCondition
- TempoTransactionCondition
- SolanaProgramInstructionCondition
- SolanaSystemProgramInstructionCondition
- SolanaTokenProgramInstructionCondition
- SystemCondition
- TronTransactionCondition
- TronCalldataCondition
- SuiTransactionCommandCondition
- SuiTransferObjectsCommandCondition
- ActionRequestBodyCondition
- AggregationCondition
Optional grouping configuration for bucketing metrics.
2
