Skip to content

Comments

Adding support for Bitcoin Payments and Requests#19

Open
icebaker wants to merge 4 commits intomainfrom
ib-btc-requests
Open

Adding support for Bitcoin Payments and Requests#19
icebaker wants to merge 4 commits intomainfrom
ib-btc-requests

Conversation

@icebaker
Copy link
Owner

@icebaker icebaker commented Apr 2, 2023

Lighstorm::Bitcoin::Request.decode(
  'bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=50&label=Luke-Jr&message=Donation%20for%20project%20xyz'
)

action = Lighstorm::Bitcoin::Address.new(
  code: 'bcrt1qq5gl3thf4ka93eluz0guweek9vmeyqyrck3py2'
).pay(
  amount: { millisatoshis: 500_000_000 },
  fee: { satoshis_per_vitual_byte: 1 },
  description: 'Wallet Withdrawal',
  required_confirmations: 6
)

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.

1 participant