Skip to content

build funding transaction for direct parent-child inscriptions #73

@dannybabbev

Description

@dannybabbev

User story:
User signs with their wallet a transaction that sends the inscription id and a payment amount to fund the direct inscription costs produced by the /inscribe endpoint with parent/child enabled. The sending of the parent and the paying of the inscription fees happens in a single transaction to optimize the costs.

Requirements:

  • create new method that takes inscription ids, bitcoin payment amount and receive addresses for inscriptions and btc amount
  • connect to the browser wallet: xverse, leather, etc.
  • verify the inscription id is inside
  • verify that the user has the requested amount of btc
  • build a transaction that sends the BTC amount as the first output and the inscription as the second
  • sign with wallet
  • broadcast tx
  • method has to be flexible such that we can send multiple inscription ids at once.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions