Step 3. Create a Variable

Create a variable to monitor transactions for specific wallets or addresses.

As outlined in the Introduction page, event streaming supports two variable types:

  • address, which will produce confirmed_tx and confirmed_balance.
  • event_type, which will produce block.

Both variables return an id which is the unique identifier of the resource. We need this id for two reasons:

  • To reference the variables used in a rule.
  • To add values to a variable.

In this step, we'll create a variable of type address.

Request Payload

curl --location '' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '   
        "description": "Polkadot mainnet addresses",
        "name": "Polkadot mainnet addresses",
        "type": "string"

Response Payload

A successful response will return a "201 - Created" status with the variable details.

    "created_at": "2024-03-06T14:44:40.940488Z",
    "description": "Polkadot mainnet addresses",
    "id": "3c1c1483-d8e0-4ecb-95a0-1e18a5d03244",
    "name": "Polkadot mainnet addresses",
    "type": "string",
    "updated_at": "2024-03-06T14:44:40.940488Z"

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.