Transactions
在哪裡可以找到簽名交易中發送的金額?
我正在查看我剛剛為 USDT 簽署的交易,然後我對其進行解碼以將內容與我的原始地址和金額進行比較。只是要小心。
我找到了數據發送到的地址,
vout[1].addresses[0].
我現在想看看我發送的金額在哪裡,以及它是否與我預期的相同。{ "txid": "42aaf04994f7123470e8c7aff2a7fd2341b2b3d648d5839c4023432fc12cfbe", "hash": "42aaf04994f7123472342324f2a7fd467123445d2342d58235235345212cfbe", "version": 2, "size": 405, "vsize": 405, "weight": 1620, "locktime": 0, "vin": [ { "txid": "7f589c98b41292d2180a33eac21ab7f1235456ebfd8c897305793bb793182534", "vout": 1, "scriptSig": { "asm": "3045022100afcd667212334568ae54e1b6e555fc756cce228923a809939382ce2d7e99d778022058a62ecf394cafb4b52ba7e1d49d543a1edef2134190f88773a30a11ef8f20b[ALL] 023b976783e66fbdc15e96954278d194829ce15735c99a11af7d6d56aae070c728", "hex": "483045022100afcd6671234567f8ae54e1b6e555fc756cce228923a809939382ce2d7e99d778022058a62ecf394cafb4b52ba7e1d49d543a1edef94897690f88773a30a11ef8f20b0121023b976783e66fbdc15e96954278d194829ce15735c99a11af7d6d56aae070c728" }, "sequence": 4294967295 }, { "txid": "4f7dee045e338f0e68ad35dd98e1d1a07fac5d63f912e09f9c9cf88fea5fb7eb", "vout": 2, "scriptSig": { "asm": "3045022100f4af4fa80e2134cf84d87a42c14945717adf50b1cf0b75baafd821cb938bb02b0220061b806f0350ff9e0b20d06fce1ed35cc2fb1234569c321e4b96c479dbc5688[ALL] 023b976783e66fbdc15e96954278d194829ce15735c99a11af7d6d56aae070c728", "hex": "483045022100f4af4fa80e2134cf84d87a42c14945717adf50b1cf0b75baafd821cb938bb02b0220061b806f0350ff9e0b20d06fce1ed35cc2123456c549c321e4b96c479dbc56880121023b976783e66fbdc15e96954278d194829ce15735c99a11af7d6d56aae070c728" }, "sequence": 4294967295 } ], "vout": [ { "value": 0, "n": 0, "scriptPubKey": { "asm": "OP_RETURN 6f6d6e69000000000000001f0000000006052340", "hex": "6a146f6d1234780000000000001f0000000006052340", "type": "nulldata" } }, { "value": 0.00000546, "n": 1, "scriptPubKey": { "asm": "OP_DUP OP_HASH160 7a8cb455ccb12345617396cce512c37134d72369 OP_EQUALVERIFY OP_CHECKSIG", "hex": "76a9147a8cb455c1234561617396cce512c37134d7236988ac", "reqSigs": 1, "type": "pubkeyhash", "addresses": [ "1CAyzih1V3nhx98STVq7Jdya88VY4Bkna6" ] } }, { "value": 0.00042535, "n": 2, "scriptPubKey": { "asm": "OP_DUP OP_HASH160 c4d18aa08bcdcabd245a7f183e09ca712c6c83b OP_EQUALVERIFY OP_CHECKSIG", "hex": "76a914c4d18aa08bcdca89357aa7f183e09ca712c6c3b88ac", "reqSigs": 1, "type": "pubkeyhash", "addresses": [ "1JwgTpJPZ2WtsZvoo6EsstdB9jNnhJxERB" ] } } ] }
這是簽署的交易。我打算發送的金額是 1.01,但我看不到任何地方只有 vout[1]、vout[2] 和重量中的隨機值。誰能指導我在哪裡找到這個值或如何重新創建它?也許重量是我在 USDT Omni 中發送的金額的美元價值?
任何指導將不勝感激。
比特幣區塊鏈上的 USDT 使用 Omni 層,該層對 OP_RETURN 輸出中的數據進行編碼。在您的交易中,金額為
0000000006052340
,即 的十六進制數101000000
。Omni 的精度為 8,因此您可以將其除以 10^8 得到1.01
.