Related eBooks
{
    "hash": "294cd7a971fe26788ca58fd9a263d7811da8688da0d86717619f629e8a0b361f",
    "version": 1,
    "inputs": [
        {
            "prevTxId": "9c3c7448ad00402d69214d9a68386464379337262d8807781c9d9770d82dd5bc",
            "outputIndex": 1,
            "sequenceNumber": 4294967293,
            "script": "47304402206741776f093606084946d0bd1d3a471b34703e6fb8d0d6afd2b7a947b4bbc716022016edb10fd8375d4803288b0f91deeaf25cb4bac653e6d8002ca7ffe7ebd52e420121027acde620aff9f39fe14a636d1f0bcbcdd7418847f669039cc7b462bde8152f21",
            "scriptString": "71 0x304402206741776f093606084946d0bd1d3a471b34703e6fb8d0d6afd2b7a947b4bbc716022016edb10fd8375d4803288b0f91deeaf25cb4bac653e6d8002ca7ffe7ebd52e4201 33 0x027acde620aff9f39fe14a636d1f0bcbcdd7418847f669039cc7b462bde8152f21",
            "output": {
                "satoshis": 10100000000000,
                "script": "76a9143468e08da34902886e61ca8e9fea76e9f46b566d88ac"
            }
        }
    ],
    "outputs": [
        {
            "satoshis": 200000000,
            "script": "76a91459533bb0b684c675306425fc2c60c1c164b2892f88ac"
        },
        {
            "satoshis": 10099798000000,
            "script": "76a9143468e08da34902886e61ca8e9fea76e9f46b566d88ac"
        }
    ],
    "nLockTime": 0,
    "changeScript": "OP_DUP OP_HASH160 20 0x3468e08da34902886e61ca8e9fea76e9f46b566d OP_EQUALVERIFY OP_CHECKSIG",
    "changeIndex": 1,
    "fee": 2000000
}

bad-txns-inputs-missingorspent it returns to me with this error. What could be wrong with this tx?

   var utxo = {
       "txId": nanoid2(),
       "outputIndex": 1,
       "address": localStorage.getItem("address"),
       "script": scriptpubkey,
       "satoshis": 10100000000000,
   };

   var transaction = new bitcore.Transaction()
       .from(utxo)
       .to(addressSend, amount)
       .fee(2000000)
       .change(addressOwn)
       .sign(privateKey);

   console.log(transaction);

fee and satoshi part is correct this not for bitcoin but based of bitcoin fork.

source

By pplny

답글 남기기

이메일 주소는 공개되지 않습니다.

Translate »