Scout Chart Creator
  • Overview
  • Get Started
    • Tutorial 1: NMR Daily Transaction Count
    • Tutorial 2: LPT Weekly Volume (USD)
    • Tutorial 3: NMR vs LPT Daily comparison
  • Pipeline
    • Filter
    • Project
    • Group
      • Accumulators
    • Sort
    • Unwind
    • Custom
  • Data Source
    • Transactions
    • States
    • Contracts
    • Aragon
    • Livepeer
    • dYdX
    • Set
    • Token holders
  • Operators
    • Math operators
    • Logic operators
    • Function operators
    • Array operators
    • String operators
  • Config
  • Protocols
    • Dodo
      • 24H trade volume
      • Deposit & Withdraw
    • Livepeer
    • dYdX
      • Making sense of the trade data
    • MakerDao
    • Pickle Finance
      • Example: Daily deposit and withdraw of jar 0.88
      • Example: Listing all borrows of a strategy
  • FAQ
    • Dealing with "logs" field in "Transaction"
    • How to handle "Query Timeout" error?
    • How to use a variable in a Pipeline
  • Research
    • The circulating supply of DODO tokens
    • How are bitcoins doing on Ethereum? (as of Jan 20th 2021)
Powered by GitBook
On this page

Was this helpful?

  1. FAQ

How to use a variable in a Pipeline

PreviousHow to handle "Query Timeout" error?NextResearch

Last updated 4 years ago

Was this helpful?

$$url

Sometimes, you want an option to pass a variable through the url of a chart and make the chart more dynamic. You can use the special variable $$url. Here is the format:

$$url.<Variable Name> = <Default Value>

For example, instead of hardcoding the address "0xCb4A3C00" in the pipeline, you can write it as the below example: $$url.address=0x0Cb4A3C00eB951EdAe0849F3691bcF1d017206a4

In the url of your chart, you can append something like "?address=0xblablala". If you don't append anything, the pipeline will use the default value "0xCb4A3C00" to render the chart.

Name the variable as "address" and assign a default value "0xCb4A3C00"