EIPs Explained

ERC-1523 · Stagnant · ERC · 2018-10-10

ERC-1523: Standard for Insurance Policies as ERC-721 Non Fungible Tokens

Represents insurance policies as ERC-721 NFTs with a standard set of metadata fields (carrier, risk, status and more), so policies can be traded and bundled across apps.

What problem does it solve?

An insurance policy is a unique asset: it is tied to a specific risk, a carrier, a premium, a period and a lifecycle status. In a decentralized insurance market, policies may need to be transferred, bundled, securitized or traded by brokers, syndicates and insurers that run different software.

ERC-721 already handles unique, transferable tokens. ERC-1523 adds an agreed vocabulary for describing a policy, so any tool can read the key facts about a policy NFT without custom integration.

How it works

A compliant policy contract:

  • must be an ERC-721 token, and
  • must implement the ERC721Metadata and ERC721Enumerable extensions.

Each token's tokenURI must point to a JSON document that follows the ERC-721 metadata schema (name, description) plus these policy fields:

Field Required Meaning
carrier yes Who carries the primary risk
risk yes The insured risk
status yes Lifecycle status, e.g. applied for, underwritten, expired
parameters no Further parameters describing the risk
terms no Applicable terms and conditions
premium no Premium as a string, may include currency
sum_insured no Sum insured as a string, may include currency

Values may be plain text or URIs, and those URIs may sit behind authentication when the details are private.

An optional on-chain extension exposes metadata directly:

function policyMetadata(uint256 tokenId, bytes32 propertyPathHash)
    external view returns (string memory);

Each property is addressed by the keccak256 hash of its JSON path, for example keccak256("/properties/carrier"). This allows an open-ended set of properties without new functions.

Sample code

Example tokenURI JSON for a flight-delay policy (illustrative values):

{
  "name": "Flight delay policy #1042",
  "description": "Pays out if the insured flight arrives more than 2 hours late.",
  "carrier": "Example Mutual",
  "risk": "Flight XY123, 2026-11-02",
  "status": "underwritten",
  "premium": "15.00 USD",
  "sum_insured": "200.00 USD",
  "terms": "ipfs://<cid-of-terms>"
}

Reading a property through the optional extension with ethers v6:

import { Contract, JsonRpcProvider, keccak256, toUtf8Bytes } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);
const policies = new Contract(policyAddress,
  ["function policyMetadata(uint256,bytes32) view returns (string)"], provider);

const path = keccak256(toUtf8Bytes("/properties/status"));
console.log(await policies.policyMetadata(1042n, path)); // "underwritten"

Things to know

  • Status: Stagnant. It was never finalized and has no reference implementation in the spec.
  • The standard defines naming only. It says nothing about how premiums are paid, how claims are decided or who may update status; those rules belong to the insurance protocol.
  • Since policies are ordinary ERC-721 tokens, anyone holding one can transfer it unless the contract restricts transfers. Decide whether claim payouts follow the current holder or the original insured.
  • Do not put personal data in public metadata. Use access-controlled URIs for sensitive details, as the spec allows.

#nft #insurance #metadata #erc721 #defi

Details

Authors
Christoph Mussenbrock (@christoph2806)
Status
Stagnant
Type
Standards Track / ERC
Created
2018-10-10
Requires

Machine-readable: Markdown · JSON