availproject / bridge-api

Apache License 2.0
19 stars 8 forks source link

Bridge API

The bridge API is a REST API for fetching proofs from Avail's Kate RPC and Succinct API to submit on Ethereum or any off-chain proof verification.

Deploying the bridge API

# for developing, make a debug build
cargo build
# and run it!
cargo run
cargo run --release
# you can use maxperf to optimize for runtime performance:
cargo run --profile maxperf
# you can use RUSTFLAGS to use CPU-native optimizations:
RUSTFLAGS="-C target-cpu=native" cargo run --profile maxperf

Usage

Liveness of the server

Get current Ethereum head

Get current Avail head

Generate Merkle Proof

Get Account/Storage proofs

Map slot to Ethereum block number

Examples of using bridge api