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

Embed: add url parameters #334

Closed
kilrau opened this issue Nov 22, 2023 · 3 comments · Fixed by #547
Closed

Embed: add url parameters #334

kilrau opened this issue Nov 22, 2023 · 3 comments · Fixed by #547
Assignees
Labels
enhancement New feature or request P2

Comments

@kilrau
Copy link
Member

kilrau commented Nov 22, 2023

URL parameters (all optional, we default):

  • pairID: (default: BTC/BTC)
  • type: (default: reversesubmarine)
  • bip21: Overwrites parameters above the same way web app swap box does. We only need address & optional amount. Let's not forget liquidnetwork:
  • invoice: overwrites parameters above. (no default)
  • referral: partner referral id (default: boltz_webapp_embed)
  • css: style sheet for swap box customization

Originally posted by @kilrau in #328 (comment)

@kilrau kilrau added enhancement New feature or request P2 labels Nov 22, 2023
@kilrau kilrau changed the title Embed: add url parameters embed: add url parameters Nov 23, 2023
@kilrau kilrau mentioned this issue Dec 13, 2023
@kilrau kilrau changed the title embed: add url parameters Embed: add url parameters Dec 22, 2023
dni added a commit that referenced this issue Mar 31, 2024
closes #334

adds invoice, address, asset, sendAmount, receiveAmount
@tohrxyz
Copy link

tohrxyz commented Aug 12, 2024

@kilrau hey, is this restricted for iframe embeds or can i use this somehow to make a URL that would pre-fill values?

like let's say i want to have lightning -> l-btc with destination address prefilled from url ?

is this possible?

@dni
Copy link
Member

dni commented Aug 13, 2024

yes, this should be possible! working on it

dni added a commit that referenced this issue Aug 13, 2024
closes #334

adds invoice, address, asset, sendAmount, receiveAmount
dni added a commit that referenced this issue Aug 13, 2024
closes #334

adds invoice, address, asset, sendAmount, receiveAmount
@dni
Copy link
Member

dni commented Aug 13, 2024

i have created an example page for embedding where you can see which is currently possible. https://dni.github.io/boltz-webapp-embed/

with this branch #547

michael1011 pushed a commit that referenced this issue Aug 15, 2024
closes #334

adds invoice, address, asset, sendAmount, receiveAmount
michael1011 pushed a commit that referenced this issue Aug 15, 2024
closes #334

adds invoice, address, asset, sendAmount, receiveAmount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants