Litecoin Coreを操作してMWEBのトランザクションを作成してみる

#　はじめに

https://cryptocurrency.connpass.com/event/254748/

上記勉強会で使う資料となります。勉強会のアーカイブ動画は公開予定です。

# 準備

Litecoin CoreをTestnetで起動します。

## Litecoin Coreのセットアップ

https://github.com/litecoin-project/litecoin/releases/tag/v0.21.2.1

Litecoin Core v0.21.2.1をセットアップしていきます。

v0.21.2でもいいですが、MWEBのwalletにクリティカルなバグがあるらしく、それを直したv0.21.2.1を使った方がいいです。

`litecoin.conf`のサンプルを載せておきます。

```litecoin.conf
daemon=1
testnet=4
txindex=1
server=1
[test]
rpcuser=********
rpcpassword=********
wallet=default
```

`wallet=`は作成後に記入してください。

```
litecoin-cli createwallet default
```

でwallet作成

```
litecoin-cli getblockchaininfo
```

で同期できていることを確認

##　既存形式のアドレスの生成

```
litecoin-cli getnewaddress
```

```
tltc1qfkwl3g0g6wxsa2gkv5weq5mha3gqky2tq6phgy
```

## FaucetからTestnetコイン入手

https://testnet.help/en/ltcfaucet/testnet#log

https://blockexplorer.one/litecoin/testnet/tx/efd8b9f47904b1fdfd2fd7ab433a241fcd61567119e8822901bc08dc830a6ac8

# MWEBを触っていく

## LitcoindでMWEBアドレスを発行

```
litecoin-cli getnewaddress "mweb" mweb
```

```
tmweb1qq20h7k06zpd2csvenjppjwlqr8pwsgk9rvt0jejl4qefw4rpu7gf6q5xejcduhk3mppytxlpuwj9dwdk9frp4m42pdxyytqr0fzz4vw225ptcguz
```

## 既存形式のアドレスからMWEBアドレスに送金(Peg-In)

```
litecoin-cli sendtoaddress tmweb1qq20h7k06zpd2csvenjppjwlqr8pwsgk9rvt0jejl4qefw4rpu7gf6q5xejcduhk3mppytxlpuwj9dwdk9frp4m42pdxyytqr0fzz4vw225ptcguz 0.0033
```

```
ab038a763ad4c604093e6fe375628077ed77f7a8bdc916cd16ba02710ab8759c
```

```
litecoin-cli getrawtransaction ab038a763ad4c604093e6fe375628077ed77f7a8bdc916cd16ba02710ab8759c
```

```
02000000000903f9100c0242cba6e6c60f2c17d044d86f638914415027cf1827771dea4da544a90000000000feffffffbd419fde5337a45dff6aa16bdb91bd3645f9debc17ed0210f777ab8bc92c09420100000000feffffffc86a0a83dc08bc012982e819715661cd1f243a43abd72ffdfdb10479f4b9d8ef0000000000feffffff01b51805000000000022592088c4958c896548230881ca52131fc804758213279f27113af4ae852e2d16baaa02473044022061892f0255af3f6cf0399e3ee003f7087c4162f74ed4245b4741e5b5f92a09cf02200820517d74fa2ca2e3b40bfa175c4fd0bc915a9b4f7471e9f3127b2128ead05001210264780ab96dd1fa18cdca9275cd781df48a70ff18990518855179dfe670567a030247304402202936758840a8ee42d891a32a40e828efa098e1af056e3f8050894ff98c30ef970220105513c711b0924d02b86c5557b31f9ab1e62650f22394a1b5f966bf3f3c00e10121026423b8aa3497e235eff7e55069ceaf8b48f195309c796e5d246a489d8faebffb0247304402203b83b9d87d6494ab10e5c2e6177299ef7c6d562bc2b8ea85402fa3298a5491b30220622d548ade130ff5035302d8226c44e215d3d57474c6badedf95f9c722bc21ea0121026423b8aa3497e235eff7e55069ceaf8b48f195309c796e5d246a489d8faebffb0136adf415b4e117891debc8edefafffbc943df079f15e57a949a4cbd55bd47ed85a3b6abacc18195abafa89c88a1dd499bf04b9174740628384fbd717bb26ee8200020922b2f3d8c8b820fe977a18eb569812ec9a565a05274aa0a7c78e069c52f577fa0384ddd8a987f73cccecc28a011c436a01412a6663bf6be0d3e61205da81911997038bca5ae8c97b453bffe1b6e101b42296a638638987e56736b38955673476ffb90103bac723ef9abe75c012c87c151bf3d2736b48240d84a8ccadb918d1bb04cf0d4c0830e024689ae71a48aa7ee03995b28b89c940cd1b6cac3c8aeb3c5aa28884e2e2442a87cfdfd25ccf06aa581ea2a1a0a3c261b397a207b31d3639ec4c1db3d17e98ed48c350cd055863a104e547f535c981a4d9c77e9bf5e70ca6d5ab9447bed8fee21af1fe6537f68623a1204fe88d920bcb1208cbbb628707a7a9d6be9254c20feec61c1ab08c4abc0314e124517c703e6d78dd4287f3a36d7990ab4a1585d11c51eee27896ec3cd12a60bb6dcc8e60af2f849822a00591bcd0de796cb7f4a46d71acca88ab72c2758fecb1367ad25f97ec974147052130e24bcfde66142b6db73469b935afa72e3a26d3c1828e227b5b40e5bc289ce78c7f2c0106b44636ac8351b214b128f27a999ef68af51d08da56a9e7f5ddcc025a50a3251a6dd2d1cf231d9ae7ab4610ccbdac56ceec311397001562729dfbf9213795348292b8e9e6f496cb4d4b9ccc47bd4919fdefec944db8b468ee3ccd0642e9b952270059b04b4a9194e801c2d43c2de3eead9e40cf46c2195ba449e0fce0df5901a052731dd3f180472e17cd4897e13e3c22336dd78bd6f56bc5c1658b685d729c400b0edef784b7a109727110907613406fc1baf19c5f0d68027f6cb69cf8dc7cf8439f764d33ba9c35647dd657b34e4ffe7243386daf76a9eb02c2414eb7ac2f160be20cf10b484b3ef187b5ec2a2f4f1952f041e7144f12f826eb21c03fda8e5acd566a81cc7d85b915de0c39dc516d8066dbb67cef7854d6e022c3a38a9d24f2d0319fde2f658b929c24a71d28c6615860130d9e759ec33bfb1f2abe62c2940964c4d1fa9df3abb926a8345d3716231ae79cbf64a458cc1215b9ce788f6a1f81af5665acad905d59187d14dcb954150af13fdebec7f684e448c3322b8f8f99bf86c2ba84dc0ebf3b29032dbe1e6c57c54cb36c87f200ec4ef16d777afb82843149ad980e63c76248f41bedaa5fad0aff8d7c37c00e4f416b8cf30fb88500fe34f9ab3f73e8a00525ab7f5febcfb332b9886362058bb14f06d359485b4d6fa3d2105e63e1218f3a504a051e771d0733dc1977d6df07c3c34b8e68977d16b445082eebdd2251d89ffaacadca6b149da8bf24e868afdc64abcc37caa1e385aee3bb0312ece043f8356e001575df87de5dd5654f3a3c623c79e4cb925f0ef23be7a76702accf072b7fa7d6ed1fe3d7f047b21a7631ec474caf2fc04b5ca407935a68f50b0102b89513ee379e1e4d7f9349366442ccb1a0d20368930a19ff5329d4e325192893d675bf35b20f15b821d882f873c7a9881430339bcfde3dece3764825b3a00e494bed62410ba08c3c0922aa10f5477992fddcbbe1b78e1612652cf6e19eb2d7f50c7c35de3aa0ead548cfb8cfd97e592a72415b363a5b1a99d504545f8243ef226c66116d35b113849386cc7607941723ab90f332419467167c6189cdac2125b9076c0fceff3ded020c14ecfd5ea0071c1c10122467e72e84496c28b8d542029062913d9172189388c32af85e6fd55b30a959cb17345ab8ba2cf067001fe1f5fcd70ec5beccb498c455076447ff32184e64bdc0c29ef3eb16780152025f835a51fce6a4b7e2694339a933a2c4b2c991d3fbc91b34bf6df853451641dcf8ec9730924f89b38decaefd48dd320744c11deafb4f413f0e892e88b7591eda481e16b31b46b83bc54a6752d3b5d3831909725760c5988f860b2352cde416b3c311324b5051469fc1e97e93cfe21cfb91c4935abe3abf352cdaf2ef7be54bcb18b096ffb7037ac6190f4975c2a7eb220bf2887ac6b0a977e1cb625996e2cd024cefb1f4d2316ed21c86b440886971c6dd080696670729c58930f13b0bb56e655d0d6d27dbaa449050a986a7ba5b24a8b218015d772bf26fc44f81d009e81f812fd691b96829450db6861a5c536bdda9b4435b076d8b7ab0fbce3b0e9e2e592198d9bc61d585fb5267858505aef8f15274e2fd1145793ab6a8f29112a73080152893c6fe29e43580c57d4b51922c4a6e32b6d97cb43be72e2ec4cf326e8858bdb41c3fc42fd39bb15ee6be1a259c55ded1d3081673ecc87349695fe437b258812392ee2bc4d8f7afad4aef2f03d00c2048bf12fbcab188010b54cb929fdcf3906e8ab9708410af77facfe14222a106f63714cc8a0f0d821ed4ac6fe420f93803c0ef8b02af37864fd065a90bc3bf4986d76549119bb6b06445f2f816322491df97866e583a5e9d61091a1634cf743c2671f09e71095fa8f1d96ab48782521915b5bae09155484277530fe95ae7f94584fd7254609dd791563f6419e81bbf530411cd2189495e1b0dc2b4b1b01a2bfdecdc6e288f8e06075901cc82562212b1d601139d3c93b035025192a7f81895da5a0502a3883bd1ba916abeb8dcfca2b0d785ce1d0743b67d79096ea903427ad43b42e6afaed5170072a09192f7f4bf265ab5e5bb11cbf1b04f8dd28512db6cc7a8517bd9c67de27743a062ef0aeaf0e6bf6fc6a8969fae2260ed7cd19ebdc9ee245370fb1515e935e97407627b2f1987073904c5daf052e1a15f09212500
```

```
litecoin-cli decoderawtransaction 02000000000903f9100c0242cba6e6c60f2c17d044d86f638914415027cf1827771dea4da544a90000000000feffffffbd419fde5337a45dff6aa16bdb91bd3645f9debc17ed0210f777ab8bc92c09420100000000feffffffc86a0a83dc08bc012982e819715661cd1f243a43abd72ffdfdb10479f4b9d8ef0000000000feffffff01b51805000000000022592088c4958c896548230881ca52131fc804758213279f27113af4ae852e2d16baaa02473044022061892f0255af3f6cf0399e3ee003f7087c4162f74ed4245b4741e5b5f92a09cf02200820517d74fa2ca2e3b40bfa175c4fd0bc915a9b4f7471e9f3127b2128ead05001210264780ab96dd1fa18cdca9275cd781df48a70ff18990518855179dfe670567a030247304402202936758840a8ee42d891a32a40e828efa098e1af056e3f8050894ff98c30ef970220105513c711b0924d02b86c5557b31f9ab1e62650f22394a1b5f966bf3f3c00e10121026423b8aa3497e235eff7e55069ceaf8b48f195309c796e5d246a489d8faebffb0247304402203b83b9d87d6494ab10e5c2e6177299ef7c6d562bc2b8ea85402fa3298a5491b30220622d548ade130ff5035302d8226c44e215d3d57474c6badedf95f9c722bc21ea0121026423b8aa3497e235eff7e55069ceaf8b48f195309c796e5d246a489d8faebffb0136adf415b4e117891debc8edefafffbc943df079f15e57a949a4cbd55bd47ed85a3b6abacc18195abafa89c88a1dd499bf04b9174740628384fbd717bb26ee8200020922b2f3d8c8b820fe977a18eb569812ec9a565a05274aa0a7c78e069c52f577fa0384ddd8a987f73cccecc28a011c436a01412a6663bf6be0d3e61205da81911997038bca5ae8c97b453bffe1b6e101b42296a638638987e56736b38955673476ffb90103bac723ef9abe75c012c87c151bf3d2736b48240d84a8ccadb918d1bb04cf0d4c0830e024689ae71a48aa7ee03995b28b89c940cd1b6cac3c8aeb3c5aa28884e2e2442a87cfdfd25ccf06aa581ea2a1a0a3c261b397a207b31d3639ec4c1db3d17e98ed48c350cd055863a104e547f535c981a4d9c77e9bf5e70ca6d5ab9447bed8fee21af1fe6537f68623a1204fe88d920bcb1208cbbb628707a7a9d6be9254c20feec61c1ab08c4abc0314e124517c703e6d78dd4287f3a36d7990ab4a1585d11c51eee27896ec3cd12a60bb6dcc8e60af2f849822a00591bcd0de796cb7f4a46d71acca88ab72c2758fecb1367ad25f97ec974147052130e24bcfde66142b6db73469b935afa72e3a26d3c1828e227b5b40e5bc289ce78c7f2c0106b44636ac8351b214b128f27a999ef68af51d08da56a9e7f5ddcc025a50a3251a6dd2d1cf231d9ae7ab4610ccbdac56ceec311397001562729dfbf9213795348292b8e9e6f496cb4d4b9ccc47bd4919fdefec944db8b468ee3ccd0642e9b952270059b04b4a9194e801c2d43c2de3eead9e40cf46c2195ba449e0fce0df5901a052731dd3f180472e17cd4897e13e3c22336dd78bd6f56bc5c1658b685d729c400b0edef784b7a109727110907613406fc1baf19c5f0d68027f6cb69cf8dc7cf8439f764d33ba9c35647dd657b34e4ffe7243386daf76a9eb02c2414eb7ac2f160be20cf10b484b3ef187b5ec2a2f4f1952f041e7144f12f826eb21c03fda8e5acd566a81cc7d85b915de0c39dc516d8066dbb67cef7854d6e022c3a38a9d24f2d0319fde2f658b929c24a71d28c6615860130d9e759ec33bfb1f2abe62c2940964c4d1fa9df3abb926a8345d3716231ae79cbf64a458cc1215b9ce788f6a1f81af5665acad905d59187d14dcb954150af13fdebec7f684e448c3322b8f8f99bf86c2ba84dc0ebf3b29032dbe1e6c57c54cb36c87f200ec4ef16d777afb82843149ad980e63c76248f41bedaa5fad0aff8d7c37c00e4f416b8cf30fb88500fe34f9ab3f73e8a00525ab7f5febcfb332b9886362058bb14f06d359485b4d6fa3d2105e63e1218f3a504a051e771d0733dc1977d6df07c3c34b8e68977d16b445082eebdd2251d89ffaacadca6b149da8bf24e868afdc64abcc37caa1e385aee3bb0312ece043f8356e001575df87de5dd5654f3a3c623c79e4cb925f0ef23be7a76702accf072b7fa7d6ed1fe3d7f047b21a7631ec474caf2fc04b5ca407935a68f50b0102b89513ee379e1e4d7f9349366442ccb1a0d20368930a19ff5329d4e325192893d675bf35b20f15b821d882f873c7a9881430339bcfde3dece3764825b3a00e494bed62410ba08c3c0922aa10f5477992fddcbbe1b78e1612652cf6e19eb2d7f50c7c35de3aa0ead548cfb8cfd97e592a72415b363a5b1a99d504545f8243ef226c66116d35b113849386cc7607941723ab90f332419467167c6189cdac2125b9076c0fceff3ded020c14ecfd5ea0071c1c10122467e72e84496c28b8d542029062913d9172189388c32af85e6fd55b30a959cb17345ab8ba2cf067001fe1f5fcd70ec5beccb498c455076447ff32184e64bdc0c29ef3eb16780152025f835a51fce6a4b7e2694339a933a2c4b2c991d3fbc91b34bf6df853451641dcf8ec9730924f89b38decaefd48dd320744c11deafb4f413f0e892e88b7591eda481e16b31b46b83bc54a6752d3b5d3831909725760c5988f860b2352cde416b3c311324b5051469fc1e97e93cfe21cfb91c4935abe3abf352cdaf2ef7be54bcb18b096ffb7037ac6190f4975c2a7eb220bf2887ac6b0a977e1cb625996e2cd024cefb1f4d2316ed21c86b440886971c6dd080696670729c58930f13b0bb56e655d0d6d27dbaa449050a986a7ba5b24a8b218015d772bf26fc44f81d009e81f812fd691b96829450db6861a5c536bdda9b4435b076d8b7ab0fbce3b0e9e2e592198d9bc61d585fb5267858505aef8f15274e2fd1145793ab6a8f29112a73080152893c6fe29e43580c57d4b51922c4a6e32b6d97cb43be72e2ec4cf326e8858bdb41c3fc42fd39bb15ee6be1a259c55ded1d3081673ecc87349695fe437b258812392ee2bc4d8f7afad4aef2f03d00c2048bf12fbcab188010b54cb929fdcf3906e8ab9708410af77facfe14222a106f63714cc8a0f0d821ed4ac6fe420f93803c0ef8b02af37864fd065a90bc3bf4986d76549119bb6b06445f2f816322491df97866e583a5e9d61091a1634cf743c2671f09e71095fa8f1d96ab48782521915b5bae09155484277530fe95ae7f94584fd7254609dd791563f6419e81bbf530411cd2189495e1b0dc2b4b1b01a2bfdecdc6e288f8e06075901cc82562212b1d601139d3c93b035025192a7f81895da5a0502a3883bd1ba916abeb8dcfca2b0d785ce1d0743b67d79096ea903427ad43b42e6afaed5170072a09192f7f4bf265ab5e5bb11cbf1b04f8dd28512db6cc7a8517bd9c67de27743a062ef0aeaf0e6bf6fc6a8969fae2260ed7cd19ebdc9ee245370fb1515e935e97407627b2f1987073904c5daf052e1a15f09212500
```

```
{
  "txid": "ab038a763ad4c604093e6fe375628077ed77f7a8bdc916cd16ba02710ab8759c",
  "hash": "fc5a3b39a2033aebffe98089a848544bc0001054fe4b6e1b8d8d76d59c81dc68",
  "version": 2,
  "size": 2497,
  "vsize": 298,
  "weight": 1191,
  "locktime": 2433289,
  "vin": [
    {
      "ismweb": false,
      "txid": "a944a54dea1d772718cf2750411489636fd844d0172c0fc6e6a6cb42020c10f9",
      "vout": 0,
      "scriptSig": {
        "asm": "",
        "hex": ""
      },
      "txinwitness": [
        "3044022061892f0255af3f6cf0399e3ee003f7087c4162f74ed4245b4741e5b5f92a09cf02200820517d74fa2ca2e3b40bfa175c4fd0bc915a9b4f7471e9f3127b2128ead05001",
        "0264780ab96dd1fa18cdca9275cd781df48a70ff18990518855179dfe670567a03"
      ],
      "sequence": 4294967294
    },
    {
      "ismweb": false,
      "txid": "42092cc98bab77f71002ed17bcdef94536bd91db6ba16aff5da43753de9f41bd",
      "vout": 1,
      "scriptSig": {
        "asm": "",
        "hex": ""
      },
      "txinwitness": [
        "304402202936758840a8ee42d891a32a40e828efa098e1af056e3f8050894ff98c30ef970220105513c711b0924d02b86c5557b31f9ab1e62650f22394a1b5f966bf3f3c00e101",
        "026423b8aa3497e235eff7e55069ceaf8b48f195309c796e5d246a489d8faebffb"
      ],
      "sequence": 4294967294
    },
    {
      "ismweb": false,
      "txid": "efd8b9f47904b1fdfd2fd7ab433a241fcd61567119e8822901bc08dc830a6ac8",
      "vout": 0,
      "scriptSig": {
        "asm": "",
        "hex": ""
      },
      "txinwitness": [
        "304402203b83b9d87d6494ab10e5c2e6177299ef7c6d562bc2b8ea85402fa3298a5491b30220622d548ade130ff5035302d8226c44e215d3d57474c6badedf95f9c722bc21ea01",
        "026423b8aa3497e235eff7e55069ceaf8b48f195309c796e5d246a489d8faebffb"
      ],
      "sequence": 4294967294
    }
  ],
  "vout": [
    {
      "ismweb": false,
      "value": 0.00334005,
      "n": 0,
      "scriptPubKey": {
        "asm": "9 88c4958c896548230881ca52131fc804758213279f27113af4ae852e2d16baaa",
        "hex": "592088c4958c896548230881ca52131fc804758213279f27113af4ae852e2d16baaa",
        "type": "witness_mweb_pegin"
      }
    },
    {
      "ismweb": true,
      "output_id": "ddaaefbf81246078d7a7ce792e8049d682d099954bd8b8cfc6945368c1023f8f"
    },
    {
      "ismweb": true,
      "output_id": "e208b3aaac33a844ea66c8ebae2453985a9fedce709daffa2e1e10090a667cc2"
    }
  ],
  "vkern": [
    {
      "kernel_id": "88c4958c896548230881ca52131fc804758213279f27113af4ae852e2d16baaa",
      "fee": 0.00003900,
      "pegin": 0.00334005,
      "pegout": [
      ]
    }
  ]
}
```

https://blockexplorer.one/litecoin/testnet/tx/ab038a763ad4c604093e6fe375628077ed77f7a8bdc916cd16ba02710ab8759c

https://chain.so/tx/LTCTEST/ab038a763ad4c604093e6fe375628077ed77f7a8bdc916cd16ba02710ab8759c

## MWEB内での送金

```
litecoin-cli getnewaddress "mweb" mweb 
```

```
tmweb1qqdpn6rsageczq0n8hhtw906t763djjhf8dpjdz2fa476fcl3lff6sq32m9raa6mpv3t80d8k439xjxghdxefu2yd0v9zz4yuvssg0wq3vsc0fesq
```

もう一つMWEBアドレスを発行

```
 litecoin-cli sendtoaddress tmweb1qqdpn6rsageczq0n8hhtw906t763djjhf8dpjdz2fa476fcl3lff6sq32m9raa6mpv3t80d8k439xjxghdxefu2yd0v9zz4yuvssg0wq3vsc0fesq 0.0033
```

```
d65904953df67c326fa25289e6d07cbfcc21ca35c76c083fae5f5f52fb31d53f
```

```
litecoin-cli getrawtransaction d65904953df67c326fa25289e6d07cbfcc21ca35c76c083fae5f5f52fb31d53f
```

```
0200000000080000019919c8abc06d64c8cff07287cf710b7269d8300562d655d903b40724904418083a0bbf90f35f5b15a227083585c1f867c5ecaa241f1d87e16f23fda5fbca909e05012a0960ff964eebd0a31f384d9ac799e5495dc0c56bff1254ae9adc7316abda480933de14e78faa77bd47bf178b1cf465e59db4b0b4c1ad2a3e05cf7126aaf93a4d029e98777fb80a0a537490dc369dde1a53641ac2b9d0825d25ce1dbde38e011e1802238ffef338ad51a2a5c00f188a34b8285c2f7baa338e3621049b9c17943c38de8e53f4b9695e2166f0113f3ddb6719d784bf792b0659bcc157e0fc3d87e6c2fb829c8d98790425282e2d1b4f5a6f277dcf18a4c141653189f058aed74543e0f1017bf96700be318cdd9670a6c75b64089e28a3a3c17c6297055b4bfba36da42f26099510678bb99244dc6f94238bd795641a87a9022b511c966808571e41a3b5d759022c81ae8645096c00b1f3fbc5fafc6f7c60b1cb7826c8e8955fc6d869e0204395039649b76bf791b50b11fe274a09a03586cbdb8a50480f7e85926a519cc5744a71da4905b3fcdbb7e0bc6a4e99befafe1f9b89386d616c4eb297507ffba7a4bf08188d91023b26a2b48b15409cc6662977b2ecb7be1c2f3caf7a8b19ad7c3c979701ddaaefbf81246078d7a7ce792e8049d682d099954bd8b8cfc6945368c1023f8f0922b2f3d8c8b820fe977a18eb569812ec9a565a05274aa0a7c78e069c52f577fa038bca5ae8c97b453bffe1b6e101b42296a638638987e56736b38955673476ffb903ad3fbea9075b42931f79618d329193925a5c4c8a8ac8d956a9d4a028a81c685e3c9da91755a165770fdee7775cad56a80a8de11263d24bd6764972963d5f90c0383c03c98c19cbda4b48ad246ac4fe003ddbd519916b5b9d044b205982396b3e01e208b3aaac33a844ea66c8ebae2453985a9fedce709daffa2e1e10090a667cc2082eebdd2251d89ffaacadca6b149da8bf24e868afdc64abcc37caa1e385aee3bb02accf072b7fa7d6ed1fe3d7f047b21a7631ec474caf2fc04b5ca407935a68f50b0223cb1a2894c8fe34ebd77c4154a39d7267bb470dbe7d834cc6c448fe01fdc5eae60150c1e3914bd33d473978ca6df8b880e80b973fdd4ae83eb249358de46fcb9f6b0292bca8c56b1706fe3e28c5559efe02f74fc6cbd051647b3966fe6b6d4e01ec0c5a61ca38c41126601c4dadcae4a4bd53b4ab1b30d3343a3a718819ee3adb089c1143941a59114e410786638ef03fa994274b981488100d5b88cc0ae544907c03ae5b1c76c43113388f504ffe8648aeed12e4ad8ab502b3f2d18a67b25f375d6b033205ca525cc70edcfa59b117f8d36d50a8569c4a39f0c8547f39d1f4c0e80abdb0f1762d61bcdcf2f6ea7a85af66b00393af3e8a095adf882d699f24a676af37a4dbb5b36b1ad4f965dacbbe8c899151a72d873aad35d3a1a7ad0048edf6eb540208eaee2e637ca7245874a928abedf05bce63aa26e71b62e01c8de1970dcc542b8a039da5e4b1ae1cfb0cfce52e1c3bb5bd1e68ea2d220056942608f1a79fc290ea27030e54d8cfce2402ecb9c505981708accfc8352b43a07cf72953874a2f6c44d66a0103a9a59b114e36d9e25482a205e389cbd44f7336daa6b27f63e89a4907805bbf0a425c354f1e57cac4932ca162f92e84aad6c9a67a166feb77ef682202af9087841a59d7bf65007c98d1fbe0b7c102da8d4f13f86b32f0ffa05959bb704207e30f6c8db47f4bc5797394132cf19c7f8bbcec4aa04d98bdf488ae02aa1d3c6bf3d083b64b437e96011cab128c817498fa26743003c107e7925498005e37a3d34aa4fdf25c6e19cb4369968a31bf2ef03d9a2c1421184f56b2435f7612f0e03009d18bb602eb7a903a1c3a91b007932c9273368d2de700490d5675d277acd0f67a1f872d8c77ef793beeb5a4592ea5af7983ec65d800dcb8cac90592bf67c7edbe9887d6a4674a5385c942d433451d00e7344266cab7f855abca4d0db5700ec20d8ce7f2b9d75744cf0780b5af8fc644fd7a62e8d46dc60ed307240bedd7a4bf731d771017ec469698dc7141b7d072f6851530e19a5b6d82ca2e57215fe1bea9e355e64536d204432154c95b402326175ab0deac67e60fa91c5f2f5fe8916b5c01dc680bdf86e037bdd48bff4d61a3577580f6645e596b955187ffa88500af39de8e0f2f5019f25b3dbee549307d263a925b8ab34ebfaae5e17d95943506ed624a79d52543a54fe756bd14bdfbfa5e9fcb3daf2f07df6a09543de32be0e4fca651e61c0f2330f5e059066bd7ebf9841ad5796f287891692feb1dbce60a4cb94507eadcd8c835931ad0335505dd8b56c094b75c2a61ee3fa35940d5486c3d1411fdff3bde6d97595a285038746d95c1cbcbe6aca947d5e5c053c4d495353c6d2f1322a1104c28593ce55593fd0d8cd5177332ceb66fa893bc3bc72bfe18d4ef34fb8964bcfa49394f30444d3e3356cc8f978cfbcf6a4d7188dd8d58932a2cdad3dce78e5840d4334140ba988fc358c8a3eadb97d0d74cc95845cfd7213ff7237ecf84fc6f35ed54cb443fac1691f73621e70cac9853f65b0ca85b0fe2d82cb023cc7c06feae8b54401456deef4bb0d2ecc9e6176a446db9e915b4b6376b6a9f863d271ac9498d29a0b8e15373e48c1a13dbf1cd73d57af64195b38090abd16b80bcd5387b95503bebf74ae4a85127bb1734fec3a6e2430475c10a2540f39b090c90fa3acb012daf4b409d42ae3d0e08f167d14f20e937124e7ddee6f893c03f022930d09ca885765b043be10d24be3bab6505c963ce0b7b70b93e43c246a0ab2602a0f1cda05a07341dd12b971478d64eb34400d9c06f1296f85e07da6422743205010268ef04869ab39a7ecbef357d539124573ba626b1cb17fb17edb70c413bff842cf7adc2f27c76d04a9552a14a3c8d8ee58a33076f247d30d0e64a93e40da0ce94d15c2f84168b3c20a0184829e04b233157ee5caba647b313beac8f2831fe5f3e9fa0b0ecddfcc50a572c09d75bdb1168e8398836f650490591007713b6b890149e19bfe58484d40971fa2d70d55f8e7b8cf8277196ff3b1f8356a6db23f1e2ce6e340bb108a8c940a341eadc2ccbebd351d2b6a96f98e5a79a699ef3308f8f7b0dedd0fa3beac874242c2881e2a3c9f09deafcab07d51e57c30c641eeafe7d49c176b862df2290ed6f748405bacf2003664ee690fd180f0302f75910056d09375360c00f1926997a0ec17b6bbd6a9b21853fbd12a82d90886979b1cf3903f49f63800fd20a54a8c15337bc987a8df75bd8668c3d8a1d0c4cddfec9e410e34cd8a89ffb5c70985771e883361d4f65ec1a3046791e28a57f67322df0c1450b0a1fdba03eb92ca77a5f598dee5cc1e1f2d7c143dcd12dff38c0a08ed1c293f21639fc50a26209ec799927edb28d189aa09932b89eea70e66b619cb594019caa788df2036fd092e049e92b6ca0ba6ad8436d471c696d57fa2697c3bc2c909012fb6223d63ad1516e606d318be8e3d3392fc017b84855cb6457ee585ced7323510ac3d27f2aa186750878ad9c1336afb61d2728a6712b48ff3dc00c5e41cb30095af526fe52d3bae7b8a450f243a8e7ba12be487b66e7578ff685d29613f291c2102a65c0787f7ec05746a09d347ab2538deb2ab1db060aadf162aa0b1f281a98805d07bc481358206e34f82b5e8c2f4f30fc98a1ad7fbaf25b22f0fab9a6e80a0d316422ec3f0a3c2a30ddb351cf7cc235b83516f21d8613cdddaf0bf53b4891062c1163b66b6c9b49ad724568e84c4f143b419e9286268f5335b450499dff1c2966b3a55cf2f7b7e37e0a4e865133ca848cd1af7a2d5a10f2770f3c2eab4ec924cabb14e4f96e78c68baa774c305851b175684bec0df2bc06cd6b9e05f446d26bec2107b6dbaaec8c164f065b1009a88fc2d6a388493a9a8642d296e2ca4acf19b7ac043807397f85af23a503d64d0d9e52e77274a331bc08433617f42b01119d3c03e70edafb6ec0064485db29e875a797ea7d95ac664b7f20d958afeaa82f7d45fe08b2a9ddf4380c77d4bb070001927b7bfb8e2a2655f41e34932eae97f1e86fd16787d0c943be11708fd18813b3bd1cdb781d25d94b296654072796f719dfdbcd94cc5d9e445e4f96788a94b0dd4f580c94de6a47ba4cccc424b7c5b795091540540c212500
```

```
litecoin-cli decoderawtransaction 0200000000080000019919c8abc06d64c8cff07287cf710b7269d8300562d655d903b40724904418083a0bbf90f35f5b15a227083585c1f867c5ecaa241f1d87e16f23fda5fbca909e05012a0960ff964eebd0a31f384d9ac799e5495dc0c56bff1254ae9adc7316abda480933de14e78faa77bd47bf178b1cf465e59db4b0b4c1ad2a3e05cf7126aaf93a4d029e98777fb80a0a537490dc369dde1a53641ac2b9d0825d25ce1dbde38e011e1802238ffef338ad51a2a5c00f188a34b8285c2f7baa338e3621049b9c17943c38de8e53f4b9695e2166f0113f3ddb6719d784bf792b0659bcc157e0fc3d87e6c2fb829c8d98790425282e2d1b4f5a6f277dcf18a4c141653189f058aed74543e0f1017bf96700be318cdd9670a6c75b64089e28a3a3c17c6297055b4bfba36da42f26099510678bb99244dc6f94238bd795641a87a9022b511c966808571e41a3b5d759022c81ae8645096c00b1f3fbc5fafc6f7c60b1cb7826c8e8955fc6d869e0204395039649b76bf791b50b11fe274a09a03586cbdb8a50480f7e85926a519cc5744a71da4905b3fcdbb7e0bc6a4e99befafe1f9b89386d616c4eb297507ffba7a4bf08188d91023b26a2b48b15409cc6662977b2ecb7be1c2f3caf7a8b19ad7c3c979701ddaaefbf81246078d7a7ce792e8049d682d099954bd8b8cfc6945368c1023f8f0922b2f3d8c8b820fe977a18eb569812ec9a565a05274aa0a7c78e069c52f577fa038bca5ae8c97b453bffe1b6e101b42296a638638987e56736b38955673476ffb903ad3fbea9075b42931f79618d329193925a5c4c8a8ac8d956a9d4a028a81c685e3c9da91755a165770fdee7775cad56a80a8de11263d24bd6764972963d5f90c0383c03c98c19cbda4b48ad246ac4fe003ddbd519916b5b9d044b205982396b3e01e208b3aaac33a844ea66c8ebae2453985a9fedce709daffa2e1e10090a667cc2082eebdd2251d89ffaacadca6b149da8bf24e868afdc64abcc37caa1e385aee3bb02accf072b7fa7d6ed1fe3d7f047b21a7631ec474caf2fc04b5ca407935a68f50b0223cb1a2894c8fe34ebd77c4154a39d7267bb470dbe7d834cc6c448fe01fdc5eae60150c1e3914bd33d473978ca6df8b880e80b973fdd4ae83eb249358de46fcb9f6b0292bca8c56b1706fe3e28c5559efe02f74fc6cbd051647b3966fe6b6d4e01ec0c5a61ca38c41126601c4dadcae4a4bd53b4ab1b30d3343a3a718819ee3adb089c1143941a59114e410786638ef03fa994274b981488100d5b88cc0ae544907c03ae5b1c76c43113388f504ffe8648aeed12e4ad8ab502b3f2d18a67b25f375d6b033205ca525cc70edcfa59b117f8d36d50a8569c4a39f0c8547f39d1f4c0e80abdb0f1762d61bcdcf2f6ea7a85af66b00393af3e8a095adf882d699f24a676af37a4dbb5b36b1ad4f965dacbbe8c899151a72d873aad35d3a1a7ad0048edf6eb540208eaee2e637ca7245874a928abedf05bce63aa26e71b62e01c8de1970dcc542b8a039da5e4b1ae1cfb0cfce52e1c3bb5bd1e68ea2d220056942608f1a79fc290ea27030e54d8cfce2402ecb9c505981708accfc8352b43a07cf72953874a2f6c44d66a0103a9a59b114e36d9e25482a205e389cbd44f7336daa6b27f63e89a4907805bbf0a425c354f1e57cac4932ca162f92e84aad6c9a67a166feb77ef682202af9087841a59d7bf65007c98d1fbe0b7c102da8d4f13f86b32f0ffa05959bb704207e30f6c8db47f4bc5797394132cf19c7f8bbcec4aa04d98bdf488ae02aa1d3c6bf3d083b64b437e96011cab128c817498fa26743003c107e7925498005e37a3d34aa4fdf25c6e19cb4369968a31bf2ef03d9a2c1421184f56b2435f7612f0e03009d18bb602eb7a903a1c3a91b007932c9273368d2de700490d5675d277acd0f67a1f872d8c77ef793beeb5a4592ea5af7983ec65d800dcb8cac90592bf67c7edbe9887d6a4674a5385c942d433451d00e7344266cab7f855abca4d0db5700ec20d8ce7f2b9d75744cf0780b5af8fc644fd7a62e8d46dc60ed307240bedd7a4bf731d771017ec469698dc7141b7d072f6851530e19a5b6d82ca2e57215fe1bea9e355e64536d204432154c95b402326175ab0deac67e60fa91c5f2f5fe8916b5c01dc680bdf86e037bdd48bff4d61a3577580f6645e596b955187ffa88500af39de8e0f2f5019f25b3dbee549307d263a925b8ab34ebfaae5e17d95943506ed624a79d52543a54fe756bd14bdfbfa5e9fcb3daf2f07df6a09543de32be0e4fca651e61c0f2330f5e059066bd7ebf9841ad5796f287891692feb1dbce60a4cb94507eadcd8c835931ad0335505dd8b56c094b75c2a61ee3fa35940d5486c3d1411fdff3bde6d97595a285038746d95c1cbcbe6aca947d5e5c053c4d495353c6d2f1322a1104c28593ce55593fd0d8cd5177332ceb66fa893bc3bc72bfe18d4ef34fb8964bcfa49394f30444d3e3356cc8f978cfbcf6a4d7188dd8d58932a2cdad3dce78e5840d4334140ba988fc358c8a3eadb97d0d74cc95845cfd7213ff7237ecf84fc6f35ed54cb443fac1691f73621e70cac9853f65b0ca85b0fe2d82cb023cc7c06feae8b54401456deef4bb0d2ecc9e6176a446db9e915b4b6376b6a9f863d271ac9498d29a0b8e15373e48c1a13dbf1cd73d57af64195b38090abd16b80bcd5387b95503bebf74ae4a85127bb1734fec3a6e2430475c10a2540f39b090c90fa3acb012daf4b409d42ae3d0e08f167d14f20e937124e7ddee6f893c03f022930d09ca885765b043be10d24be3bab6505c963ce0b7b70b93e43c246a0ab2602a0f1cda05a07341dd12b971478d64eb34400d9c06f1296f85e07da6422743205010268ef04869ab39a7ecbef357d539124573ba626b1cb17fb17edb70c413bff842cf7adc2f27c76d04a9552a14a3c8d8ee58a33076f247d30d0e64a93e40da0ce94d15c2f84168b3c20a0184829e04b233157ee5caba647b313beac8f2831fe5f3e9fa0b0ecddfcc50a572c09d75bdb1168e8398836f650490591007713b6b890149e19bfe58484d40971fa2d70d55f8e7b8cf8277196ff3b1f8356a6db23f1e2ce6e340bb108a8c940a341eadc2ccbebd351d2b6a96f98e5a79a699ef3308f8f7b0dedd0fa3beac874242c2881e2a3c9f09deafcab07d51e57c30c641eeafe7d49c176b862df2290ed6f748405bacf2003664ee690fd180f0302f75910056d09375360c00f1926997a0ec17b6bbd6a9b21853fbd12a82d90886979b1cf3903f49f63800fd20a54a8c15337bc987a8df75bd8668c3d8a1d0c4cddfec9e410e34cd8a89ffb5c70985771e883361d4f65ec1a3046791e28a57f67322df0c1450b0a1fdba03eb92ca77a5f598dee5cc1e1f2d7c143dcd12dff38c0a08ed1c293f21639fc50a26209ec799927edb28d189aa09932b89eea70e66b619cb594019caa788df2036fd092e049e92b6ca0ba6ad8436d471c696d57fa2697c3bc2c909012fb6223d63ad1516e606d318be8e3d3392fc017b84855cb6457ee585ced7323510ac3d27f2aa186750878ad9c1336afb61d2728a6712b48ff3dc00c5e41cb30095af526fe52d3bae7b8a450f243a8e7ba12be487b66e7578ff685d29613f291c2102a65c0787f7ec05746a09d347ab2538deb2ab1db060aadf162aa0b1f281a98805d07bc481358206e34f82b5e8c2f4f30fc98a1ad7fbaf25b22f0fab9a6e80a0d316422ec3f0a3c2a30ddb351cf7cc235b83516f21d8613cdddaf0bf53b4891062c1163b66b6c9b49ad724568e84c4f143b419e9286268f5335b450499dff1c2966b3a55cf2f7b7e37e0a4e865133ca848cd1af7a2d5a10f2770f3c2eab4ec924cabb14e4f96e78c68baa774c305851b175684bec0df2bc06cd6b9e05f446d26bec2107b6dbaaec8c164f065b1009a88fc2d6a388493a9a8642d296e2ca4acf19b7ac043807397f85af23a503d64d0d9e52e77274a331bc08433617f42b01119d3c03e70edafb6ec0064485db29e875a797ea7d95ac664b7f20d958afeaa82f7d45fe08b2a9ddf4380c77d4bb070001927b7bfb8e2a2655f41e34932eae97f1e86fd16787d0c943be11708fd18813b3bd1cdb781d25d94b296654072796f719dfdbcd94cc5d9e445e4f96788a94b0dd4f580c94de6a47ba4cccc424b7c5b795091540540c212500
```

```
{
  "txid": "d65904953df67c326fa25289e6d07cbfcc21ca35c76c083fae5f5f52fb31d53f",
  "hash": "d65904953df67c326fa25289e6d07cbfcc21ca35c76c083fae5f5f52fb31d53f",
  "version": 2,
  "size": 2987,
  "vsize": 0,
  "weight": 0,
  "locktime": 2433292,
  "vin": [
    {
      "ismweb": true,
      "output_id": "2a0960ff964eebd0a31f384d9ac799e5495dc0c56bff1254ae9adc7316abda48"
    },
    {
      "ismweb": true,
      "output_id": "7bf96700be318cdd9670a6c75b64089e28a3a3c17c6297055b4bfba36da42f26"
    },
    {
      "ismweb": true,
      "output_id": "ddaaefbf81246078d7a7ce792e8049d682d099954bd8b8cfc6945368c1023f8f"
    },
    {
      "ismweb": true,
      "output_id": "e208b3aaac33a844ea66c8ebae2453985a9fedce709daffa2e1e10090a667cc2"
    },
    {
      "ismweb": true,
      "output_id": "ec0c5a61ca38c41126601c4dadcae4a4bd53b4ab1b30d3343a3a718819ee3adb"
    }
  ],
  "vout": [
    {
      "ismweb": true,
      "output_id": "3402c5127645866e1d24be21e469068e1983e64366941c80587cc7fa33fe2a2b"
    },
    {
      "ismweb": true,
      "output_id": "6cde5c5c6ac223a06caaadff0e0b42d5caa13b1412144753590313640b17751e"
    }
  ],
  "vkern": [
    {
      "kernel_id": "3fd531fb525f5fae3f086cc735ca21ccbf7cd0e68952a26f327cf63d950459d6",
      "fee": 0.00003900,
      "pegin": 0.00000000,
      "pegout": [
      ]
    }
  ]
}
```

https://blockexplorer.one/litecoin/testnet/tx/d65904953df67c326fa25289e6d07cbfcc21ca35c76c083fae5f5f52fb31d53f

https://chain.so/tx/LTCTEST/d65904953df67c326fa25289e6d07cbfcc21ca35c76c083fae5f5f52fb31d53f

MWEB内のTXはExplorerで検索できず

## 既存形式のアドレスに送金(Peg-Out)

```
litecoin-cli getnewaddress
```

```
tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m
```

```
litecoin-cli sendtoaddress tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m 0.0033 
```

```
acbb3a2956f01f09a7b5a1b4bf7258842b7ced9c15d0a7681a88ff5122395c7d
```

```
litecoin-cli getrawtransaction acbb3a2956f01f09a7b5a1b4bf7258842b7ced9c15d0a7681a88ff5122395c7d
```

```
02000000000800000193d1fc6975d3c58cf9f8b6ea8dbb5cb968a31271ebfa7f7b3ecee102a9271851901201958cd4b50f3b97a898c808e930f6f96e299a6295714e95f3f2fe44811702013402c5127645866e1d24be21e469068e1983e64366941c80587cc7fa33fe2a2b08eaee2e637ca7245874a928abedf05bce63aa26e71b62e01c8de1970dcc542b8a030e54d8cfce2402ecb9c505981708accfc8352b43a07cf72953874a2f6c44d66a0273c0c55ed7267170c44c5df4d77c3e6db226ca96f14ec595c4f3dfc2df8e612bf888890bd8412a2bc8d82d2ea7eb92dbe48795eb4625a2f8639f0480710424f087119893c38a415f920c8aa6f7b28859e5181469f178ae8f3dd39b9e7a2d82cf016cde5c5c6ac223a06caaadff0e0b42d5caa13b1412144753590313640b17751e090c90fa3acb012daf4b409d42ae3d0e08f167d14f20e937124e7ddee6f893c03f02a0f1cda05a07341dd12b971478d64eb34400d9c06f1296f85e07da64227432050302bbc473a2cd005e4eefb741799cca55a7645bcb7b2f781fcc7fa743ce80fd4c749e82109f756fc7d6b3033e27890713dfeac0657e2b30de6abdbd1123872ae8365357cf957340cdd62b3242bfbaec33af1b29b1cc0a6f954226a4a61a87d92401085033c9e4d31bb82461935df9808e8d619c89b7f37bc7e80034e549abbb3a3219032074a4232781e5e297d221c78e0f22ae275c8d2c770c253c43e58d80dd88654e03cbe7ef730dac91547ae9857e10c936a79f3f3ca9f256c37f7947f76d3f52f40e0102ac6008841a7633d592e4f0b9ab12582aba32ed8276dcea664f6229cdd6d97d4f14063953ca0cb8f56cd9a9c3d3cf701941a55bbe44e91b89e57e8fac28f19250207844e9ece61142548ede15ff5dc8d00ee163f880b1ea7a61782181a23af10a2691e485b818602f5ad9450505be2f3763236b1ccedb1395f009264894bec82a0888a432022036b66b69889e793e8c08e6ec5dea2f764e47db96a65ac2bd59eca5e896811ea7dfaf3c7041122d5897c4b145e78b406ac39d80c70720d03e84b91951f4b678dc91c73f935785673666802c902389e557552197a9c34f75cdba479f26e4460fc655451f0cde8445a5788226e2a6bf2d2de6352110fb164e8d44c37cfd6f399671375df50d37111a1287133cab2c8b105b1fdd2875c2fa13924e68e5ee6ccd729157ab3b22ca07a59f54d299113f716f4b2d26d7a985a4ca8cb9f103bb55c4a25c5d4322c43aea35bf0b8e83a07ab14c98fe736584210e3d6edb453c75b67b107163c5f8f9996c563a70688baaf1ea669c52b847d8589888557c273215d8d6cb610b04c67510f5f12e540040b59feb85d042c2a39c6f02a761762c7528df5c98ccc58fab3e58fb0b83709aaec9dee5c69f50b6ea8d9337f7d127fbddef0c90c3e83e915396bd2ba0c0beca22f8a5b285c9bf235607e115ccf80d1432831b18b919e417ef0eee99faa24ab1966cf152b3d6936fb3b47bc019ba8759a80a9f302445734a212da5822c902a5f50ac23ed882b6ea15686dec4fba2258aacd7dfc9580d10c6aded4ccbd7b3eb6ab593d28bd6ccfca1f7e18f5d2e864e42237345c4f9de84ef2cd32b29372c5040e305aa21701b75ac48c85e0d33d662ab5b38ecb25df170919b3f87e96bc46e19fe965a53ddc8093a0eaf790fe038a255547d31ff9b04b6f0ca5af242dc2a99f80bdba2943c7f6f5eb8a6d7f8f8c7e74143f215fc40363fb4cfa4da33b4975efa8e2a80f9882e52a9af95807ee45a4fa88894372a396d7cc3739ebbb92e79c5839efffbef4679c874f73e691b18cd24d287c8655826dd5e0f503a183767ad8538d1847cd11d38117e6f05a237a1cca8892d47be4db22332f6b4ecb6e0d1d90ea78ddc4ea9b17edf9ef0b9b95e011595070193911016001473237cd4e6375bded220db63c5118de52e3b24a303e0541a1d95f2e6bf17c34e92b3e848541fee56cbfaf53a9b816f75ba488c160608f85325761d0e038a1ec0cd3ed234805e51c388992ece19e03ec568ddc10aca970f1df4d8a1dfb1618983fa757ce135e7bb98f2faef4b2c269fe05272b7c23ef2f4abcf79fe61a2e38ca0227ee7242479102878ccbdd57726e5122343c9e4b5ca0d212500
```

```
litecoin-cli decoderawtransaction 02000000000800000193d1fc6975d3c58cf9f8b6ea8dbb5cb968a31271ebfa7f7b3ecee102a9271851901201958cd4b50f3b97a898c808e930f6f96e299a6295714e95f3f2fe44811702013402c5127645866e1d24be21e469068e1983e64366941c80587cc7fa33fe2a2b08eaee2e637ca7245874a928abedf05bce63aa26e71b62e01c8de1970dcc542b8a030e54d8cfce2402ecb9c505981708accfc8352b43a07cf72953874a2f6c44d66a0273c0c55ed7267170c44c5df4d77c3e6db226ca96f14ec595c4f3dfc2df8e612bf888890bd8412a2bc8d82d2ea7eb92dbe48795eb4625a2f8639f0480710424f087119893c38a415f920c8aa6f7b28859e5181469f178ae8f3dd39b9e7a2d82cf016cde5c5c6ac223a06caaadff0e0b42d5caa13b1412144753590313640b17751e090c90fa3acb012daf4b409d42ae3d0e08f167d14f20e937124e7ddee6f893c03f02a0f1cda05a07341dd12b971478d64eb34400d9c06f1296f85e07da64227432050302bbc473a2cd005e4eefb741799cca55a7645bcb7b2f781fcc7fa743ce80fd4c749e82109f756fc7d6b3033e27890713dfeac0657e2b30de6abdbd1123872ae8365357cf957340cdd62b3242bfbaec33af1b29b1cc0a6f954226a4a61a87d92401085033c9e4d31bb82461935df9808e8d619c89b7f37bc7e80034e549abbb3a3219032074a4232781e5e297d221c78e0f22ae275c8d2c770c253c43e58d80dd88654e03cbe7ef730dac91547ae9857e10c936a79f3f3ca9f256c37f7947f76d3f52f40e0102ac6008841a7633d592e4f0b9ab12582aba32ed8276dcea664f6229cdd6d97d4f14063953ca0cb8f56cd9a9c3d3cf701941a55bbe44e91b89e57e8fac28f19250207844e9ece61142548ede15ff5dc8d00ee163f880b1ea7a61782181a23af10a2691e485b818602f5ad9450505be2f3763236b1ccedb1395f009264894bec82a0888a432022036b66b69889e793e8c08e6ec5dea2f764e47db96a65ac2bd59eca5e896811ea7dfaf3c7041122d5897c4b145e78b406ac39d80c70720d03e84b91951f4b678dc91c73f935785673666802c902389e557552197a9c34f75cdba479f26e4460fc655451f0cde8445a5788226e2a6bf2d2de6352110fb164e8d44c37cfd6f399671375df50d37111a1287133cab2c8b105b1fdd2875c2fa13924e68e5ee6ccd729157ab3b22ca07a59f54d299113f716f4b2d26d7a985a4ca8cb9f103bb55c4a25c5d4322c43aea35bf0b8e83a07ab14c98fe736584210e3d6edb453c75b67b107163c5f8f9996c563a70688baaf1ea669c52b847d8589888557c273215d8d6cb610b04c67510f5f12e540040b59feb85d042c2a39c6f02a761762c7528df5c98ccc58fab3e58fb0b83709aaec9dee5c69f50b6ea8d9337f7d127fbddef0c90c3e83e915396bd2ba0c0beca22f8a5b285c9bf235607e115ccf80d1432831b18b919e417ef0eee99faa24ab1966cf152b3d6936fb3b47bc019ba8759a80a9f302445734a212da5822c902a5f50ac23ed882b6ea15686dec4fba2258aacd7dfc9580d10c6aded4ccbd7b3eb6ab593d28bd6ccfca1f7e18f5d2e864e42237345c4f9de84ef2cd32b29372c5040e305aa21701b75ac48c85e0d33d662ab5b38ecb25df170919b3f87e96bc46e19fe965a53ddc8093a0eaf790fe038a255547d31ff9b04b6f0ca5af242dc2a99f80bdba2943c7f6f5eb8a6d7f8f8c7e74143f215fc40363fb4cfa4da33b4975efa8e2a80f9882e52a9af95807ee45a4fa88894372a396d7cc3739ebbb92e79c5839efffbef4679c874f73e691b18cd24d287c8655826dd5e0f503a183767ad8538d1847cd11d38117e6f05a237a1cca8892d47be4db22332f6b4ecb6e0d1d90ea78ddc4ea9b17edf9ef0b9b95e011595070193911016001473237cd4e6375bded220db63c5118de52e3b24a303e0541a1d95f2e6bf17c34e92b3e848541fee56cbfaf53a9b816f75ba488c160608f85325761d0e038a1ec0cd3ed234805e51c388992ece19e03ec568ddc10aca970f1df4d8a1dfb1618983fa757ce135e7bb98f2faef4b2c269fe05272b7c23ef2f4abcf79fe61a2e38ca0227ee7242479102878ccbdd57726e5122343c9e4b5ca0d212500
```

```
{
  "txid": "acbb3a2956f01f09a7b5a1b4bf7258842b7ced9c15d0a7681a88ff5122395c7d",
  "hash": "acbb3a2956f01f09a7b5a1b4bf7258842b7ced9c15d0a7681a88ff5122395c7d",
  "version": 2,
  "size": 1529,
  "vsize": 31,
  "weight": 124,
  "locktime": 2433293,
  "vin": [
    {
      "ismweb": true,
      "output_id": "3402c5127645866e1d24be21e469068e1983e64366941c80587cc7fa33fe2a2b"
    },
    {
      "ismweb": true,
      "output_id": "6cde5c5c6ac223a06caaadff0e0b42d5caa13b1412144753590313640b17751e"
    }
  ],
  "vout": [
    {
      "ismweb": true,
      "output_id": "534f68c5b8b8558f80999a8f9bb1c449b4009692460a4f4d3af29b962b2503cd"
    }
  ],
  "vkern": [
    {
      "kernel_id": "7d5c392251ff881a68a7d0159ced7c2b845872bfb4a1b5a7091ff056293abbac",
      "fee": 0.00002823,
      "pegin": 0.00000000,
      "pegout": [
        {
          "value": 0.00330000,
          "scriptPubKey": {
            "asm": "0 73237cd4e6375bded220db63c5118de52e3b24a3",
            "hex": "001473237cd4e6375bded220db63c5118de52e3b24a3",
            "reqSigs": 1,
            "type": "witness_v0_keyhash",
            "addresses": [
              "tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m"
            ]
          }
        }
      ]
    }
  ]
}
```

https://blockexplorer.one/litecoin/testnet/tx/acbb3a2956f01f09a7b5a1b4bf7258842b7ced9c15d0a7681a88ff5122395c7d

https://chain.so/tx/LTCTEST/acbb3a2956f01f09a7b5a1b4bf7258842b7ced9c15d0a7681a88ff5122395c7d

Explorerで検索できず

送金先アドレスを検索すると

https://blockexplorer.one/litecoin/testnet/address/tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m

https://chain.so/address/LTCTEST/tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m

TXIDが変化している

https://blockexplorer.one/litecoin/testnet/tx/ad0b59937ea042b966f58cf7b1b356b3c17e113ca5fe8dc066f3b16c7df9b3c2

https://chain.so/tx/LTCTEST/ad0b59937ea042b966f58cf7b1b356b3c17e113ca5fe8dc066f3b16c7df9b3c2

```
litecoin-cli getrawtransaction ad0b59937ea042b966f58cf7b1b356b3c17e113ca5fe8dc066f3b16c7df9b3c2
```

```
020000000008014f4b74e555dc6c7b588e5e89f84a03a343285649556c518d701a832b061046da0000000000ffffffff023a1c65e49e320000225820a1a79e4c2fec102e6d804a5ad4025c09aeb4988b6a51dca65748912dd54fabd0100905000000000016001473237cd4e6375bded220db63c5118de52e3b24a30000000000
```

```
litecoin-cli decoderawtransaction 020000000008014f4b74e555dc6c7b588e5e89f84a03a343285649556c518d701a832b061046da0000000000ffffffff023a1c65e49e320000225820a1a79e4c2fec102e6d804a5ad4025c09aeb4988b6a51dca65748912dd54fabd0100905000000000016001473237cd4e6375bded220db63c5118de52e3b24a30000000000
```

```
{
  "txid": "ad0b59937ea042b966f58cf7b1b356b3c17e113ca5fe8dc066f3b16c7df9b3c2",
  "hash": "ad0b59937ea042b966f58cf7b1b356b3c17e113ca5fe8dc066f3b16c7df9b3c2",
  "version": 2,
  "size": 128,
  "vsize": 125,
  "weight": 500,
  "locktime": 0,
  "vin": [
    {
      "ismweb": false,
      "txid": "da4610062b831a708d516c5549562843a3034af8895e8e587b6cdc55e5744b4f",
      "vout": 0,
      "scriptSig": {
        "asm": "",
        "hex": ""
      },
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "ismweb": false,
      "value": 556580.18053178,
      "n": 0,
      "scriptPubKey": {
        "asm": "8 a1a79e4c2fec102e6d804a5ad4025c09aeb4988b6a51dca65748912dd54fabd0",
        "hex": "5820a1a79e4c2fec102e6d804a5ad4025c09aeb4988b6a51dca65748912dd54fabd0",
        "type": "witness_mweb_hogaddr"
      }
    },
    {
      "ismweb": false,
      "value": 0.00330000,
      "n": 1,
      "scriptPubKey": {
        "asm": "0 73237cd4e6375bded220db63c5118de52e3b24a3",
        "hex": "001473237cd4e6375bded220db63c5118de52e3b24a3",
        "reqSigs": 1,
        "type": "witness_v0_keyhash",
        "addresses": [
          "tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m"
        ]
      }
    }
  ]
}
```

`"type": "witness_mweb_hogaddr"`でMWEBPeg-outか判別可能

```
litecoin-cli gettransaction ad0b59937ea042b966f58cf7b1b356b3c17e113ca5fe8dc066f3b16c7df9b3c2
```

```
{
  "amount": 0.00000000,
  "confirmations": 3,
  "blockhash": "3f533d833cd569cea15af6ec607c4443d6a7ae464aaaddfc24e5ae4dc43e28b3",
  "blockheight": 2433294,
  "blockindex": 1,
  "blocktime": 1659087125,
  "txid": "ad0b59937ea042b966f58cf7b1b356b3c17e113ca5fe8dc066f3b16c7df9b3c2",
  "walletconflicts": [
  ],
  "time": 1659087125,
  "timereceived": 1659087131,
  "bip125-replaceable": "no",
  "details": [
    {
      "address": "tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m",
      "category": "immature",
      "amount": 0.00330000,
      "label": "",
      "vout": 1
    }
  ],
  "hex": "020000000008014f4b74e555dc6c7b588e5e89f84a03a343285649556c518d701a832b061046da0000000000ffffffff023a1c65e49e320000225820a1a79e4c2fec102e6d804a5ad4025c09aeb4988b6a51dca65748912dd54fabd0100905000000000016001473237cd4e6375bded220db63c5118de52e3b24a30000000000"
}
```

```
litecoin-cli gettransaction acbb3a2956f01f09a7b5a1b4bf7258842b7ced9c15d0a7681a88ff5122395c7d
```

```
{
  "amount": -0.00330000,
  "fee": -0.00002823,
  "confirmations": 3,
  "blockhash": "3f533d833cd569cea15af6ec607c4443d6a7ae464aaaddfc24e5ae4dc43e28b3",
  "blockheight": 2433294,
  "blockindex": 0,
  "blocktime": 1659087125,
  "txid": "acbb3a2956f01f09a7b5a1b4bf7258842b7ced9c15d0a7681a88ff5122395c7d",
  "walletconflicts": [
  ],
  "time": 1659086961,
  "timereceived": 1659086961,
  "bip125-replaceable": "no",
  "details": [
    {
      "address": "tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m",
      "category": "send",
      "amount": -0.00330000,
      "label": "",
      "fee": -0.00002823,
      "abandoned": false
    },
    {
      "address": "tltc1qwv3he48xxadaa53qmd3u2yvdu5hrkf9r38vl0m",
      "category": "receive",
      "amount": 0.00330000,
      "label": "",
      "mweb_out": "0000000000000000000000000000000000000000000000000000000000000000"
    }
  ],
  "hex": "02000000000800000193d1fc6975d3c58cf9f8b6ea8dbb5cb968a31271ebfa7f7b3ecee102a9271851901201958cd4b50f3b97a898c808e930f6f96e299a6295714e95f3f2fe44811702013402c5127645866e1d24be21e469068e1983e64366941c80587cc7fa33fe2a2b08eaee2e637ca7245874a928abedf05bce63aa26e71b62e01c8de1970dcc542b8a030e54d8cfce2402ecb9c505981708accfc8352b43a07cf72953874a2f6c44d66a0273c0c55ed7267170c44c5df4d77c3e6db226ca96f14ec595c4f3dfc2df8e612bf888890bd8412a2bc8d82d2ea7eb92dbe48795eb4625a2f8639f0480710424f087119893c38a415f920c8aa6f7b28859e5181469f178ae8f3dd39b9e7a2d82cf016cde5c5c6ac223a06caaadff0e0b42d5caa13b1412144753590313640b17751e090c90fa3acb012daf4b409d42ae3d0e08f167d14f20e937124e7ddee6f893c03f02a0f1cda05a07341dd12b971478d64eb34400d9c06f1296f85e07da64227432050302bbc473a2cd005e4eefb741799cca55a7645bcb7b2f781fcc7fa743ce80fd4c749e82109f756fc7d6b3033e27890713dfeac0657e2b30de6abdbd1123872ae8365357cf957340cdd62b3242bfbaec33af1b29b1cc0a6f954226a4a61a87d92401085033c9e4d31bb82461935df9808e8d619c89b7f37bc7e80034e549abbb3a3219032074a4232781e5e297d221c78e0f22ae275c8d2c770c253c43e58d80dd88654e03cbe7ef730dac91547ae9857e10c936a79f3f3ca9f256c37f7947f76d3f52f40e0102ac6008841a7633d592e4f0b9ab12582aba32ed8276dcea664f6229cdd6d97d4f14063953ca0cb8f56cd9a9c3d3cf701941a55bbe44e91b89e57e8fac28f19250207844e9ece61142548ede15ff5dc8d00ee163f880b1ea7a61782181a23af10a2691e485b818602f5ad9450505be2f3763236b1ccedb1395f009264894bec82a0888a432022036b66b69889e793e8c08e6ec5dea2f764e47db96a65ac2bd59eca5e896811ea7dfaf3c7041122d5897c4b145e78b406ac39d80c70720d03e84b91951f4b678dc91c73f935785673666802c902389e557552197a9c34f75cdba479f26e4460fc655451f0cde8445a5788226e2a6bf2d2de6352110fb164e8d44c37cfd6f399671375df50d37111a1287133cab2c8b105b1fdd2875c2fa13924e68e5ee6ccd729157ab3b22ca07a59f54d299113f716f4b2d26d7a985a4ca8cb9f103bb55c4a25c5d4322c43aea35bf0b8e83a07ab14c98fe736584210e3d6edb453c75b67b107163c5f8f9996c563a70688baaf1ea669c52b847d8589888557c273215d8d6cb610b04c67510f5f12e540040b59feb85d042c2a39c6f02a761762c7528df5c98ccc58fab3e58fb0b83709aaec9dee5c69f50b6ea8d9337f7d127fbddef0c90c3e83e915396bd2ba0c0beca22f8a5b285c9bf235607e115ccf80d1432831b18b919e417ef0eee99faa24ab1966cf152b3d6936fb3b47bc019ba8759a80a9f302445734a212da5822c902a5f50ac23ed882b6ea15686dec4fba2258aacd7dfc9580d10c6aded4ccbd7b3eb6ab593d28bd6ccfca1f7e18f5d2e864e42237345c4f9de84ef2cd32b29372c5040e305aa21701b75ac48c85e0d33d662ab5b38ecb25df170919b3f87e96bc46e19fe965a53ddc8093a0eaf790fe038a255547d31ff9b04b6f0ca5af242dc2a99f80bdba2943c7f6f5eb8a6d7f8f8c7e74143f215fc40363fb4cfa4da33b4975efa8e2a80f9882e52a9af95807ee45a4fa88894372a396d7cc3739ebbb92e79c5839efffbef4679c874f73e691b18cd24d287c8655826dd5e0f503a183767ad8538d1847cd11d38117e6f05a237a1cca8892d47be4db22332f6b4ecb6e0d1d90ea78ddc4ea9b17edf9ef0b9b95e011595070193911016001473237cd4e6375bded220db63c5118de52e3b24a303e0541a1d95f2e6bf17c34e92b3e848541fee56cbfaf53a9b816f75ba488c160608f85325761d0e038a1ec0cd3ed234805e51c388992ece19e03ec568ddc10aca970f1df4d8a1dfb1618983fa757ce135e7bb98f2faef4b2c269fe05272b7c23ef2f4abcf79fe61a2e38ca0227ee7242479102878ccbdd57726e5122343c9e4b5ca0d212500"
}
```


# わかったこと

- P2SHやP2WPKH、P2WSHなど既存アドレスに対して、LTC MWEBのPeg-Outトランザクションによる入金は可能
    - ウォレットも検知できる
- MWEBアドレス宛のPeg-Inトランザクションではお釣りも含めてMWEBチェーンにPeg-Inされる
- MWEBのPeg-OutトランザクションはMWEB側とオンチェーン側でtxidが異なる
    - オンチェーン側のTXでMWEBからの入金は判別可能
- MWEB側のtxidをExplorerで検索してもヒットせず、他のノードでも検索できなかった

# Mainnetでやったときの

## 方法

1. ウォレットを有効化してあるLitecoind v0.21.2(MWEB有効化Ver.)を構築
2. Litcoindで既存アドレスを発行
3. Fauceから、既存アドレスに入金
4. LitecoindでMWEBアドレスを発行
5. P2PH-SegwitアドレスからMWEBアドレスに送金(Peg-In)
6. P2SHアドレスに送金(Peg-Out)

## 結果

- litecoin coreでP2PH-Segwitアドレスを発行

```
$ litecoin-cli getnewaddress "" "p2sh-segwit"
MLjabn3PhTZzoA3WUE2GAEqwDsFCp7yrDY
```

- Devから出金して、P2PH-Segwitアドレスに入金

https://litecoinblockexplorer.net/tx/dc7805c628e5c86760c91c832e754f8cd7be51421769ad9ef13a554a706144f2

- ウォレットでMWEBアドレスを発行

```
$ litecoin-cli getnewaddress "" "mweb"
ltcmweb1qq0csmz8jqeexeesmjcu5n6tmc593qfkmr32gl4xrqm4sggcczra9jq68ttjew96xgqkw3jjmg0cnz9743cp7x5ev2ep2jzw3u59gvupkf5kk929d
```

-  P2PH-SegwitアドレスからMWEBアドレスに送金（Peg-In）

```
$ litecoin-cli getbalance
0.00500000
```

```
$ litecoin-cli sendtoaddress ltcmweb1qq0csmz8jqeexeesmjcu5n6tmc593qfkmr32gl4xrqm4sggcczra9jq68ttjew96xgqkw3jjmg0cnz9743cp7x5ev2ep2jzw3u59gvupkf5kk929d 0.0025
951f2c087d298548ee99d3da6fefcb77c0c98c9a36f7da26e85dd74395059456
```

https://litecoinblockexplorer.net/tx/951f2c087d298548ee99d3da6fefcb77c0c98c9a36f7da26e85dd74395059456

```
$ litecoin-cli getrawtransaction 951f2c087d298548ee99d3da6fefcb77c0c98c9a36f7da26e85dd74395059456
略
```

```
$ litecoin-cli decoderawtransaction 略
{
  "txid": "951f2c087d298548ee99d3da6fefcb77c0c98c9a36f7da26e85dd74395059456",
  "hash": "68e7edf734f03e0c7607c45ea7b551100056e085f1b5344e3626532462304344",
  "version": 2,
  "size": 2224,
  "vsize": 186,
  "weight": 741,
  "locktime": 2280855,
  "vin": [
    {
      "ismweb": false,
      "txid": "dc7805c628e5c86760c91c832e754f8cd7be51421769ad9ef13a554a706144f2",
      "vout": 0,
      "scriptSig": {
        "asm": "0014d4458d8aa4b88981acfeccb96a4a2dbdd3055b4a",
        "hex": "160014d4458d8aa4b88981acfeccb96a4a2dbdd3055b4a"
      },
      "txinwitness": [
        "30440220302f2be968164e14b70ffcace4dc5939e70d09d3faf04c81fa5ef36ebee42ca602207490af27f1815681dfc70e725b0c5ed837469a191b4d8ded40372d7e4825c63401",
        "02e4f757022e3321c006be28900ef036de499f6a03351c4540ca960570fc12952e"
      ],
      "sequence": 4294967294
    }
  ],
  "vout": [
    {
      "ismweb": false,
      "value": 0.00498140,
      "n": 0,
      "scriptPubKey": {
        "asm": "9 53e0aac4af76f84543e340d86a3bc0a35f1f7359f37cbe5aa0859d7ba4c02618",
        "hex": "592053e0aac4af76f84543e340d86a3bc0a35f1f7359f37cbe5aa0859d7ba4c02618",
        "type": "witness_mweb_pegin"
      }
    },
    {
      "ismweb": true,
      "output_id": "2f301f19dc67c88ac70e6d3402704e17092b2b3c7def932f0075e95914675fcf"
    },
    {
      "ismweb": true,
      "output_id": "46faf53b7672c1a9064c8d5fca48050a7d2c0af815a254a94eff924ee595c0cb"
    }
  ],
  "vkern": [
    {
      "kernel_id": "53e0aac4af76f84543e340d86a3bc0a35f1f7359f37cbe5aa0859d7ba4c02618",
      "fee": 0.00003900,
      "pegin": 0.00498140,
      "pegout": [
      ]
    }
  ]
}
```

```
$ litecoin-cli gettransaction 951f2c087d298548ee99d3da6fefcb77c0c98c9a36f7da26e85dd74395059456
{
  "amount": 0.00000000,
  "fee": -0.00005760,
  "confirmations": 0,
  "trusted": true,
  "txid": "951f2c087d298548ee99d3da6fefcb77c0c98c9a36f7da26e85dd74395059456",
  "walletconflicts": [
  ],
  "time": 1655285608,
  "timereceived": 1655285608,
  "bip125-replaceable": "no",
  "details": [
    {
      "address": "ltcmweb1qq0csmz8jqeexeesmjcu5n6tmc593qfkmr32gl4xrqm4sggcczra9jq68ttjew96xgqkw3jjmg0cnz9743cp7x5ev2ep2jzw3u59gvupkf5kk929d",
      "category": "send",
      "amount": -0.00250000,
      "label": "",
      "mweb_out": "46faf53b7672c1a9064c8d5fca48050a7d2c0af815a254a94eff924ee595c0cb",
      "fee": -0.00005760,
      "abandoned": false
    },
    {
      "address": "ltcmweb1qq0csmz8jqeexeesmjcu5n6tmc593qfkmr32gl4xrqm4sggcczra9jq68ttjew96xgqkw3jjmg0cnz9743cp7x5ev2ep2jzw3u59gvupkf5kk929d",
      "category": "receive",
      "amount": 0.00250000,
      "label": "",
      "mweb_out": "46faf53b7672c1a9064c8d5fca48050a7d2c0af815a254a94eff924ee595c0cb"
    }
  ],
  "hex": "略"
}
```

```
$ litecoin-cli getbalance
0.00494240
```

0.005LTCという一つのUTXOを使って、MWEBに0.0025LTCを送ったが、お釣りも含めてMWEBチェーンにPeg-Inされている。

- P2SHに送金(Peg-Out)

```
$ litecoin-cli sendtoaddress MBVrt3kYhmPHbaWkkvcoToU8pEihMe1szY 0.002
89a47c831cf1f28ac9cca42cf960ee72ceb9ef2541315dd23efeef3b4d7797bd
```

https://litecoinblockexplorer.net/search/?q=89a47c831cf1f28ac9cca42cf960ee72ceb9ef2541315dd23efeef3b4d7797bd
↑Explorerでは存在しない

```
$ litecoin-cli getrawtransaction 89a47c831cf1f28ac9cca42cf960ee72ceb9ef2541315dd23efeef3b4d7797bd
略
```

```
litecoin-cli decoderawtransaction 略
{
  "txid": "89a47c831cf1f28ac9cca42cf960ee72ceb9ef2541315dd23efeef3b4d7797bd",
  "hash": "89a47c831cf1f28ac9cca42cf960ee72ceb9ef2541315dd23efeef3b4d7797bd",
  "version": 2,
  "size": 1334,
  "vsize": 32,
  "weight": 128,
  "locktime": 2280857,
  "vin": [
    {
      "ismweb": true,
      "output_id": "2f301f19dc67c88ac70e6d3402704e17092b2b3c7def932f0075e95914675fcf"
    }
  ],
  "vout": [
    {
      "ismweb": true,
      "output_id": "b46a712f325da4f385053840cbd86817f3356e4ea225580751e4349b1cd4e5c8"
    }
  ],
  "vkern": [
    {
      "kernel_id": "bd97774d3beffe3ed25d314125efb9ce72ee60f92ca4ccc98af2f11c837ca489",
      "fee": 0.00002520,
      "pegin": 0.00000000,
      "pegout": [
        {
          "value": 0.00200000,
          "scriptPubKey": {
            "asm": "OP_HASH160 277873a81cfb1fbadd9a842a7525d5089b683d8d OP_EQUAL",
            "hex": "a914277873a81cfb1fbadd9a842a7525d5089b683d8d87",
            "reqSigs": 1,
            "type": "scripthash",
            "addresses": [
              "MBVrt3kYhmPHbaWkkvcoToU8pEihMe1szY"
            ]
          }
        }
      ]
    }
  ]
}
```

```
$ litecoin-cli gettransaction 89a47c831cf1f28ac9cca42cf960ee72ceb9ef2541315dd23efeef3b4d7797bd
{
  "amount": -0.00200000,
  "fee": -0.00002520,
  "confirmations": 0,
  "trusted": true,
  "txid": "89a47c831cf1f28ac9cca42cf960ee72ceb9ef2541315dd23efeef3b4d7797bd",
  "walletconflicts": [
  ],
  "time": 1655285982,
  "timereceived": 1655285982,
  "bip125-replaceable": "no",
  "details": [
    {
      "address": "MBVrt3kYhmPHbaWkkvcoToU8pEihMe1szY",
      "category": "send",
      "amount": -0.00200000,
      "fee": -0.00002520,
      "abandoned": false
    }
  ],
  "hex": "略"
}
```

```
$ litecoin-cli getbalance
0.00291720
```

オンチェーンではLitecoindで実行したときのMWEBのTXとtx_idが変更になっている

https://litecoinblockexplorer.net/tx/f3d85fb6f7088f876ee8efef1ada92cba2bb622cf36f3e80f69629e7c1bf628c
Explorerには存在する

```
$ litecoin-cli gettransaction f3d85fb6f7088f876ee8efef1ada92cba2bb622cf36f3e80f69629e7c1bf628c
error code: -5
error message:
Invalid or non-wallet transaction id
```

```
$ litecoin-cli getrawtransaction f3d85fb6f7088f876ee8efef1ada92cba2bb622cf36f3e80f69629e7c1bf628c
02000000000801182242ca34dad5c2346385c364b1de7648b403d1b10ff89acc308fd23cb73f8e0000000000ffffffff026afdb35d2300000022582087390e3f2cac8ea0c4361c929706914b1a54343a6b8309eea8e41538a714c2ae400d03000000000017a914277873a81cfb1fbadd9a842a7525d5089b683d8d870000000000
```

```
$ litecoin-cli decoderawtransaction 02000000000801182242ca34dad5c2346385c364b1de7648b403d1b10ff89acc308fd23cb73f8e0000000000ffffffff026afdb35d2300000022582087390e3f2cac8ea0c4361c929706914b1a54343a6b8309eea8e41538a714c2ae400d03000000000017a914277873a81cfb1fbadd9a842a7525d5089b683d8d870000000000
{
  "txid": "f3d85fb6f7088f876ee8efef1ada92cba2bb622cf36f3e80f69629e7c1bf628c",
  "hash": "f3d85fb6f7088f876ee8efef1ada92cba2bb622cf36f3e80f69629e7c1bf628c",
  "version": 2,
  "size": 129,
  "vsize": 126,
  "weight": 504,
  "locktime": 0,
  "vin": [
    {
      "ismweb": false,
      "txid": "8e3fb73cd28f30cc9af80fb1d103b44876deb164c3856334c2d5da34ca422218",
      "vout": 0,
      "scriptSig": {
        "asm": "",
        "hex": ""
      },
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "ismweb": false,
      "value": 1518.95932266,
      "n": 0,
      "scriptPubKey": {
        "asm": "8 87390e3f2cac8ea0c4361c929706914b1a54343a6b8309eea8e41538a714c2ae",
        "hex": "582087390e3f2cac8ea0c4361c929706914b1a54343a6b8309eea8e41538a714c2ae",
        "type": "witness_mweb_hogaddr"
      }
    },
    {
      "ismweb": false,
      "value": 0.00200000,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_HASH160 277873a81cfb1fbadd9a842a7525d5089b683d8d OP_EQUAL",
        "hex": "a914277873a81cfb1fbadd9a842a7525d5089b683d8d87",
        "reqSigs": 1,
        "type": "scripthash",
        "addresses": [
          "MBVrt3kYhmPHbaWkkvcoToU8pEihMe1szY"
        ]
      }
    }
  ]
}
```

`"type": "witness_mweb_hogaddr"`とあるので、MWEBからの入金は判別可能

MWEB Peg-out TX送金を実行したノードとは別のノード(MWEB有効化のv0.21.2)でMWEB Peg-out TXを検索するもない
```
$ litecoin-cli getrawtransaction 89a47c831cf1f28ac9cca42cf960ee72ceb9ef2541315dd23efeef3b4d7797bd
error code: -5
error message:
No such mempool or blockchain transaction. Use gettransaction for wallet transactions.
```