Skip to content

Commit bf8ab3d

Browse files
committed
update readme
1 parent 6cf9981 commit bf8ab3d

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

README.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -132,24 +132,6 @@ kafka-console-consumer.sh --zookeeper localhost:2181 --topic contractevent
132132
java -jar FullNode.jar -p privatekey -c config.conf --es
133133
```
134134

135-
#### Set event plugin config via http
136-
```
137-
url: http://localhost:8090/wallet/setEventPluginConfig
138-
parameters: TriggerInfo list, which are serialized in json format
139-
140-
message TriggerInfo{
141-
string triggerName = 1;
142-
bool enable = 2;
143-
string topic = 3;
144-
}
145-
146-
```
147-
148-
### Set event plugin config via grpc
149-
```
150-
Wallet-cli:setEventPluginConfig
151-
command: setEventPluginConfig block|true transaction|false
152-
```
153135

154136
### Event filter
155137
which is defined in config.conf, path: event.subscribe
@@ -166,26 +148,6 @@ filter = {
166148
]
167149
}
168150
```
169-
#### Set event plugin filter via http
170-
```
171-
url: http://localhost:8090/wallet/seteventfilter
172-
parameters: EventFilter object, which is seralized in json format
173-
174-
message EventFilter {
175-
string fromBlock = 1;
176-
string toBlock = 2;
177-
repeated string contractAddress = 3;
178-
repeated string contractTopic = 4;
179-
}
180-
181-
```
182-
183-
#### Set eventFilter via grpc
184-
```
185-
Wallet-cli: seteventfilter
186-
command: seteventfilter 100 1000 address1|address2 topic1|topic2
187-
if parameter is null, input *
188-
for example: seteventfilter * * * *, which means any contract log or event will be subscribed.
189151
```
190152
191153
### Tron event subscribe model

0 commit comments

Comments
 (0)