Serialize() {
        const buf = new util_1.default.Writer();
        // Version (uint8)
        {
            bytes_1.write(buf, this.version, 'uint8');
        }
        // Timestamp (Timestamp)
        {
            buf.write(this.timestamp.Serialize());
        }
        // TransferTxId (TxId)
        {
            buf.write(this.transfer_tx_id.Serialize());
        }
        // ContractFees ([]TargetAddress)
        {
            bytes_1.WriteVariableSize(buf, this.contract_fees.length, 8, 8);
            this.contract_fees.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        // Settlement ([]byte)
        {
            bytes_1.WriteVarBin(buf, this.settlement, 32);
        }
        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();
        {
            bytes_1.write(buf, this.version, 'uint8');
        }
        {
            buf.write(this.timestamp.Serialize());
        }
        {
            buf.write(this.transfer_tx_id.Serialize());
        }
        {
            bytes_1.WriteVariableSize(buf, this.contract_fees.length, 8, 8);
            this.contract_fees.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        {
            bytes_1.WriteVarBin(buf, this.settlement, 32);
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { bytes_1 . write ( buf , this . version , 'uint8' ) ; } { buf . write ( this . timestamp . Serialize ( ) ) ; } { buf . write ( this . transfer_tx_id . Serialize ( ) ) ; } { bytes_1 . WriteVariableSize ( buf , this . contract_fees . length , 8 , 8 ) ; this . contract_fees . forEach ( ( value ) => { buf . write ( value . Serialize ( ) ) ; } ) ; } { bytes_1 . WriteVarBin ( buf , this . settlement , 32 ) ; } return buf . buf ; }
Serialize returns the full OP_RETURN payload bytes.
Serialize returns the full OP_RETURN payload bytes .
// Version (uint8) // Timestamp (Timestamp) // TransferTxId (TxId) // ContractFees ([]TargetAddress) // Settlement ([]byte)