{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "nostr/nostr-zap-button",
  "version": "0.1.0",
  "title": "Nostr Zap Button",
  "category": "nostr",
  "icon": "money-alt",
  "description": "Send Bitcoin tips (zaps) to Nostr users",
  "supports": {
    "html": false
  },
  "attributes": {
    "npub": {
      "type": "string",
      "default": ""
    },
    "pubkey": {
      "type": "string",
      "default": ""
    },
    "nip05": {
      "type": "string",
      "default": ""
    },
    "theme": {
      "type": "string",
      "enum": ["", "light", "dark"],
      "default": ""
    },
    "relays": {
      "type": "string",
      "default": ""
    },
    "text": {
      "type": "string",
      "default": "Zap"
    },
    "amount": {
      "type": "number",
      "minimum": 0,
      "maximum": 210000
    },
    "default-amount": {
      "type": "number",
      "minimum": 1,
      "maximum": 210000
    },
    "url": {
      "type": "string",
      "default": ""
    }
  }
}

