This service is hosted at:
https://kovan-events.kleros.io
to subscribe to events on theKovan
testnethttps://events.kleros.io
to subscribe to events on the Ethereum mainnet
POST
Create a new subscription.
body = {
callbackURI: 'https://my-callback-uri.com',
contractABI: [...]
}
Params:
address
: The smart contracts addresseventName
: The name of the event that will trigger the callbackcallbackURI
: The URI of your webhook. When a matching event is consumed a POST request will be sent to this URI whose body is an Ethereum event log. For structure of event log seehttps://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#contract-events
contractABI
: The contract ABI. This only needs to be included if the contract has not been registered before.
DELETE
Remove a subscription callback.
body = {
callbackURI: 'https://my-callback-uri.com',
}
Params:
address
: The smart contracts address.eventName
: The name of the event.callbackURI
: The URI of your webhook to remove.