{"id":"fbacc1c2bc5f35322f5dd6180f7d9af5b42b112116a0668165e442bb43ab9d31","pubkey":"d1678e7ef965374bbea308a1215609a78376dc158277a7d657680f9d5efd5c38","created_at":1786824503,"kind":30817,"tags":[["d","nut-06"],["title","NUT-06: Mint information"],["summary","The info endpoint, where a mint declares its name, its keys, its contacts, and which NUTs it supports."],["s","mandatory"],["t","cashu"],["t","ecash"],["t","nut"],["alt","A specification: NUT-06: Mint information"],["client","openspecs-import"],["published_at","1674849737"],["proxy","https://github.com/cashubtc/nuts/blob/a845dfc998abae501fc3419592d53dc995d34b12/06.md","web"],["x","74bb2a7616d96c91d447dbc5f5ca47ab3b23c9b890c08e24b0504e053bcfeb83"]],"content":"# NUT-06: Mint information\n\n`mandatory`\n\n---\n\nThis endpoint returns information about the mint that a wallet can show to the user and use to make decisions on how to interact with the mint.\n\n## Example\n\n**Request** of `Alice`:\n\n```http\nGET https://mint.host:3338/v1/info\n```\n\nWith the mint's response being of the form `GetInfoResponse`:\n\n```json\n{\n  \"name\": \"Bob's Cashu mint\",\n  \"pubkey\": \"0283bf290884eed3a7ca2663fc0260de2e2064d6b355ea13f98dec004b7a7ead99\",\n  \"version\": \"Nutshell/0.15.0\",\n  \"description\": \"The short mint description\",\n  \"description_long\": \"A description that can be a long piece of text.\",\n  \"contact\": [\n    {\n      \"method\": \"email\",\n      \"info\": \"contact@me.com\"\n    },\n    {\n      \"method\": \"twitter\",\n      \"info\": \"@me\"\n    },\n    {\n      \"method\": \"nostr\",\n      \"info\": \"npub...\"\n    }\n  ],\n  \"motd\": \"Message to display to users.\",\n  \"icon_url\": \"https://mint.host/icon.jpg\",\n  \"urls\": [\n    \"https://mint.host\",\n    \"http://mint8gv0sq5ul602uxt2fe0t80e3c2bi9fy0cxedp69v1vat6ruj81wv.onion\"\n  ],\n  \"time\": 1725304480,\n  \"tos_url\": \"https://mint.host/tos\",\n  \"max_array_length\": 1000,\n  \"nuts\": {\n    \"4\": {\n      \"methods\": [\n        {\n          \"method\": \"bolt11\",\n          \"unit\": \"sat\",\n          \"min_amount\": 0,\n          \"max_amount\": 10000\n        }\n      ],\n      \"disabled\": false\n    },\n    \"5\": {\n      \"methods\": [\n        {\n          \"method\": \"bolt11\",\n          \"unit\": \"sat\",\n          \"min_amount\": 100,\n          \"max_amount\": 10000\n        }\n      ],\n      \"disabled\": false\n    },\n    \"7\": {\n      \"supported\": true\n    },\n    \"8\": {\n      \"supported\": true\n    },\n    \"9\": {\n      \"supported\": true\n    },\n    \"10\": {\n      \"supported\": true\n    },\n    \"12\": {\n      \"supported\": true\n    }\n  }\n}\n```\n\n- (optional) `name` is the name of the mint and should be recognizable.\n- (optional) `pubkey` is the hex pubkey of the mint.\n- (optional) `version` is the implementation name and the version of the software running on this mint separated with a slash \"/\".\n- (optional) `description` is a short description of the mint that can be shown in the wallet next to the mint's name.\n- (optional) `description_long` is a long description that can be shown in an additional field.\n- (optional) `contact` is an array of contact objects to reach the mint operator. A contact object consists of two fields. The `method` field denotes the contact method (like \"email\"), the `info` field denotes the identifier (like \"contact@me.com\").\n- (optional) `motd` is the message of the day that the wallet must display to the user. It should only be used to display important announcements to users, such as scheduled maintenances.\n- (optional) `icon_url` is the URL pointing to an image to be used as an icon for the mint. Recommended to be squared in shape.\n- (optional) `urls` is the list of endpoint URLs where the mint is reachable from.\n- (optional) `time` is the current time set on the server. The value is passed as a Unix timestamp integer.\n- (optional) `tos_url` is the URL pointing to the Terms of Service of the mint.\n- (optional) `max_array_length` is the maximum length the mint accepts for any array in a request, such as `inputs`, `outputs` or `Ys`. Wallets **SHOULD** split larger requests into batches no bigger than this.\n- (optional) `nuts` indicates each NUT specification that the mint supports and its settings. The settings are defined in each NUT separately.\n\nWith curl:\n\n```bash\ncurl -X GET https://mint.host:3338/v1/info\n```\n\n[00]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crqqpd6d9\n[01]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crznyve7g\n[02]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595cry0t0uzl\n[03]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crxuwwl3j\n[04]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crg74fknc\n[05]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595cr2dsg4q4\n[06]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crv3ltsuz\n[07]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crwz62n00\n[08]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crs4q9zck\n[09]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crjx9yptm\n[10]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595cnqx5tye7\n[11]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595cnz43282n\n[12]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595cnyf7fzky\n","sig":"8def0d57261c39a51b5c4b75a31f017ac82a22224ff38765f1acf1e7a90eca8a78d113985e8f185350af4bde4c3206d2b234e9f824c3dc75a592b70147db8aef"}