Repository navigation
Releases
v1.0.0
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.0Requires 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:
Connectreturns a pairing URI to show as a QR code or deep link.Connection.Waitreturns the session, andRequestreturns the wallet's result. A wallet's error answer comes back as*RPCError. -
Wallet:
Pair,Approve/Reject,Respond/RespondError,UpdateandEmit. Proposals and requests arrive onEvents(). -
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 implementstorage.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.Tracelogs every action from start to finish.- A trace file beside the database (OTLP JSON, rotated by size) can be read with the
wctracecommand or thetracefilepackage. Options.TracerProviderandOptions.MeterProvidersend 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.NoTelemetryturns 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.0summarises trace files.examples/dappandexamples/walletare minimal command-line apps.examples/webis 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.