Skip to content

Commit

Permalink
update eventSub fromBlock notice (#1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyShi22 authored Apr 1, 2024
1 parent e176bbe commit 9e5160e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2.x/docs/sdk/java_sdk/event_sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

- filerID:字符串类型,每次请求唯一,标记一次注册任务
- groupID:字符串类型,群组ID
- fromBlock:整形字符串,初始区块。“latest” 当前块高
- fromBlock:整形字符串,初始区块。“latest” 当前块高(传入块高时,需大于0)
- toBlock:整形字符串,最终区块。“latest” 处理至当前块高时,继续等待新区块
- addresses:字符串或者字符串数组:字符串表示单个合约地址,数组为多个合约地址,数组可以为空
- topics:字符串类型或者数组类型:字符串表示单个topic,数组为多个topic,数组可以为空
Expand Down
2 changes: 1 addition & 1 deletion 3.x/zh_CN/docs/sdk/go_sdk/event_sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (c *Connection) SubscribeEventLogs(eventLogParams types.EventLogParams, han
func (c *Connection) UnsubscribeEventLogs(taskID string)
```

- FromBlock:起始区块
- FromBlock:起始区块(需大于0)
- ToBlock:-1表示最新块
- Addresses:字符串数组,数组为多个合约地址,数组可以为空
- Topics:数组类型,数组为多个topic,数组可以为空
Expand Down

0 comments on commit 9e5160e

Please sign in to comment.