rocket-launchGetting started

A native integration enables you to embed the entire cover purchase flow directly within your platform's interface. Users complete all steps, from getting a quote to purchasing coverage within your platform.

Integration overview

circle-info

Native integration is supported on the following chains: Ethereum, Base, Arbitrum, Optimism, Polygon.

1

Get a quote via API

  • Request premium options for cover on a specific product (protocol, asset or ecosystem) given an amount and duration using the OpenCover API.

  • The API response will include cryptographically signed quotes in all supported currencies (e.g. USDC, cbBTC, ETH). These signed quotes are required for the onchain submission step.

2

Submit selected quote onchain

Approve token transfer (if applicable)

  • If the premium is to be paid using an ERC20 token (like USDC or cbBTC), the user must first execute an approve transaction. This grants the OpenCover Quote contract permission to collect the premium amount from their wallet.

Submit the quote:

  • The user submits the signed quote to the OpenCover Quote contract. This transaction executes the purchase and transfers the approved ERC20 premium (if applicable).

  • Submitted quotes are fulfilled by OpenCover within 24 hours. For more details, please see our Quote lifecycle page.

3

Track coverage status

Show users their cover purchase history and active coverage in real-time via OpenCover's easy-to-use API.

4

Enable cover notifications via API (optional)

Offer users the ability to receive email notifications when their cover becomes active or is about to expire.

The next pages will guide you through each step with code examples.

Last updated