Bitquery Tools
Bitquery Conditional Metrics
Aident Loadout を通じて Bitquery Tools の Bitquery Conditional Metrics を使用します。実行前に入力、出力、設定、料金、リスクを確認できます。
書き込み Actionリスクレベル 2/5API キー接続
プロバイダーの説明
Generate a Bitquery GraphQL metric snippet with an if condition for count, sum, avg, min, or max, for embedding in a query. The snippet can include a distinct field for counts, a post-aggregation filter, and an alias.
料金と制限
- 料金
- 無料 Action
- 統合支払い
- 現在未対応
入力
- Conditional filter to apply to the metric via the 'if:' attribute. Uses nested object structure matching Bitquery GraphQL filter syntax. Example: {'Block': {'GasUsed': {'gt': '0'}}} or {'Transaction': {'Success': true}}.ifobject必須
- GraphQL alias to prefix the metric output. Example: 'totalGas' produces 'totalGas: sum(...)'.aliasstring
- The field to aggregate using 'of:' in GraphQL. Required for 'sum', 'avg', 'min', 'max' operations. For 'count' operation, this field is ignored unless using distinct_field. Example: 'Block_GasUsed', 'Transaction_Value'.fieldstring必須
- Type of metric operation to apply. Options: 'count' (count rows), 'sum' (sum values), 'avg' (average), 'min' (minimum), 'max' (maximum).operationstring必須
- HAVING-style filter applied after aggregation via 'selectWhere:'. Useful for filtering aggregated results. Example: {'ge': '1000000'} to only include results >= 1000000.select_whereobject
- Field name for counting distinct values (only valid for 'count' operation). When provided, generates 'distinct: <field>' in the output. Example: 'Block_Number' to count distinct blocks.distinct_fieldstring
確認できる出力
- Data from the action executiondata必須
- Error if any occurred during the execution of the actionerrorstring
- Whether or not the action execution was successful or notsuccessfulboolean必須
この Action を使用する Skills
関連ユースケース
検証済みの関連ユースケースはまだリンクされていません。