Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article examines ERC-1523, which proposes a standard interface and metadata structure for representing insurance policies as ERC-721 NFTs.

This explanation translates, summarizes, and expands on the following specification.

For other EIPs, see https://cardene.dev/proposals.

Overview

ERC-1523 proposes a standard API for handling insurance policies through smart contracts. Insurance policies are financial assets with distinct characteristics, including the policyholder, insured risk, premium, contract period, insurer, and underwriter.

Although they differ from conventional financial assets, policies may also be assets that can be traded or transferred, subject to applicable contractual and legal restrictions. ERC-721 is suited to managing such non-fungible assets. ERC-1523 builds on it to define a minimal common metadata structure for insurance policies.

Motivation

A common policy specification is essential for decentralized insurance protocols. Standardization allows independent participants, such as insurance syndicates, brokers, and insurers, to implement use cases including packaging, securitization, and exchange trading of policies in a flexible and consistent manner.

This improves interoperability between insurance contracts and supports decentralized applications in the insurance sector.

Specification

ERC-1523 represents insurance policies as blockchain tokens conforming to ERC-721. Implementations must conform to ERC-721 and its ERC721Metadata and ERC721Enumerable extensions. This enables policies to be identified, transferred, and referenced as unique tokens.

An optional policy metadata extension provides efficient access to additional information. The JSON resource identified by tokenURI is intended to include insurance-specific attributes.

The policy metadata uses the following JSON structure. The original schema descriptions are retained verbatim; their English meanings are explained below.

json
{
  "title": "Asset Metadata",
  "type": "object",
  "properties": {
    "name": { "type": "string", "description": "NFTが表現する資産の名称" },
    "description": { "type": "string", "description": "NFTが表現する資産の説明" },
    "carrier": { "type": "string", "description": "主たるリスクを引き受ける保険会社" },
    "risk": { "type": "string", "description": "保険が対象とするリスク" },
    "status": { "type": "string", "description": "申請中、引き受け済み、失効などの状態" },
    "parameters": { "type": "string", "description": "リスクを特徴づける追加パラメータ" },
    "terms": { "type": "string", "description": "契約条件や適用される規約" },
    "premium": { "type": "string", "description": "保険料。通貨単位を含んでもよい" },
    "sum_insured": { "type": "string", "description": "補償額。通貨単位を含んでもよい" }
  }
}

The name and description identify and describe the asset. Carrier identifies the insurer assuming the primary risk; risk describes the covered risk; status describes the policy state, such as applied for, underwritten, or expired. Parameters provide additional risk characteristics; terms describe contractual conditions; premium is the insurance premium; sum_insured is the coverage amount. Premium and coverage values may include currency units.

ERC1523

The standard interface defines minimum requirements for contracts representing insurance policies as ERC-721 NFTs. Conformance to ERC721, ERC721Metadata, and ERC721Enumerable enables third-party applications to handle policy tokens interoperably.

javascript
/// @title ERC-1523 Insurance Policy Standard
///  Note: the ERC-165 identifier for this interface is 0x5a04be32
interface ERC1523 /* is ERC721, ERC721Metadata, ERC721Enumerable */ {

}

ERC1523PolicyMetadata

An optional extension interface for retrieving policy metadata.

javascript
/// @title ERC-1523 Insurance Policy Standard, optional policy metadata extension
/// @dev See ...
///  Note: the ERC-165 identifier for this interface is 0x5a04be32
interface ERC1523PolicyMetadata /* is ERC1523 */ {

    /// @notice Metadata string for a given property.
    /// Properties are identified via hash of their property path.
    /// e.g. the property "name" in the ERC721 Metadata JSON Schema has the path /properties/name
    /// and the property path hash is the keccak256() of this property path. 
    /// this allows for efficient addressing of arbitrary properties, as the set of properties is potentially unlimited.
    /// @dev Throws if `_propertyPathHash` is not a valid property path hash. 
    function policyMetadata(uint256 _tokenId, bytes32 _propertyPathHash) external view returns (string _property);

}

policyMetadata

Retrieves a specific property of an insurance policy identified by token ID and a hashed property path. This provides flexible and extensible metadata management.

Parameters

  • _tokenId: the NFT ID of the policy whose metadata is being queried.
  • _propertyPathHash: the keccak256 hash of the requested property path, for example /properties/name.

Return Value

  • _property: the string associated with the property, such as "Expired" or "0.1 ETH".

Additional Considerations

Significance of Required Parameters

The proposal identifies three minimum policy attributes.

  • carrier: the entity responsible for paying insurance claims, such as an insurer or underwriter.
  • risk: the specific insured risk. Multiple policies may cover the same risk, such as a particular flight delay.
  • status: the current contractual status, such as applied for, underwritten, or expired. This represents the policy lifecycle.

These attributes identify fundamental policy characteristics. Individual token identity is provided by the ERC-721 contract and token ID.

Extensibility of Optional Parameters

Real-world policies usually require more detail, including premiums, contract periods, coverage amounts, and contractual terms. These fields are optional, with the standard proposing naming conventions. Developers can extend their data structures for particular use cases.

On-chain and Off-chain Metadata Management

For many applications, retrieving metadata from a JSON resource on IPFS or an HTTPS server through tokenURI is sufficient.

More advanced use cases, including on-chain queries and immediate verification, may require direct access to metadata. The policyMetadata function supports this use case, but its implementation is optional.

Citation

Christoph Mussenbrock (@christoph2806), "ERC-1523: Standard for Insurance Policies as ERC-721 Non Fungible Tokens [DRAFT]," Ethereum Improvement Proposals, no. 1523, October 2018. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-1523.

Conclusion

ERC-1523 proposes standard interfaces and metadata for representing insurance policies as ERC-721 NFTs.

Further reading and author links:

https://chaldene.net/