/**
  * Adds a metadata output to the raw transaction in tx-hex given by a previous call to createrawtransaction. The
  * metadata is specified in data-hex in hexadecimal form and added in a new OP_RETURN transaction output. The
  * transaction can then be signed and transmitted to the network using signrawtransaction and sendrawtransaction.
  *
  * @group metadata
  */
 public function testAppendRawMetadata()
 {
     $address1 = $this->multichain->getNewAddress();
     $assetInfo1 = $this->createTestAsset($address1);
     $assetInfo2 = $this->createTestAsset($address1);
     $lock = $this->multichain->prepareLockUnspent(array($assetInfo1["name"] => 123));
     $txHex = $this->multichain->createRawExchange($lock["txid"], $lock["vout"], array($assetInfo2["name"] => 100));
     $this->multichain->setDebug(true)->appendRawMetadata($txHex, "fakemetadata");
 }