From 33d5dc56505e2ed44fd3baa5327739d9988344ca Mon Sep 17 00:00:00 2001 From: ramin Date: Mon, 18 Mar 2024 13:43:30 +0000 Subject: [PATCH] add creatInvoice example --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 8952ef9..4188395 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,20 @@ Some helpful examples are available in [the examples folder](./examples) ### Create Invoice +```go +client = client.WithBaseURL("http://localhost:8282") + +invoice, err := client.CreateInvoice({ + Description: "Drugqs" + Amount: 100000, +}) +if err != nil { + panic(err) +} +fmt.Println(invoice.Serialized) + +``` #### Watching Events