Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16: bad-txns-inputs-duplicate. Code:-26 #4

Open
rohitsahu21 opened this issue Oct 1, 2019 · 2 comments
Open

16: bad-txns-inputs-duplicate. Code:-26 #4

rohitsahu21 opened this issue Oct 1, 2019 · 2 comments

Comments

@rohitsahu21
Copy link

Raw Transaction: 0100000002cf29933ead0786713e5701ad0db5d7969fd06bb6c84cbcf177ec8dbc8e117c02000000006a47304402205be6999ae4e2c1ebd9fb36ba5b64f9b6abdf8ab53a539fa6df77d9567cfda5c30220388e3d3adb8acdd7f04dd1e79bbf9490c9dce2fb36d953ea006a1d4506973ca1012102123f4de9834a36dcd77426c730db96877058546cc92657c4c2c3ced5e8eb9bc7ffffffffcf29933ead0786713e5701ad0db5d7969fd06bb6c84cbcf177ec8dbc8e117c02000000006a473044022025eeccc3d240966728980b392eb4a902372c3d044b4c3543ec3a033dff3148ec02200602ff825fea6abe30f0bcb97214f3d4ba3782efc9424e6d61fc18068023c982012102123f4de9834a36dcd77426c730db96877058546cc92657c4c2c3ced5e8eb9bc7ffffffff02c0c62d00000000001976a9141d1d2262adbcd05e0e425f12b998c8b2d78ebff788aca074bc0b000000001976a914847ed4b299d22d5f47eb3fd693cf8451e6c010dc88ac00000000

@riordant
Copy link

riordant commented Oct 1, 2019

You are using the same input twice.

@rohitsahu21
Copy link
Author

function getUTXOs(address) { return new Promise((resolve, reject) => { request({ uri: https://testexplorer.zcoin.io/api/addr/${address}/utxo`,
// uri: https://insight.zcoin.io/api/addr/${address}/utxo,
json: true
},
(error, response, body) => {
if (error) reject(error);
resolve(body)
}
)
})
}`

Output:-
[ { address: 'TN3n8k2HwVg1X1Qkp6TdzQ1chQv17BkA6C',
txid:
'd65431ead11117739865db312f4eaaf5850cebf8972b9229e84799376e20e896',
vout: 1,
scriptPubKey: '76a914847ed4b299d22d5f47eb3fd693cf8451e6c010dc88ac',
amount: 1,
satoshis: 100000000,
confirmations: 0,
ts: 1569915707 },
{ address: 'TN3n8k2HwVg1X1Qkp6TdzQ1chQv17BkA6C',
txid:
'027c118ebc8dec77f1bc4cc8b66bd09f96d7b50dad01573e718607ad3e9329cf',
vout: 0,
scriptPubKey: '76a914847ed4b299d22d5f47eb3fd693cf8451e6c010dc88ac',
amount: 1,
satoshis: 100000000,
confirmations: 0,
ts: 1569915033 },
{ address: 'TN3n8k2HwVg1X1Qkp6TdzQ1chQv17BkA6C',
txid:
'd65431ead11117739865db312f4eaaf5850cebf8972b9229e84799376e20e896',
vout: 1,
scriptPubKey: '76a914847ed4b299d22d5f47eb3fd693cf8451e6c010dc88ac',
amount: 1,
satoshis: 100000000,
height: 89887,
confirmations: 322 },
{ address: 'TN3n8k2HwVg1X1Qkp6TdzQ1chQv17BkA6C',
txid:
'027c118ebc8dec77f1bc4cc8b66bd09f96d7b50dad01573e718607ad3e9329cf',
vout: 0,
scriptPubKey: '76a914847ed4b299d22d5f47eb3fd693cf8451e6c010dc88ac',
amount: 1,
satoshis: 100000000,
height: 89882,
confirmations: 327 } ] '---UTXO---'

Then what i do if api return duplicate inputs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants