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

docs: go examples #777

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

docs: go examples #777

wants to merge 1 commit into from

Conversation

jackstar12
Copy link
Member

No description provided.

@kilrau kilrau requested a review from michael1011 January 11, 2025 16:21
Comment on lines +630 to +631
default:
fmt.Println(update.Status)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default:
fmt.Println(update.Status)

Let's not log here but in the same way you do in the reverse swap example

"github.com/lightningnetwork/lnd/zpay32"
)

const endpoint = "<Boltz API endpoint to use>"
const invoice = "<invoice that should be paid>"
const endpoint = "<the boltz api endpoint>"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const endpoint = "<the boltz api endpoint>"
const endpoint = "<Boltz API endpoint>"

const invoiceAmount = 100000
const destinationAddress = "<address to which the swap should be claimed>"

// swap from BTC to BTC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// swap from BTC to BTC
// Swap from Lightning to BTC mainchain

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