Bright Union
Search…
Integration
Bright Union has the goal to help developers connect to the entire DeFi insurance landscape in the easiest way possible. Instead of building and maintaining integrations with multiple risk platforms you only have to worry about a single integration. On top of that, we add the possibility to always find the best offer across all risk platforms.
We allow two methods of integrations for various use-cases:

Methods of integration

Contract integration: At Bright Union we believe in decentralization and integrating on contract level. We strive to make all features available through a direct integration through a contract ABI so your organization can directly integrate on the contract level. Currently, we are live across multiple networks (currently Ethereum, Polygon and BSC).
Most processes of the risk platforms are on-chain. As the industry is maturing there are some notable exceptions: Nexus Mutual and InsurAce currently do their pricing off-chain, hence we have an API available for this process step. Both parties have indicated to move towards a full on-chain experience in the near future.
@brightunion/sdk javascript integration: We also make your life easy in case you are looking to integrate decentralized insurance into your application. The Bright.js library will make it possible to easily interact with our contracts on any chain.
Take a look and feel of the potential the SDK brings when it returns all covers owned across all chains and distributors supported at: https://api.brighunion.io

Integration use-cases at the protocol level

View cover portfolio

Enable your application to show which covers an address has bought. The ABI will provide the covered protocol, amount of assets covered, and expiry date.
1
// Get covers from address by distributor
2
function _getCoversCount(
3
'nexus', // distributor name
4
0x78766c9Dc71f1278Cd04CeDA6DA1Ebab4838353d, // owner ethereum address
5
true // boolean, active covers
6
)
7
Copied!
Compare covers:
Enable your application to show which protocols are available to buy. The ABI will provide protocol, insurance platform, price, available capacity.
Module
Method
Return
bright.js
copareCovers
Coming soon...
Buy covers:
Enable your application to sell insurance covers. Once users connect their wallets they can buy any available covers from any of our partners.
1
// Buy Cover Solidity example
2
3
function buyCover(
4
'bridge', // distributor name
5
0x71D6a3a982551dC10615ba9fFFbD3c050, // cover contract address
6
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, // currency used
7
100000000, // Sum covered
8
180, // cover period in days
9
1, // product type
10
180000000000, // price with fee
11
data // web3.eth.encode(data))
12
)
Copied!
We will allow our partners to share in our success. Please contact our commercial team for a fee-sharing agreement for each insurance policy sold through the integration.

Toolbox

@brighunion/SDK JS code-example: @brightunion/src/server.js
Swagger API documentation: https://api.brightunion.io
Important contracts: @brightunion/contracts
Last modified 2mo ago