Skip to content
Transaction Monitoring

Set MonitoringTry API

POST chain_tvm (Set Monitoring)

This action is usually executed by the wallet backend. It registers the address information watched by the current wallet and submits it when an account is added.

Parameters

data:parameterdescription, array []RegisterEvent jsonserializeafteruse base64encoded

Clear: ifis true cleardivide byexistingconfigureinformation

type RegisterEvent struct{

Address stringjson:"address"

Funccode stringjson:"funccode"

}

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_tvm",
"params": [
  "opcode=token&subcode=registerEvent&data=&clear=false",
  "encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}
Response
{
 "jsonrpc":  "3.0",
 "id":  "aa80aa0c6bb0c7d81ac7e5b3",
 "result": {
   "ret":  "0",
   "err":  "",

On this page