UI integration

How to retrieve various pages using the UI parameters.

Cross Chain

Specify Network Type

GET https://app.insurace.io/Dashboard?chain=ETH

Specify the network that you wish to connect to access and to use our services. Networks currently supported: ETH, BSC, Polygon and Avalanche.

Query Parameters

NameTypeDescription

chain

string

Value: ETH, BSC, Polygon or Avalanche

Buy Cover

Specify the payment currency

GET https://app.insurace.io/coverage/cart?currency=ETH

Specify the currency to set the payment currency for the cover.

Query Parameters

NameTypeDescription

currency

string

The currency you use to make the payment. Value (Ethereum): ETH, USDC, USDT and DAI Value (BSC): BNB, USDC, USDT and BUSD Value (Polygon): MATIC, USDC, USDT and DAI

Value (Avalanche): AVAX, USDC, USDT and DAI

Specify the product details

GET https://app.insurace.io/coverage/cart?id=1&amount=1.5&day=30

Each product has 3 parameters: id, amount and day. For each Cover, it can contain 1 or more products.

Query Parameters

NameTypeDescription

id

integer

The product id can be retrieved from: https://docs.insurace.io/landing-page/documentation/protocol-design/product-design/product-list

amount

number

The Cover Amount you wish to be covered.

day

integer

The Cover Period (days) you wish to be covered. Value between 15 to 365

Example

URL: https://app.insurace.io/Insurance/Cart?chain=ETH&currency=ETH&id=1&id=2&amount=1.5&amount=3&day=30&day=30

Ethererum

Refer & Earn

Specify referral code

GET https://app.insurace.io/coverage/cart?referrer=some-referral-code

Specify the referrer code. - When buying cover uses the referral code, both referrer and referee will get $INSURE rewards. * Note: For details, please check our Refer & Earn Program.

Path Parameters

NameTypeDescription

referrer

string

The referral code It can be generated on the referral page in InsurAce.io dApp.

Example

URL: https://app.insurace.io/coverage/cart?chain=ETH&currency=ETH&id=1&amount=1.5&day=30&id=2&amount=2&day=40&id=3&amount=3&day=60&referrer=1234567890

Ethereum

Last updated