{"eip":5570,"title":"Digital Receipt Non-Fungible Tokens","description":"Non-Fungible Tokens as digital receipts for physical purchases, where the metadata represents a JSON receipt","authors":["Sean Darcy (@darcys22)"],"status":"Final","type":"Standards Track","category":"ERC","created":"2022-09-01","requires":[721],"discussionsTo":"https://ethereum-magicians.org/t/idea-standard-digital-receipts-using-erc-721/9908","repo":"ERCs","label":"ERC-5570","officialUrl":"https://eips.ethereum.org/EIPS/eip-5570","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5570.md","url":"https://eips.huatuo.xyz/eip-5570/","tldr":{"en":"A JSON metadata schema that turns an ERC-721 token into a digital purchase receipt (vendor, date, line items, tax, optional vendor signature), so on-chain purchases come with machine-readable records.","ja":"ERC-721 トークンをデジタルの購入レシート（販売者、日付、明細、税、任意の販売者署名）に変える JSON メタデータスキーマ。オンチェーンの購入に機械可読な記録が付くようになる。","ko":"ERC-721 토큰을 디지털 구매 영수증(판매자, 날짜, 품목, 세금, 선택적 판매자 서명)으로 바꾸는 JSON 메타데이터 스키마. 온체인 구매에 기계가 읽을 수 있는 기록이 따라온다.","zh":"一种 JSON 元数据模式，把 ERC-721 代币变成数字购买收据（商家、日期、明细项、税费、可选的商家签名），使链上购买附带机器可读的记录。"},"tags":["nft","erc-721","receipts","metadata","commerce"],"explainers":{"en":{"lang":"en","tldr":"A JSON metadata schema that turns an ERC-721 token into a digital purchase receipt (vendor, date, line items, tax, optional vendor signature), so on-chain purchases come with machine-readable records.","tags":["nft","erc-721","receipts","metadata","commerce"],"related":[721,4906],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5570/","markdown":"## What problem does it solve?\n\nPoint-of-sale systems are digital, but receipts usually reach customers as paper or email. Anyone who needs them for accounting or tax ends up typing them in again or scanning them: digital, then analogue, then digital again.\n\nWhen a purchase is paid on-chain, ERC-5570 proposes issuing the receipt as an NFT in the **same transaction flow**. A wallet can then link straight from the payment to a structured, machine-readable receipt. The receipt can also carry details such as serial numbers, and it can be signed by the vendor.\n\n## How it works\n\nIt is an [ERC-721](/eip-721/) token with no new functions. The standard is the **shape of the metadata JSON** returned by `tokenURI`.\n\nSuggested flow:\n\n1. At checkout, the customer chooses to mint a receipt NFT.\n2. The contract mints the token to the customer.\n3. When the order is fulfilled, the vendor uploads the receipt JSON as that token's metadata.\n\n**Root schema.** It keeps the usual ERC-721 metadata fields `name`, `description` and `image` (all required) and adds:\n\n- `receipt` (required), containing:\n  - `id`: the vendor's receipt ID\n  - `date`\n  - `vendor`: `name` and `website` required, plus optional `logo`, `address` and `contact`\n  - `items`: at least one line item\n  - `comments` (optional)\n- `signature` (optional): the vendor's digital signature over the receipt data\n- `extra` (optional): free-form notes\n\n**Line item schema.** Required fields are `id`, `title`, `date`, `amount` (unit price excluding tax), `tax` and `quantity`. `tax` is an array of `{name, rate, amount}` entries, such as GST or PST. Optional fields are `description`, `link`, `contract` and `serial_number`.\n\nBecause the extra data sits under one new `receipt` key, existing NFT viewers still show the name and image.\n\n## Sample code\n\nExample metadata for one receipt (all values illustrative):\n\n```json\n{\n  \"name\": \"Receipt #A-1029\",\n  \"description\": \"Digital receipt for order A-1029\",\n  \"image\": \"ipfs://\u003ccid\u003e/receipt-A-1029.png\",\n  \"receipt\": {\n    \"id\": \"A-1029\",\n    \"date\": \"2026-10-19\",\n    \"vendor\": { \"name\": \"Example Store\", \"website\": \"https://store.example\" },\n    \"items\": [\n      {\n        \"id\": \"SKU-42\",\n        \"title\": \"Headphones\",\n        \"date\": \"2026-10-19\",\n        \"amount\": 100.0,\n        \"tax\": [{ \"name\": \"GST\", \"rate\": 10, \"amount\": 10.0 }],\n        \"quantity\": 1,\n        \"serial_number\": \"HP-0001\"\n      }\n    ]\n  },\n  \"signature\": \"0x…\"\n}\n```\n\nIf the receipt is filled in after minting, emit [ERC-4906](/eip-4906/) `MetadataUpdate` so viewers refresh it.\n\n## Things to know\n\n- **Status: Final.**\n- **Privacy.** Receipts can contain personal data and purchase history. NFT metadata is usually public, and the link from an address to its purchases is permanent. The spec says personal data should be encrypted but leaves the method out of scope. Never publish customer details in plaintext.\n- The signature format is not defined, so wallets cannot verify it in a standard way unless vendor and verifier agree on a scheme, for example EIP-712.\n- The spec does not settle currency, rounding, or whether receipts may be transferred. Decide these per implementation.\n- Whether an NFT receipt meets tax or bookkeeping requirements depends on the jurisdiction. Check with a professional before relying on it.\n"},"ja":{"lang":"ja","tldr":"ERC-721 トークンをデジタルの購入レシート（販売者、日付、明細、税、任意の販売者署名）に変える JSON メタデータスキーマ。オンチェーンの購入に機械可読な記録が付くようになる。","tags":["nft","erc-721","receipts","metadata","commerce"],"related":[721,4906],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5570/","markdown":"## 何を解決するのか\n\nPOS システムはデジタル化されていますが、レシートは多くの場合、紙やメールで顧客に届きます。会計や税務で必要な人は、結局それを再入力したりスキャンしたりすることになります。デジタルからアナログへ、そしてまたデジタルへと戻るわけです。\n\n購入がオンチェーンで支払われる場合、ERC-5570 は**同じトランザクションの流れ**の中でレシートを NFT として発行することを提案します。ウォレットは、支払いから構造化された機械可読なレシートへ直接リンクできます。レシートにはシリアル番号などの詳細を含めることもでき、販売者が署名することもできます。\n\n## 仕組み\n\n新しい関数のない [ERC-721](/eip-721/) トークンです。標準となるのは、`tokenURI` が返す**メタデータ JSON の形**です。\n\n想定されるフロー:\n\n1. 購入時に、顧客がレシート NFT のミントを選びます。\n2. コントラクトが顧客にトークンをミントします。\n3. 注文が履行されたら、販売者がそのトークンのメタデータとしてレシートの JSON をアップロードします。\n\n**ルートスキーマ。** 通常の ERC-721 メタデータのフィールド `name`、`description`、`image`（すべて必須）を維持し、次を追加します。\n\n- `receipt`（必須）。内容は次のとおり:\n  - `id`: 販売者のレシート ID\n  - `date`\n  - `vendor`: `name` と `website` が必須で、任意の `logo`、`address`、`contact`\n  - `items`: 少なくとも 1 つの明細\n  - `comments`（任意）\n- `signature`（任意）: レシートデータに対する販売者のデジタル署名\n- `extra`（任意）: 自由形式のメモ\n\n**明細スキーマ。** 必須フィールドは `id`、`title`、`date`、`amount`（税抜きの単価）、`tax`、`quantity` です。`tax` は GST や PST などの `{name, rate, amount}` エントリの配列です。任意のフィールドは `description`、`link`、`contract`、`serial_number` です。\n\n追加データは新しい `receipt` キーの下に 1 つにまとまっているため、既存の NFT ビューアーでも名前と画像は表示されます。\n\n## サンプルコード\n\n1 枚のレシートのメタデータ例（値はすべて説明用）:\n\n```json\n{\n  \"name\": \"Receipt #A-1029\",\n  \"description\": \"Digital receipt for order A-1029\",\n  \"image\": \"ipfs://\u003ccid\u003e/receipt-A-1029.png\",\n  \"receipt\": {\n    \"id\": \"A-1029\",\n    \"date\": \"2026-10-19\",\n    \"vendor\": { \"name\": \"Example Store\", \"website\": \"https://store.example\" },\n    \"items\": [\n      {\n        \"id\": \"SKU-42\",\n        \"title\": \"Headphones\",\n        \"date\": \"2026-10-19\",\n        \"amount\": 100.0,\n        \"tax\": [{ \"name\": \"GST\", \"rate\": 10, \"amount\": 10.0 }],\n        \"quantity\": 1,\n        \"serial_number\": \"HP-0001\"\n      }\n    ]\n  },\n  \"signature\": \"0x…\"\n}\n```\n\nミント後にレシートの内容を埋める場合は、ビューアーが更新できるよう [ERC-4906](/eip-4906/) の `MetadataUpdate` を emit してください。\n\n## 知っておくべきこと\n\n- **ステータス: Final。**\n- **プライバシー。** レシートには個人情報や購入履歴が含まれることがあります。NFT のメタデータは通常公開されており、アドレスとその購入との紐づけは永続します。仕様は個人情報を暗号化すべきとしていますが、方法は対象外としています。顧客の詳細を平文で公開しないでください。\n- 署名の形式は定義されていないため、販売者と検証者が方式（たとえば EIP-712）に合意しない限り、ウォレットは標準的な方法で検証できません。\n- 仕様は、通貨、丸め、レシートを譲渡してよいかどうかを定めていません。実装ごとに決めてください。\n- NFT レシートが税務や記帳の要件を満たすかどうかは、法域によって異なります。頼る前に専門家に確認してください。\n"},"ko":{"lang":"ko","tldr":"ERC-721 토큰을 디지털 구매 영수증(판매자, 날짜, 품목, 세금, 선택적 판매자 서명)으로 바꾸는 JSON 메타데이터 스키마. 온체인 구매에 기계가 읽을 수 있는 기록이 따라온다.","tags":["nft","erc-721","receipts","metadata","commerce"],"related":[721,4906],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5570/","markdown":"## 어떤 문제를 해결하나요?\n\nPOS 시스템은 디지털이지만 영수증은 보통 종이나 이메일로 고객에게 전달됩니다. 회계나 세무에 필요한 사람은 결국 다시 입력하거나 스캔하게 됩니다. 디지털에서 아날로그로, 다시 디지털로 돌아가는 셈입니다.\n\n구매 대금이 온체인으로 지불될 때, ERC-5570은 **같은 트랜잭션 흐름** 안에서 영수증을 NFT로 발급하자고 제안합니다. 그러면 지갑이 결제에서 구조화된 기계 판독 가능한 영수증으로 바로 연결할 수 있습니다. 영수증에는 일련번호 같은 세부 정보를 담을 수 있고 판매자가 서명할 수도 있습니다.\n\n## 어떻게 동작하나요?\n\n새 함수가 없는 [ERC-721](/eip-721/) 토큰입니다. 표준은 `tokenURI`가 반환하는 **메타데이터 JSON의 형태**입니다.\n\n제안된 흐름:\n\n1. 결제 시 고객이 영수증 NFT 민팅을 선택합니다.\n2. 컨트랙트가 고객에게 토큰을 민팅합니다.\n3. 주문이 이행되면 판매자가 그 토큰의 메타데이터로 영수증 JSON을 업로드합니다.\n\n**루트 스키마.** 일반적인 ERC-721 메타데이터 필드 `name`, `description`, `image`(모두 필수)를 유지하고 다음을 추가합니다.\n\n- `receipt`(필수). 내용은 다음과 같습니다.\n  - `id`: 판매자의 영수증 ID\n  - `date`\n  - `vendor`: `name`과 `website`는 필수이며, 선택적으로 `logo`, `address`, `contact`\n  - `items`: 최소 하나의 품목\n  - `comments`(선택)\n- `signature`(선택): 영수증 데이터에 대한 판매자의 디지털 서명\n- `extra`(선택): 자유 형식 메모\n\n**품목 스키마.** 필수 필드는 `id`, `title`, `date`, `amount`(세금 제외 단가), `tax`, `quantity`입니다. `tax`는 GST나 PST 같은 `{name, rate, amount}` 항목의 배열입니다. 선택 필드는 `description`, `link`, `contract`, `serial_number`입니다.\n\n추가 데이터가 새 `receipt` 키 하나 아래에 있으므로 기존 NFT 뷰어도 이름과 이미지는 계속 보여 줍니다.\n\n## 샘플 코드\n\n영수증 하나의 메타데이터 예시(모든 값은 예시용):\n\n```json\n{\n  \"name\": \"Receipt #A-1029\",\n  \"description\": \"Digital receipt for order A-1029\",\n  \"image\": \"ipfs://\u003ccid\u003e/receipt-A-1029.png\",\n  \"receipt\": {\n    \"id\": \"A-1029\",\n    \"date\": \"2026-10-19\",\n    \"vendor\": { \"name\": \"Example Store\", \"website\": \"https://store.example\" },\n    \"items\": [\n      {\n        \"id\": \"SKU-42\",\n        \"title\": \"Headphones\",\n        \"date\": \"2026-10-19\",\n        \"amount\": 100.0,\n        \"tax\": [{ \"name\": \"GST\", \"rate\": 10, \"amount\": 10.0 }],\n        \"quantity\": 1,\n        \"serial_number\": \"HP-0001\"\n      }\n    ]\n  },\n  \"signature\": \"0x…\"\n}\n```\n\n민팅 이후에 영수증을 채운다면 뷰어가 새로 고치도록 [ERC-4906](/eip-4906/) `MetadataUpdate`를 emit하세요.\n\n## 알아둘 점\n\n- **상태: Final.**\n- **프라이버시.** 영수증에는 개인 정보와 구매 내역이 담길 수 있습니다. NFT 메타데이터는 보통 공개이며, 주소와 그 구매 내역의 연결은 영구적입니다. 사양은 개인 정보를 암호화해야 한다고 하지만 방법은 범위 밖으로 둡니다. 고객 정보를 평문으로 게시하지 마세요.\n- 서명 형식은 정의되어 있지 않으므로, 판매자와 검증자가 방식(예: EIP-712)에 합의하지 않는 한 지갑이 표준 방식으로 검증할 수 없습니다.\n- 사양은 통화, 반올림, 영수증의 양도 가능 여부를 정하지 않습니다. 구현마다 결정하세요.\n- NFT 영수증이 세무나 장부 요건을 충족하는지는 관할권에 따라 다릅니다. 의존하기 전에 전문가와 확인하세요.\n"},"zh":{"lang":"zh","tldr":"一种 JSON 元数据模式，把 ERC-721 代币变成数字购买收据（商家、日期、明细项、税费、可选的商家签名），使链上购买附带机器可读的记录。","tags":["nft","erc-721","receipts","metadata","commerce"],"related":[721,4906],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5570/","markdown":"## 它解决什么问题？\n\n销售终端系统已经数字化，但收据通常以纸质或邮件形式交给顾客。需要用于会计或税务的人最终还是要重新录入或扫描：先数字化，再变成模拟，然后又回到数字。\n\n当购买在链上支付时，ERC-5570 建议在**同一个交易流程**中把收据作为 NFT 发出。钱包随后可以从支付直接链接到结构化、机器可读的收据。收据还可以携带序列号等详细信息，并且可以由商家签名。\n\n## 它如何运作\n\n它是一个没有新增函数的 [ERC-721](/eip-721/) 代币。标准规定的是 `tokenURI` 返回的**元数据 JSON 的结构**。\n\n建议的流程：\n\n1. 结账时，顾客选择铸造收据 NFT。\n2. 合约把代币铸造给顾客。\n3. 订单履行后，商家把收据 JSON 作为该代币的元数据上传。\n\n**根模式。** 保留常规 ERC-721 元数据字段 `name`、`description` 和 `image`（均为必需），并新增：\n\n- `receipt`（必需），包含：\n  - `id`：商家的收据 ID\n  - `date`\n  - `vendor`：`name` 和 `website` 必需，另有可选的 `logo`、`address` 和 `contact`\n  - `items`：至少一个明细项\n  - `comments`（可选）\n- `signature`（可选）：商家对收据数据的数字签名\n- `extra`（可选）：自由格式的备注\n\n**明细项模式。** 必需字段为 `id`、`title`、`date`、`amount`（不含税单价）、`tax` 和 `quantity`。`tax` 是由 `{name, rate, amount}` 条目组成的数组，例如 GST 或 PST。可选字段为 `description`、`link`、`contract` 和 `serial_number`。\n\n由于额外数据都放在新增的一个 `receipt` 键之下，现有的 NFT 查看器仍能显示名称和图片。\n\n## 示例代码\n\n一张收据的示例元数据（所有值仅作说明）：\n\n```json\n{\n  \"name\": \"Receipt #A-1029\",\n  \"description\": \"Digital receipt for order A-1029\",\n  \"image\": \"ipfs://\u003ccid\u003e/receipt-A-1029.png\",\n  \"receipt\": {\n    \"id\": \"A-1029\",\n    \"date\": \"2026-10-19\",\n    \"vendor\": { \"name\": \"Example Store\", \"website\": \"https://store.example\" },\n    \"items\": [\n      {\n        \"id\": \"SKU-42\",\n        \"title\": \"Headphones\",\n        \"date\": \"2026-10-19\",\n        \"amount\": 100.0,\n        \"tax\": [{ \"name\": \"GST\", \"rate\": 10, \"amount\": 10.0 }],\n        \"quantity\": 1,\n        \"serial_number\": \"HP-0001\"\n      }\n    ]\n  },\n  \"signature\": \"0x…\"\n}\n```\n\n如果收据在铸造之后才填写，请触发 [ERC-4906](/eip-4906/) 的 `MetadataUpdate`，以便查看器刷新。\n\n## 需要注意\n\n- **状态：Final。**\n- **隐私。** 收据可能包含个人数据和购买历史。NFT 元数据通常是公开的，而地址与其购买记录之间的关联是永久的。规范说个人数据应当加密，但把方法排除在范围之外。切勿以明文发布顾客详细信息。\n- 签名格式没有定义，因此除非商家和验证者约定某种方案（例如 EIP-712），钱包无法以标准方式验证。\n- 规范没有规定币种、舍入，或收据是否可以转让。请根据每个实现自行决定。\n- NFT 收据是否满足税务或记账要求，取决于司法管辖区。依赖它之前请咨询专业人士。\n"}}}
