18: bad-txns-inputs-spent
"Vin": [
        {
            "TxId": "ed34d4d2b9953a4ef585a13454a00501783675752b640b8cc68235afe5495498",
            "Vout": "1",
            "ScriptSig": {
                "Asm": "3045022100aa4cfe7482c52e961b617658d8029b524f8fe2a33ae3a4acd1d4f46684e8703f022077db4cd5b21413761b44e5511ddb45a91f2cbff52537677c2703a6f1f2cea6e4[ALL] 02763d72701702a421c464eb3a8dad8bd653d5fc2bddd1b08f1563d14952fda861",
                "Hex": "483045022100aa4cfe7482c52e961b617658d8029b524f8fe2a33ae3a4acd1d4f46684e8703f022077db4cd5b21413761b44e5511ddb45a91f2cbff52537677c2703a6f1f2cea6e4012102763d72701702a421c464eb3a8dad8bd653d5fc2bddd1b08f1563d14952fda861"
            },
            "CoinBase": null,
            "TxInWitness": null,
            "Sequence": "4294967295"
        },


If you go to https://blockstream.info/testnet/tx/ed34d4d2b9953a4ef585a13454a00501783675752b640b8cc68235afe5495498?expand and see the output #1, you'll see that it's an unspendable OP_RETURN output. Remember that TX Outputs are zero indexed, so maybe you're trying to spend "Vout": "0"?

That ScriptSig matches perfectly with output #0. Just change the Vout field of first Vin as I said above. The second input is also okay.

In other words,

   "Vin": [
        {
            "TxId": "ed34d4d2b9953a4ef585a13454a00501783675752b640b8cc68235afe5495498",
            "Vout": "1",
            "ScriptSig": {


should be

   "Vin": [
        {
            "TxId": "ed34d4d2b9953a4ef585a13454a00501783675752b640b8cc68235afe5495498",
            "Vout": "0",
            "ScriptSig": {