FEIP27V1_NoticeFee(en-US)
-
FEIP27: NoticeFee Version: 1 Language: en-US Author: C_armX Status: draft Created date: 2021-04-26 Last modified date:2022-04-24 PID: unknown TXID: Unpublished
FEIP27V1_NoticeFee(en-US)
Contents
General rules of FEIP type protocols
Rules specific to this protocol
Introduction
Protocol type: FEIP Serial number: 27 Protocol name: NoticeFee Version: 1 Description : A identity declares the minimum payment amount with which it is willing to receive the on-chain message notifications. Author: C_armX Language: en-US Previous version PID:
General consensus of FEIP type protocols
-
Write important data in OP_RETURN for public witness under FEIP type protocols.
-
The SIGHASH flag of all transaction inputs is ‘ALL’ (value 0x01).
-
The max size of OP_RETURN : 4096 bytes.
-
The format of the data in op_return: JSON.
-
Encoding : utf-8.
Consensus of this protocol
-
Notice fee refers to the minimum payment amount that an indentity is willing to receive the on-chain message notifications.
-
An address can declare its notice fee in op_return in accordance with this protocol.
-
When there are multiple inputs, the notice fee is for the address of the first input.
-
When a new notice fee is declared, the old one is automatically cancelled.
declare
The OP_RETURN of which contains the data as follows:
field number field name type length content required 1 type String 4 Fixed: "FEIP"<br>Case insensitive Y 2 sn int 2 Serial number<br>Fixed: 27 Y 3 ver int 1 Fixed: 1 Y 4 name String 8 Fixed: "NoticeFee"<br>Case insensitive N 5 pid hex 32 Sha256 value of this protocol file N 6 data.noticeFee float64 8 Amout of fch<br>Up to 8 decimal places Y Example
{ "type": "FEIP", "sn": 27, "ver": 1, "name": "NoticeFee", "pid": "", "data":{"noticeFee":0.0001} }
-