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

Create signed atomic swap transaction object ready to be published #16

Closed
trojkat opened this issue Jan 29, 2018 · 0 comments
Closed

Create signed atomic swap transaction object ready to be published #16

trojkat opened this issue Jan 29, 2018 · 0 comments
Assignees
Labels

Comments

@trojkat
Copy link
Contributor

trojkat commented Jan 29, 2018

>> my_address = 'mg9sDLhfByfAWFo4zq3JZ7nsLfsN59XPue'
>> bob_btc_address = 'n31og5QGuS28dmHpDH6PQD5wmVQ2K2spAG'
>> outpoints = [
    {
        'txid':'fdb89b980168f04cd52f6044d210a3bc37788ea26133bd74deabfa0272e06d29',
        'vout': 2,
        'value': 0.02,
        'scriptPubkey': 'g617578ac49adb77442fdbb454812bca43f324c9931d93',
    },
    {
        'txid':'abf1a090b046001f31cfacdc1db064eeb465863698c13a7a7b1f5acdf234804a',
        'vout': 0,
        'value': 0.05,
        'scriptPubkey': 'a91432d272ce8a9b482b363408a0b1dd28123d59c63387',
    },
]
>> btc_swap = btc_network.initiate_atomic_swap(sender_address=my_address, recipient_address=bob_btc_address, value=1, outpoints=outpoints, private_key='xxx')
>> btc_swap.sign(private_key, passphrase)
@trojkat trojkat added the task label Jan 29, 2018
@trojkat trojkat added this to the BTC based atomic swap milestone Jan 29, 2018
@trojkat trojkat self-assigned this Jan 29, 2018
trojkat added a commit that referenced this issue Jan 29, 2018
trojkat added a commit that referenced this issue Jan 29, 2018
StuartFarmer added a commit that referenced this issue Jan 29, 2018
trojkat added a commit that referenced this issue Jan 30, 2018
trojkat added a commit that referenced this issue Jan 30, 2018
trojkat added a commit that referenced this issue Jan 30, 2018
trojkat added a commit that referenced this issue Jan 31, 2018
trojkat added a commit that referenced this issue Jan 31, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
trojkat added a commit that referenced this issue Feb 1, 2018
szerepak pushed a commit that referenced this issue Feb 1, 2018
@trojkat trojkat closed this as completed Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant