6 Deeplinking
Overtorment edited this page 2020-12-14 19:13:32 +00:00

Deeplinking schemes supported in BlueWallet

scheme bluewallet:

action openlappbrowser

Opens first available Lightning wallet, opens its Lapp browser and redirects it to specified URL. If not LN wallet exists - wallet is first created (this allows to onboard users to LN and send them some satoshi upon visit, for example)

Params:

  • url - urlencoded link to a webpage

Example: bluewallet:openlappbrowser?url=https%3A%2F%2Fsat2.io%2F

action setlndhuburl

Params:

  • url - urlencoded URL for LNDHub, for example https://lndhub.herokuapp.com

Example: bluewallet:setlndhuburl?url=https%3A%2F%2Flndhub.herokuapp.com

action setelectrumserver

Params:

  • server - urlencoded server string in format host:port:type

Example: bluewallet:setelectrumserver?server=electrum1.bluewallet.io%3A443%3As

safello flow

we redirect user to https://app.safello.com/sdk/quickbuy.html?appId=TOKEN&theme=bluewallet&layout=app&address=ADDRESS

where address is BW onchain address

when user is done in the app they deeplink back to bluewallet:?safello-state-token=TOKEN which opens webview and finalizes transaction. and its done. bitcoins are sent

scheme bitcoin:

As described in BIP21, for example bitcoin:bc1qh6tf004ty7z7un2v5ntu4mkf630545gvhs45u7?amount=666&label=Yo

scheme lightning:

For example lightning:lnbc10u1pwjqwkkpp5vlc3tttdzhpk9fwzkkue0sf2pumtza7qyw9vucxyyeh0yaqq66yqdq5f38z6mmwd3ujqar9wd6qcqzpgxq97zvuqrzjqvgptfurj3528snx6e3dtwepafxw5fpzdymw9pj20jj09sunnqmwqz9hx5qqtmgqqqqqqqlgqqqqqqgqjq5duu3fs9xq9vn89qk3ezwpygecu4p3n69wm3tnl28rpgn2gmk5hjaznemw0gy32wrslpn3g24khcgnpua9q04fttm2y8pnhmhhc2gncplz0zde

scheme bluewallet: wrapping BIP21 & lightning:

For example

  • bluewallet:bitcoin:bc1qh6tf004ty7z7un2v5ntu4mkf630545gvhs45u7?amount=666&label=Yo
  • bluewallet:lightning:lnbc10u1pwjqwkkpp5vlc3tttdzhpk9fwzkkue0sf2pumtza7qyw9vucxyyeh0yaqq66yqdq5f38z6mmwd3ujqar9wd6qcqzpgxq97zvuqrzjqvgptfurj3528snx6e3dtwepafxw5fpzdymw9pj20jj09sunnqmwqz9hx5qqtmgqqqqqqqlgqqqqqqgqjq5duu3fs9xq9vn89qk3ezwpygecu4p3n69wm3tnl28rpgn2gmk5hjaznemw0gy32wrslpn3g24khcgnpua9q04fttm2y8pnhmhhc2gncplz0zde