https://github.com/scottroot/python-arweave-unbundlr
Simple single-file script for quickly unbundling Arweave bundled transactions. For dev/research use
https://github.com/scottroot/python-arweave-unbundlr
ans-104 arweave bundles bundlr unbundle
Last synced: 8 months ago
JSON representation
Simple single-file script for quickly unbundling Arweave bundled transactions. For dev/research use
- Host: GitHub
- URL: https://github.com/scottroot/python-arweave-unbundlr
- Owner: scottroot
- License: gpl-3.0
- Created: 2023-07-30T05:45:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T06:43:24.000Z (almost 3 years ago)
- Last Synced: 2025-10-12T23:39:10.308Z (8 months ago)
- Topics: ans-104, arweave, bundles, bundlr, unbundle
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Unbundler Script for Arweave Bundles
Simple single-file script for quickly unbundling Arweave bundled transactions. For dev/research use
#### What it is
For quickly investigating bundle contents, research on ANS104, or just working with use cases involving read-only bundle tasks.
#### What it's not
This script does not include TX validation and does not create bundles, transactions or any other write-activity -- It is merely read-only.
This is in no way intended for any type of production use. This is just a simple tool to quickly and programmatically look up the contents of bundles when needed.
### Example usage
No CLI implemented - use the script on its own within your own.
#### Args
*unbundl(tx_id, block_height=None, timestamp=None)*
- tx_id
- Arweave transaction ID for the bundled tx
- block_height (optional)
- block height of the transaction
- timestamp (optional)
- block timestamp of the transaction
```py
contents = unbundl("vheA1irdCdDqgowoJkLcpAAk5J0KDMJpr783eYrx-jg", block_height=1230139)
json.dumps(contents, indent=4)
# Returns >>
# [
# {
# "signatureType": "ARWEAVE",
# "_id": "vklyH0wLm3Wk6QXEU6_IZGhwj1Vt3bKZeqdSpysCpso",
# "bundled_in": "vheA1irdCdDqgowoJkLcpAAk5J0KDMJpr783eYrx-jg",
# "block_height": 1230139,
# "tx_pos": 0
# "owner": "I-5rWUehEv-MjdK9gFw09RxfSLQX9DIHxG614Wf8qo0=",
# "tags": {
# "type": "redstone-oracles",
# "timestamp": "1690659770",
# "dataserviceid": "redstone-avalanche-prod",
# "signeraddress": "0x83cbA8c619fb629b81A65C2e67fE15cf3E3C9747",
# "datafeedid": "TJ_AVAX_USDC_LP"
# }
# },
# ...
# ]
```