Files
ark/pkg/client-sdk/example/covenant/wasm
Louis Singer 0fb34cb13d Dynamic min-relay-fee and dust amount (#280)
* [btc-embedded] add chainfee.Estimator and extraAPI interfaces

* dynamic fee amount

* dynamic dust amount

* [client] fix linter errors

* [domain] fix unit tests

* [server] return dust amount in GetInfo RPC

* [sdk] fix lnd dependencie

* go work sync

* fix witness stack size forfeit tx size estimator

* remove hardcoded fee values in covenant txbuilder

* lower liquid feerate

* fix after reviews

* go work sync
2024-09-10 17:22:09 +02:00
..
2024-08-07 01:37:18 +02:00

USAGE

This example demonstrates how to compile ARK Go SDK to WebAssembly and use it in a web page.

  1. Create a Go file with the main package, check main.go.

  2. Copy wasm_exec.js:

    cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
    
  3. Build the Go code to WebAssembly:

    GOOS=js GOARCH=wasm go build -o main.wasm main.go
    
  4. Load the WebAssembly module in a web page, check index.html.

  5. Serve the files:

    python3 -m http.server 8000