---
title: "transactions | pypx"
description: "transactions: Bitcoin for Humans"
canonical_url: "https://pypx.app/packages/TRANSACTIONS"
meta:
  "og:description": "transactions: Bitcoin for Humans"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_transactions%2Cversion_0.2.0%2Csummary_~dHJhbnNhY3Rpb25zOiBCaXRjb2luIGZvciBIdW1hbnM%2Clicense_Apache%2BSoftware%2BLicense%2Cp_Ii9wYWNrYWdlcy9UUkFOU0FDVElPTlMi%2Cs_XHsTozd_Zlfs4M2f.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "transactions 0.2.0"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_transactions%2Cversion_0.2.0%2Csummary_~dHJhbnNhY3Rpb25zOiBCaXRjb2luIGZvciBIdW1hbnM%2Clicense_Apache%2BSoftware%2BLicense%2Cp_Ii9wYWNrYWdlcy9UUkFOU0FDVElPTlMi%2Cs_XHsTozd_Zlfs4M2f.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **transactions**

v0.2.0

transactions: Bitcoin for Humans

10 KBApache Software License Likely Unmaintained

[** Diff **](https://pypx.app/packages/transactions/diff)

`$ uv add transactions`

# transactions: Bitcoin for Humans

transactions is a small python library to easily create and push transactions to the bitcoin network.

## Installation

```bash
$ pip install transactions
```

## Examples

Assuming the following cast of characters:

```python
>>> alice = 'mhyCaF2HFk7CVwKmyQ8TahgVdjnHSr1pTv'
>>> bob = 'mqXz83H4LCxjf2ie8hYNsTRByvtfV43Pa7'
>>> carol = 'mtWg6ccLiZWw2Et7E5UqmHsYgrAi5wqiov'
```

Moving 10000 satoshis from alice to bob:

```python
>>> from transactions import Transactions
>>> transactions = Transactions(testnet=True)
>>> tx = transactions.create(alice, (bob, 10000))
>>> tx_signed = transactions.sign(tx, 'alice master secret')
>>> transactions.push(tx_signed)
```

Moving 600 satoshis from bob to carol with a custom op\_return:

```python
>>> tx = transactions.create(bob, (carol, 600), op_return='HELLOFROMASCRIBE')
>>> tx_signed = transactions.sign(tx, 'bob master secret')
>>> transactions.push(tx_signed)
```

Check it out [fbbd6407b8fc73169918b2fce7f07aff6a486a241c253f0f8eeb942937fbb970](https://www.blocktrail.com/tBTC/tx/fbbd6407b8fc73169918b2fce7f07aff6a486a241c253f0f8eeb942937fbb970)

With transactions all amounts are in satoshi and we currently only support `BIP32`\_ wallets (hierarchical deterministic wallets, aka "HD Wallets").

## Documentation

https://transactions.readthedocs.org/

## Contributing

Pull requests, feedback, and suggestions are welcome. [Issues](https://github.com/ascribe/transactions/issues) and [pull requests](https://github.com/ascribe/transactions/pulls) are handled via github.

## Background

This was developed by ascribe GmbH as part of the overall ascribe technology stack. https://www.ascribe.io

## Copyright

This code is © 2015 ascribe GmbH.

Licensed under the Apache License, Version 2.0.

## **Details **

<dl>

<dt>Version</dt>
<dd>0.2.0</dd>

<dt>License</dt>
<dd>Apache Software License</dd>

<dt>Maintainer</dt>
<dd>Rodolphe Marques</dd></dl>

## **Links**

- [Homepage](https://github.com/ascribe/transactions)
- [View on PyPI](https://pypi.org/project/transactions/)

## **Maintainers **

- Rodolphe Marques · [rodolphe@ascribe.io](mailto:rodolphe@ascribe.io)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/transactions#webpage","@type":"WebPage","description":"transactions: Bitcoin for Humans","name":"transactions","url":"https://pypx.app/packages/transactions","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/transactions"]}]},{"@id":"https://pypx.app/packages/transactions#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"transactions: Bitcoin for Humans","license":"Apache Software License","name":"transactions","softwareVersion":"0.2.0"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
