Serialize() {
        const buf = new util_1.default.Writer();
        // Version (uint8)
        {
            bytes_1.write(buf, this.version, 'uint8');
        }
        // Timestamp (Timestamp)
        {
            buf.write(this.timestamp.Serialize());
        }
        // Payload ([]byte)
        {
            bytes_1.WriteVarBin(buf, this.payload, 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());
        }
        {
            bytes_1.WriteVarBin(buf, this.payload, 32);
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { bytes_1 . write ( buf , this . version , 'uint8' ) ; } { buf . write ( this . timestamp . Serialize ( ) ) ; } { bytes_1 . WriteVarBin ( buf , this . payload , 32 ) ; } return buf . buf ; }
Serialize returns the full OP_RETURN payload bytes.
Serialize returns the full OP_RETURN payload bytes .
// Version (uint8) // Timestamp (Timestamp) // Payload ([]byte)