Watch any Ethereum address with π¦ eth-owl
to receive real-time callbaks to your webhooks (or emails) for each incoming/outgoing transaction. A permissionless, pseudo-anonymous Ethereum SaaS for developers.
- setup your REST API endpoint that will receive
POST
requests from π¦eth-owl
purchase
your webhook or email subscription via theethOwl
smart contract https://etherscan.io/address/0x70C92A8A51191378a6ec8ce0493aa7a3f469425C#writeContract
{
purchase: 0.1, // π¦ `eth-owl` costs 0.1 ETH per webhook, per year
_addr: '0x70C92A8A51191378a6ec8ce0493aa7a3f469425C', // address to watch
_endpoint: 'https://yhk4twhgq8.execute-api.us-east-1.amazonaws.com/prod/swoops' // your REST API endpoint that will be pinged (a POST request) for each incoming/outgoing transaction to `_addr`
}
Price is the same as webhooks. 0.1 ETH to subscribe your email address to an Ethereum address for 1 year. Email is within ~1 min of the transaction being confirmed, and includes the Ethereum address, transaction hash, and a link to the transaction on Etherscan.
-
PATH
/{your_endpoint_name}
-
Method:
- POST
-
Data params:
- Required:
- address=[string] The Ethereum address with an incoming/outgoing transaction that triggered this POST request
- hash=[string] The transaction hash that triggered this POST request
- Required:
-
Success response:
- statusCode:
{status_code}
- statusCode:
-
Error response:
- statusCode:
{error_code}
π¦eth-owl
will retry thePOST
request 60 seconds later upon an error
- statusCode:
-
Sample Call:
curl -d '{"address":"0x70C92A8A51191378a6ec8ce0493aa7a3f469425C", "hash":"0xf6d591442a2ae297c383fe74d9e28233844da780f39d93037540232ea75ce6fa"}' -H "Content-Type: application/json" -X POST https://yhk4twhgq8.execute-api.us-east-1.amazonaws.com/prod/swoops
In our example swoops, we use the Serverless Framework to have a Lambda function run anytime our endpoint
is pinged by π¦ eth-owl
.
eth-owl
watches the EthOwl
smart contract 0x70C92A8A51191378a6ec8ce0493aa7a3f469425C
where webhooks are purchase
d by our users. The swoops
endpoint is pinged by eth-owl
for each incoming/outgoing transaction to this address (smart contract). The code it runs adds the _addr
and _endpoint
EthOwl
emits with its Hoot
event to our database. π¦ eth-owl
now watches all incoming/outgoing transactions for _addr
and hoots to endpoint
! So swoops is not only an example for you to follow to quickly get started, it dog-foods π¦ eth-owl
, and this is the exact code that runs when you purchase
a webhook via our EthOwl
smart contract!
- π¦
eth-owl
will ping your webhook within a few blocks of a transaction occuring. Expect a ~1 min delay. If customers ask, latency can be reduced - π¦
eth-owl
is trust minimized. You can run your own node (or ethql, as we do in swoops) to actually verify theaddress
andhash
in the POST request, and parse the transaction data/events. You should not trust π¦eth-owl
for anything other than its hoots! Especially because POST requests are not signed currently (another feature that can be implemented if customers ask)
π¦ eth-owl
is not fazed by what it sees. It watches the Ethereum blockchain, and occasionally hoots