消息模版变量汇总表

所有 Monitor 通用变量:

  • $bot

  • $alert

Address Monitor:

  • $bot

  • $alert

  • $chain

  • $block

  • $tx

Block Monitor:

  • $bot

  • $alert

  • $chain

  • $block

Arweave Monitor:

  • $bot

  • $alert

  • $chain

  • $block

  • $tx

NFT Monitor:

  • $bot

  • $alert

  • $block

  • $nft

DEX Monitor:

  • $bot

  • $alert

  • $dex

Value Monitor:

  • $bot

  • $alert

  • $value

Snapshot Monitor:

  • $bot

  • $alert

  • $Snapshot

变量详细说明

$bot

paramtypecomment

$bot.name

string

此 Bot 的名称

$bot.url

string

此 Bot 的链接

$alert

paramtypecomment

$alert.time

string

alert 触发的时间,按照用户所在时区

$alert.timestamp

uint64

时间戳

$chain

paramtypecomment

$chain.type

string

ethereum

$chain.chainId

uint64

chain_id

$chain.symbol

string

链native token的symbol

$chain.decimals

int

链native token的decimals

$chain.explore

string

区块浏览器链接

$block

paramtypecomment

$block.hash

string

区块hash

$block.height

uint64

区块高度

$block.minter

string

区块挖掘者 address

$block.baseFeePerGas

float64

该block的 basefee, 单位gwei

$block.gasUsedPercent

float64

该block 的 gas 使用的百分比

$tx

paramtypecomment

$tx.hash

string

交易hash

$tx.nonce

string

交易nonce

$tx.from

string

from address

$tx.to

string

to address

$tx.value

string

tx value

$tx.gas

string

tx 花费的gas数量

$tx.input

string

tx 的input data

$nft

paramtypecomment

$tx.hash

string

交易hash

$tx.nonce

string

交易nonce

$tx.from

string

from address

$tx.to

string

to address

$tx.value

string

tx value

$tx.gas

string

tx 花费的gas数量

$tx.input

string

tx 的input data

$dex

paramtypecomment

$dex.name

string

dex name

$dex.address

string

dex swap 合约地址

$dex.tokenBase.symbol

string

tokenBase symbol

$dex.tokenBase.address

string

tokenBase address

$dex.tokenBase.decimals

int

tokenBase 精度

$dex.tokenBase.amount

decimal

tokenBase 数量

$dex.tokenBase.balance

decimal

tokenBase流动性

$dex.tokenQuote.symbol

string

tokenQuote symbol

$dex.tokenQuote.address

string

tokenQuote address

$dex.tokenQuote.decimals

int

tokenQuote 精度

$dex.tokenQuote.amount

decimal

tokenQuote 数量

$dex.tokenQuote.balance

decimal

tokenQuote 流动性

$dex.value

decimal

token数量

$dex.USDValue

decimal

token usd价值

$dex.price

decimal

价格

$dex.priceUSD

decimal

usd本位价格

$dex.action

string

动作

$dex.tokenIn.symbol

string

tokenIn symbol

$dex.tokenIn.address

string

tokenIn address

$dex.tokenIn.decimals

int

tokenIn 精度

$dex.tokenIn.amount

decimal

tokenIn 数量

$dex.tokenOut.symbol

string

tokenOut symbol

$dex.tokenOut.address

string

tokenOut address

$dex.tokenOut.decimals

int

tokenOut 精度

$dex.tokenOut.amount

decimal

tokenOut 数量

$dex.direction

📈 📉

上涨 /下跌

$dex.changed.duration

string

变动时间区间

$dex.changed.rate

decimal

变动速率

$dex.changed.direction

📈 📉

上涨 /下跌

$snapshot

paramtypecomment

$snapshot.event

string

回调事件

$snapshot.time

string

时间

$snapshot.proposal.id

string

id

$snapshot.proposal.title

string

标题

$snapshot.proposal.author

string

作者

$snapshot.proposal.state

string

状态

$snapshot.proposal.event

string

事件

$snapshot.proposal.space

string

space

$snapshot.proposal.link

string

链接

$snapshot.proposal.body

string

内容

$snapshot.proposal.start

string

开始时间

$snapshot.proposal.end

string

结束时间

$snapshot.space.id

string

space id

$snapshot.space.name

string

space 名字

$snapshot.space.about

string

space 介绍

$snapshot.space.network

string

space network

$snapshot.space.symbol

string

space 符号

$value

paramtypecomment

$value.values

map

formater 后的数值,为动态解析,比如 $value.values.balance, $value.values[”outpu0”]

$value.condition

string

所有 condition 内容转为字符串

$value.conditions

map

bot配置的condition转为map,key为condition 第一个字段, value为condition转为字符串

最后更新于