Transaction Notifications

Oleg Aldekein edited this page Jul 11, 2018 · 13 revisions

Notification service is a public SaaS service. It allows to get HTTP POST callbacks on Ethereum events. In order to use it, you need to sign up at https://ambisafe.com/ and set the filters at https://www.ambisafe.com/saas/notificator/

Transfer with ICAP Example

HTTP body:

{"from":"0x1ff21eca1c3ba96ed53783ab9c92ffbf77862584","eventName":"TransferToICAP","eventData":{"reference":"","version":1,"icap":"XE80EXMAMBI0DIMA0HI0","from":"0x1ff21eca1c3ba96ed53783ab9c92ffbf77862584","to":"0x53786e5722f854a62783395dcdc27d633a9b063e","value":3000},"transactionHash":"0xb8ad15e40cc01695ac996ddbecb3c1f5536dbd2c3d07d140387f71017ff8cb57","timestamp":1465909825,"value":0,"blockNumber":1702807,"to":"0x53786e5722f854a62783395dcdc27d633a9b063e","logIndex":2,"transactionIndex":0,"confirmations":1}

Signature

Signature is a Base64 encoded SHA256 HMAC of HTTP body. It is stored is Signature HTTP Header. You can find key in your notification settings.

Example

Key 30c55850-dc15-4496-85b1-bc1517234196

Signature j3ch3WMg1URqcrzJE6QdV6eG0qTCAuX41HRDZCOPOZk=

HTTP Body {"from":"0x1ff21eca1c3ba96ed53783ab9c92ffbf77862584","eventName":"TransferToICAP","eventData":{"reference":"","version":1,"icap":"XE80EXMAMBI0DIMA0HI0","from":"0x1ff21eca1c3ba96ed53783ab9c92ffbf77862584","to":"0x53786e5722f854a62783395dcdc27d633a9b063e","value":3000},"transactionHash":"0xb8ad15e40cc01695ac996ddbecb3c1f5536dbd2c3d07d140387f71017ff8cb57","timestamp":1465909825,"value":0,"blockNumber":1702807,"to":"0x53786e5722f854a62783395dcdc27d633a9b063e","logIndex":2,"transactionIndex":0,"confirmations":1}

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.