MetacoSA / QBitNinja

An Open Source and powerful blockchain API
MIT License
68 stars 42 forks source link

Send Money Issue #88

Open john-bal opened 5 years ago

john-bal commented 5 years ago

Greetings, i have already develop the functions that sends money between addresses (as explained in the tutorials) and it worked fine on the testnet. i tried to transfer money from one REAL address (which has unspent balance in it) to another address after changing the network to real. It doesn't generate any exceptions even it generates a transaction hash, but it doesn't transfer anything ! the generated transaction hash on the blockchain is invalid !

NicolasDorier commented 5 years ago

what code do you use?

john-bal commented 5 years ago

var Response = Client_QBitNinja.Broadcast(Transaction_This).Result; //Check success if (Response.Success) { return true; } else { throw new Exception("Error broadcasting transaction " + Response.Error.ErrorCode + " : " + Response.Error.Reason); }

Which doesn't generate any exception !! returns success, but doresn't send . Now there is a strange issue about the following particular Bitcoin address: 13GBouVtBC56w7HT4ACR1qp67NUuMQvSea it was created before few days , BUT there is a deposit transaction in it on 2018-08-17 ??!!!! STRANGE.

NicolasDorier commented 5 years ago

Run Transaction_This.ToHex(), copy the hex, and try to broadcast on https://www.smartbit.com.au/txs/pushtx it is possible that qbitninja does not work correctly right now.

NicolasDorier commented 5 years ago

13GBouVtBC56w7HT4ACR1qp67NUuMQvSea how did you generated that?

john-bal commented 5 years ago

I have generated it using the c# code: Key_Raw_Prrivate = new Key(); Bitcoin_PrivateKey = Key_Raw_Prrivate.GetWif(Network_Current); Bitcoin_PublicKey = Bitcoin_PrivateKey.GetAddress(); if qbitninja causing problems , is there any alternative in c# ?

NicolasDorier commented 5 years ago

@john-bal if this address got generated by this code, we have a serious problem. I think you copy pasted this address from somewhere else or I don't know. I doubt it is a bug, or somebody would have discovered it long ago.

Can you generate it again?