支付名称(Payname)格式

使用由 Realm 支持的人类可读的支付名称发送和接收加密货币

格式约定

+[inbox]@[realm_name]

Where:
+ is always required at the front to denote it is a Realm user recipient

inbox: The name of the inbox associated with the Realm payment name

@ is required to indicate the inbox is located at the Realm

realm_name: The fully qualified Realm or Subrealm name

样例

+hello@samplerealm
+main@samplerealm
+support@samplerealm

注意:收件箱可以是代表那里接受的加密货币或支付方式的数据,也可以配置为委托给另一个 NFT 来处理数据更新。

链上数据对象格式

要了解如何存储 Realm 的数据,请考虑以下 Realm/NFT 格式结构

{
  "paynames": {
    "delegate": "atom:btc:id:<atomical_id>/paynames",
    "hello": {
      "delegate": "atom:btc:id:<atomical_id>/paynames/hello"
    },
    "main": {
      "types": {
         "btc": {
           "value": "bitcoin btc address"
         },
         "ltc": {
           "value": "litecoin ltc address",
           "notes": "optional notes",
           "instructions": "optional instructions"
         }
      }
    }
  }
}

字段

paynames: 顶级字段,用于存储 Realm 的 payname 设置和配置数据,其中可以包含用于标识收件箱的其他键。只有字符 /a-z0-9./ 应被视为有效。最多 64 个字符名称。

types: 各种加密货币和接受的支付类型的代码

delegate: 可以将 Realm 可用的整个支付名称委托给 NFT,也可以委托单个收件箱。当委托设置在顶部直接位于工资名字段下方时,它将优先,其余数据将被忽略(因为整个工资名设置已委托到其他地方)

Last updated