src/Transactions/Serializers/MultiPayment.php
public function serialize(): void
    {
        $this->buffer->writeUInt16(count($this->transaction['asset']['payments']));

        foreach ($this->transaction['asset']['payments'] as $payment) {
            $this->buffer->writeUInt64($payment['amount']);
            $this->buffer->writeHex(Base58::decodeCheck($payment['recipientId'])->getHex());
        }
    }
public function serialize(): void
    {
        $this->buffer->writeUInt16(count($this->transaction['asset']['payments']));

        foreach ($this->transaction['asset']['payments'] as $payment) {
            $this->buffer->writeUInt64($payment['amount']);
            $this->buffer->writeHex(Base58::decodeCheck($payment['recipientId'])->getHex());
        }
    }
public function serialize ( ) : void { $ this -> buffer -> writeUInt16 ( count ( $ this -> transaction [ 'asset' ] [ 'payments' ] ) ) ; foreach ( $ this -> transaction [ 'asset' ] [ 'payments' ] as $ payment ) { $ this -> buffer -> writeUInt64 ( $ payment [ 'amount' ] ) ; $ this -> buffer -> writeHex ( Base58 :: decodeCheck ( $ payment [ 'recipientId' ] ) -> getHex ( ) ) ; } }
Handle the serialization of "multi payment" data.

@return string
Handle the serialization of multi payment data .