Aggregations

Create aggregation

Create a new aggregation to track and measure metrics over a time window.

post/v1/aggregations

Headers

privy-app-idstring required

ID of your Privy app.

privy-idempotency-keystring

Idempotency keys ensure API requests are executed only once within a 24-hour window.

Request body

method'eth_signTransaction' | 'eth_signUserOperation' required

The RPC method this aggregation applies to.

namestring required

The name of the aggregation.

owner_idstring cuid2 nullable

The key quorum ID to set as the owner of the resource. If you provide this, do not specify an owner.

Example request

{
  "conditions": [
    {
      "field": "content"
    }
  ]
}

Response

Created aggregation object.

created_atnumber required

Unix timestamp of when the aggregation was created in milliseconds.

idstring required

Unique ID of the aggregation.

method'eth_signTransaction' | 'eth_signUserOperation' required

The RPC method this aggregation applies to.

namestring required

The name of the aggregation.

owner_idstring nullable required

The key quorum ID of the owner of the aggregation.

Example response

{
  "conditions": [
    {
      "field": "content"
    }
  ]
}

Changes

Changed in 3 of the 46 revisions of this API.44555

  • 916b8f0728f414548See the full diff
    • added MessageSigningCondition to the conditions/items/ response property oneOf list for the response status 200

      response-property-one-of-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #10: SystemCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #11: TronTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #12: TronCalldataCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #14: SuiTransferObjectsCommandCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #15: ActionRequestBodyCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #16: AggregationCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #1: EthereumTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #2: EthereumCalldataCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #3: EthereumTypedDataDomainCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #4: EthereumTypedDataMessageCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #5: Ethereum7702AuthorizationCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #6: TempoTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #7: SolanaProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #8: SolanaSystemProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new contains enum value to the conditions/items/oneOf[subschema #9: SolanaTokenProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #10: SystemCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #11: TronTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #12: TronCalldataCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #14: SuiTransferObjectsCommandCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #15: ActionRequestBodyCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #16: AggregationCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #1: EthereumTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #2: EthereumCalldataCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #3: EthereumTypedDataDomainCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #4: EthereumTypedDataMessageCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #5: Ethereum7702AuthorizationCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #6: TempoTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #7: SolanaProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #8: SolanaSystemProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new ends_with enum value to the conditions/items/oneOf[subschema #9: SolanaTokenProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #10: SystemCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #11: TronTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #12: TronCalldataCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #14: SuiTransferObjectsCommandCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #15: ActionRequestBodyCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #16: AggregationCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #1: EthereumTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #2: EthereumCalldataCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #3: EthereumTypedDataDomainCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #4: EthereumTypedDataMessageCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #5: Ethereum7702AuthorizationCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #6: TempoTransactionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #7: SolanaProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #8: SolanaSystemProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added the new starts_with enum value to the conditions/items/oneOf[subschema #9: SolanaTokenProgramInstructionCondition]/operator response property for the response status 200

      response-property-enum-value-added

    • added message discriminator mapping keys to the conditions/items/ request property

      request-property-discriminator-mapping-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #10: SystemCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #11: TronTransactionCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #12: TronCalldataCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #14: SuiTransferObjectsCommandCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #15: ActionRequestBodyCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #16: AggregationCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #1: EthereumTransactionCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #2: EthereumCalldataCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #3: EthereumTypedDataDomainCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #4: EthereumTypedDataMessageCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #5: Ethereum7702AuthorizationCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #6: TempoTransactionCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #7: SolanaProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #8: SolanaSystemProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added the new contains enum value to the request property conditions/items/oneOf[subschema #9: SolanaTokenProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #10: SystemCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #11: TronTransactionCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #12: TronCalldataCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #14: SuiTransferObjectsCommandCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #15: ActionRequestBodyCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #16: AggregationCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #1: EthereumTransactionCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #2: EthereumCalldataCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #3: EthereumTypedDataDomainCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #4: EthereumTypedDataMessageCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #5: Ethereum7702AuthorizationCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #6: TempoTransactionCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #7: SolanaProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #8: SolanaSystemProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added the new ends_with enum value to the request property conditions/items/oneOf[subschema #9: SolanaTokenProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #10: SystemCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #11: TronTransactionCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #12: TronCalldataCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #14: SuiTransferObjectsCommandCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #15: ActionRequestBodyCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #16: AggregationCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #1: EthereumTransactionCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #2: EthereumCalldataCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #3: EthereumTypedDataDomainCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #4: EthereumTypedDataMessageCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #5: Ethereum7702AuthorizationCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #6: TempoTransactionCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #7: SolanaProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #8: SolanaSystemProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added the new starts_with enum value to the request property conditions/items/oneOf[subschema #9: SolanaTokenProgramInstructionCondition]/operator

      request-property-enum-value-added

    • added MessageSigningCondition to the conditions/items/ request property oneOf list

      request-property-one-of-added

    • added message discriminator mapping keys to the conditions/items/ response property for the response status 200

      response-property-discriminator-mapping-added

  • a8d27de9e15d24See the full diff
    • removed subschema #1 from the window request property oneOf list

      request-property-one-of-removed

    • added RollingAggregationWindow to the window response property oneOf list for the response status 200

      response-property-one-of-added

    • added discriminator to window request property

      request-property-discriminator-added

    • added RollingAggregationWindow to the window request property oneOf list

      request-property-one-of-added

    • added discriminator to window response property for the response status 200

      response-property-discriminator-added

    • removed subschema #1 from the window response property oneOf list for the response status 200

      response-property-one-of-removed

  • 9be6c2925d4713See the full diff
    • added TempoTransactionCondition to the conditions/items/ response property oneOf list for the response status 200

      response-property-one-of-added

    • added tempo_transaction discriminator mapping keys to the conditions/items/ request property

      request-property-discriminator-mapping-added

    • added TempoTransactionCondition to the conditions/items/ request property oneOf list

      request-property-one-of-added

    • added tempo_transaction discriminator mapping keys to the conditions/items/ response property for the response status 200

      response-property-discriminator-mapping-added