Serialize() {
        const buf = new util_1.default.Writer();
        // address_indexes ([]uint16)
        {
            // IsNativeTypeArray []uint16
            const type = '[]uint16'.slice(2);
            bytes_1.WriteVariableSize(buf, this.address_indexes.length, 8, 8);
            this.address_indexes.forEach(value => {
                bytes_1.write(buf, value, type); // TODO
            });
        }
        // reject_address_index (uint16)
        {
            bytes_1.write(buf, this.reject_address_index, 'uint16');
        }
        // rejection_code (uint8)
        {
            bytes_1.write(buf, this.rejection_code, 'uint8');
        }
        // message (string)
        {
            bytes_1.WriteVarChar(buf, this.message, 16);
        }
        // timestamp (Timestamp)
        {
            buf.write(this.timestamp.Serialize());
        }
        return buf.buf;
    }
// serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes .
Serialize() {
        const buf = new util_1.default.Writer();
        {
            const type = '[]uint16'.slice(2);
            bytes_1.WriteVariableSize(buf, this.address_indexes.length, 8, 8);
            this.address_indexes.forEach(value => {
                bytes_1.write(buf, value, type); 
            });
        }
        {
            bytes_1.write(buf, this.reject_address_index, 'uint16');
        }
        {
            bytes_1.write(buf, this.rejection_code, 'uint8');
        }
        {
            bytes_1.WriteVarChar(buf, this.message, 16);
        }
        {
            buf.write(this.timestamp.Serialize());
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { const type = '[]uint16' . slice ( 2 ) ; bytes_1 . WriteVariableSize ( buf , this . address_indexes . length , 8 , 8 ) ; this . address_indexes . forEach ( value => { bytes_1 . write ( buf , value , type ) ; } ) ; } { bytes_1 . write ( buf , this . reject_address_index , 'uint16' ) ; } { bytes_1 . write ( buf , this . rejection_code , 'uint8' ) ; } { bytes_1 . WriteVarChar ( buf , this . message , 16 ) ; } { buf . write ( this . timestamp . Serialize ( ) ) ; } return buf . buf ; }
serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes .
// address_indexes ([]uint16) // IsNativeTypeArray []uint16 // TODO // reject_address_index (uint16) // rejection_code (uint8) // message (string) // timestamp (Timestamp)