FEIP27V1_NoticeFee(en-US)



  • FEIP27: NoticeFee
    Version: 1
    Language: en-US
    Author: C_armX
    Status: draft
    Created date: 2021-04-26
    Last modified date:2021-04-26
    File hash: unknown
    Txid: Unpublished
    

    FEIP27V1_NoticeFee(en-US)

    Contents

    Introduction

    General rules of FEIP type protocols

    Rules specific to this protocol

    Declare

    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
    Tags: FEIP, homepage
    PreVersion hash:
    
    

    General rules of FEIP type protocols

    1. Write important data in OP_RETURN for public witness under FEIP type protocols.

    2. The max size of OP_RETURN : 4096 bytes

    3. Format : Json

    4. Encoding : utf-8

    Rules specific to this protocol

    1. Notice fee refers to the minimum payment amount that an indentity is willing to receive the on-chain message notifications.

    2. An address can declare its notice fee in op_return in accordance with this protocol.

    3. When there are multiple inputs, the notice fee is for the address of the first input.

    4. 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 hash hex 32 Sha256 value of this protocol file N
    6 noticeFee float64 8 Amout of fch<br>Up to 8 decimal places Y

    Example

    {
        "type": "FEIP",
        "sn": 27,
        "ver": 1,
        "name": "NoticeFee",
        "hash": "",
        "noticeFee":0.0001
    }
    

Log in to reply