Skip to content

proofcastlabs/event-attestator-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event Attestator Api

Small flask api to retrieve information from a running Event Attestator.

Run

Run with ./run.sh.

Examples

Signer details

curl -X POST -H 'Content-Type: application/json' -d '{"method":"getSignerDetails"}' http://api-uri/

Output:

{"result":{"account":"0x...","attestationCertificate":"0x...","attestationSignature":"0x...","publicKey":"0x..."}}

Signed event

curl -X POST -H 'Content-Type: application/json' -d '{"method":"getSignedEvent","params":[$EVENT_ID]}' http://api-uri/

Output:

{"result":{"block_id_hash":"0x...","event_id":"...","event_payload":"...","log":{"address":"0x...","data":[...],"topics":["0x...","0x...","0x...", "0x..."]},"origin":"Mainnet","protocol":"Ethereum","public_key":"...","signature":"...","tx_id_hash":"0x...","version":"V1"}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published