bit icon indicating copy to clipboard operation
bit copied to clipboard

send bitcoin using single to multisig error

Open leiradk opened this issue 7 years ago • 6 comments

this is my address 15vMMXtLJ8EHEv7rxjAfNuDem9UzHcTi6a then I suppose to send sample 3QiDnqgAyXTdagGeAjjLa6DPdTiSpznj41 it say image

any help :(

leiradk avatar Sep 28 '18 14:09 leiradk

Can you fetch unspent outputs by calling my_key.get_unspents() prior to sending with my_key.send(outputs)?

bjarnemagnussen avatar Sep 28 '18 14:09 bjarnemagnussen

I fetch its zero. when I get_balance() it has a balance

leiradk avatar Oct 01 '18 17:10 leiradk

Example my_key = Key("pkey") my_key.get_balance('btc') # it has a balance my_key.get_unspent() # it has also wifkey = PrivateKeyTestnet(my_key.to_wif())

wifkey.get_balance('btc') # zero balance

I'm newbie about this cryptocurrency

and based on my research it will be differs to mainnet or testnet type of address?

I supposed to send a coint to multisig to my normal addresss which is 1rmree..... and soon.

It will not allow me to send to multisig. may I know what is better way of doing this stuff?

leiradk avatar Oct 01 '18 17:10 leiradk

Hi @leiradk,

It is fine to be a newbie, but you don't need to format your text in such big letters as it is very difficult to read!

I don't understand what the output is when you run my_key.get_unspents()? Does it show the unspents? It should show the following: [Unspent(amount=16956, confirmations=680, script='76a91435f78a2f117d759a2ce942c85ea7d632ececb9d588ac', txid='661ac8022f861cdefbde3f438d60b196c92c23f4e8635a2cdf446b89e0a9965c', txindex=1, segwit=False), Unspent(amount=1000, confirmations=680, script='76a91435f78a2f117d759a2ce942c85ea7d632ececb9d588ac', txid='661ac8022f861cdefbde3f438d60b196c92c23f4e8635a2cdf446b89e0a9965c', txindex=0, segwit=False)]

Could you also try to call my_key.create_transaction(outputs) and show what it outputs?

bjarnemagnussen avatar Oct 01 '18 17:10 bjarnemagnussen

still the same in my first post that was the output

leiradk avatar Oct 01 '18 17:10 leiradk

Are you trying to send from mainnet (Key) or testnet (PrivateKeyTestnet)? Because on testnet your address may be empty and therefore it cannot send any funds. Mainnet and testnet are completely separate and independent from each other.

bjarnemagnussen avatar Oct 02 '18 07:10 bjarnemagnussen