Skip to content

v1.0.0

Latest

Choose a tag to compare

@ganchoradkov ganchoradkov released this 30 Oct 18:55
· 2 commits to main since this release
aaf89c4

The first release of the Go SDK for the WalletConnect Sign v2 protocol. One client can act as a dApp and as a wallet, and it interoperates with the JS SDK (@walletconnect/sign-client) over the production relay.

go get github.com/WalletConnect/walletconnect-go@v1.0.0

Requires Go 1.26 or later and a project ID from the WalletConnect dashboard. The README has a dApp and a wallet quickstart.

What's included

  • dApp: Connect returns a pairing URI to show as a QR code or deep link. Connection.Wait returns the session, and Request returns the wallet's result. A wallet's error answer comes back as *RPCError.

  • Wallet: Pair, Approve / Reject, Respond / RespondError, Update and Emit. Proposals and requests arrive on Events().

  • Sessions: extend, ping and disconnect, plus expiry of pairings, proposals, sessions and requests.

  • Storage: storage.NewMemory() by default. storage.OpenBolt(path) keeps state in a bbolt file, so a restarted client keeps its identity and sessions and receives what peers sent while it was down. Other databases can implement storage.KV.

  • Relay transport: reconnects with backoff, resubscribes in batches, and resends calls that were in flight. An incoming message is acknowledged only after its state change is stored, so a failure means the relay redelivers it.

  • Observability:

    • Options.Trace logs every action from start to finish.
    • A trace file beside the database (OTLP JSON, rotated by size) can be read with the wctrace command or the tracefile package.
    • Options.TracerProvider and Options.MeterProvider send OpenTelemetry spans and latency metrics.
  • Telemetry: like the JS SDK, the client reports each API call to WalletConnect's Pulse API:

    • what's sent: the action, its topic, its step names and its timing;
    • what's never sent: params, payloads, keys, addresses or error messages.

    Options.NoTelemetry turns it off.

  • Total network value: relay publishes carry the same message metadata the JS SDK sends.

Not supported yet

  • One-click auth (wc_sessionAuthenticate, SIWE/CACAO, ReCaps). A Go wallet approves the JS dApp's fallback proposal instead.
  • The Verify API: every proposal and request reports VerificationUnknown.
  • Link mode, push notifications and pairing reuse.

Tools and examples

  • go install github.com/WalletConnect/walletconnect-go/cmd/wctrace@v1.0.0 summarises trace files.
  • examples/dapp and examples/wallet are minimal command-line apps.
  • examples/web is a browser demo of a dApp and an EVM wallet.

Compatibility

The API follows semantic versioning: no breaking changes before v2. Tests run against the live relay and against the published JS SDK in both roles.

Licensed under the WalletConnect Community License. Report vulnerabilities privately as described in SECURITY.md.