Skip to main content

Action

A generic entity for tracking protocol actions. There may be multiple actions for a single tx.

type Action {
id: String!
subgraphId: BigInt!
block: BigInt!
chainId: BigInt!
from: Bytes!
hash: Bytes!
timestamp: BigInt!
category: ActionCategory!
contract: Bytes!
fee: BigInt
stream: Stream
addressA: Bytes
addressB: Bytes
amountA: BigInt
amountB: BigInt
}

Fields

Action.id ● String! non-null scalar

Unique identifier: {txHash}-{blockLogIndex}

Action.subgraphId ● BigInt! non-null scalar

Unique global id as tracked by the Watcher entity.

Action.block ● BigInt! non-null scalar

Block number of the Ethereum transaction.

Action.chainId ● BigInt! non-null scalar

The id of the chain, e.g. 137 for Polygon.

Action.from ● Bytes! non-null scalar

The msg.sender of the Ethereum transaction.

Action.hash ● Bytes! non-null scalar

Hash of the Ethereum transaction.

Action.timestamp ● BigInt! non-null scalar

Unix timestamp of the Ethereum transaction.

Action.category ● ActionCategory! non-null enum

Category of action, e.g., Deposit.

Action.contract ● Bytes! non-null scalar

Contract through which the action was triggered.

Action.fee ● BigInt scalar

The Sablier fee paid in the native token of the chain, e.g., ETH for Ethereum Mainnet. See https://docs.sablier.com/concepts/fees

Action.stream ● Stream object

Stream linked to this action, if any.

Action.addressA ● Bytes scalar

Address of 1st actor. Who this is depends upon the action type, e.g. for Create, it is the sender.

Action.addressB ● Bytes scalar

Address of 2nd actor. Who this is depends upon the action type, e.g. for Transfer, it is the recipient.

Action.amountA ● BigInt scalar

1st amount. What this is depends upon the action type, e.g. for Deposit, it is the deposit amount.

Action.amountB ● BigInt scalar

2nd amount. What this is depends upon the action type, e.g. for Withdraw, it is the refund amount.