License
Type-safe SPDX license identifiers for smart contract metadata.Overview
Brandedstring type representing SPDX license identifiers. Used in Solidity source files and smart contract metadata to identify licensing terms. Includes validation for OSI-approved licenses.
Quick Start
- Basic Usage
- Common Licenses
- Solidity Usage
Common Licenses
API Reference
Constructors
Methods
Constants
Solidity License Identifier
SPDX license identifiers are required in Solidity files since version 0.6.8:- Identify licensing terms programmatically
- Filter contracts by license type
- Ensure compliance with open source requirements
Use Cases
Contract Metadata Analysis
License Filtering
Related
- SPDX License List - Full list of SPDX identifiers
- OSI Approved Licenses - Open Source Initiative
References
- SPDX Specification - SPDX license format
- Solidity License Identifiers - Solidity documentation

