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

Rune balance and issuance CLI #2588

Closed
wants to merge 2 commits into from

Conversation

utxo-detective
Copy link

@utxo-detective utxo-detective commented Oct 25, 2023

Screen Shot 1402-08-03 at 14 57 22

This PR adds a new subcommand ord runes. I used the cli to create a couple of runes on signet to start experimenting with the indexer. The transaction creation is very basic and should not be used on mainnet. I ran into problems using the transaction builder as it did not support arbitrary op_return scripts in the tx_out, so i kept it simple to avoid modifying any transaction building logic

command: ord runes

Usage: ord runes <COMMAND>

Commands:
  issue    Issue a rune
  balance  Get rune balance
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

command: ord runes issue

Issue a rune

Usage: ord runes issue --amount <AMOUNT> --name <NAME> --divisibility <DIVISIBILITY>

Options:
      --amount <AMOUNT>              Amount to cast
      --name <NAME>                  Rune name
      --divisibility <DIVISIBILITY>  Divisibility
  -h, --help                         Print help

command: ord runes balance

[
  {
    "name": "A",
    "amount": "69420"
  },
  {
    "name": "RUNE",
    "amount": "21000000"
  }
]
Screen Shot 1402-08-03 at 14 57 30 Screen Shot 1402-08-03 at 14 57 26

@casey
Copy link
Collaborator

casey commented Oct 30, 2023

Thank you for the PR! Just FYI, we probably won't be able to get to this right away, since we're grappling with index performance issues for a bit.

@casey
Copy link
Collaborator

casey commented Nov 29, 2023

Sorry to close this, but I finished the PR I opened on Oct 15, #2544. #2544 uses the fundrawtransaction interface to fund the transaction, so we don't need to perform manual utxo selection and signing, avoids spending runic UTXOs in send and inscribe, and adds a whole bunch of tests.

@casey casey closed this Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants