This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import sys, os, base64, argparse | |
def get_cli_args(): | |
ap = argparse.ArgumentParser(description="Parse and output the ordinal inscription inside transaction") | |
if sys.stdin.isatty(): | |
ap.add_argument("tx_file", help="input raw transaction file") | |
ap.add_argument("-du", "--data-uri", action="store_true", help="print inscription as data-uri instead of writing to a file") |