Skip to main content

Migrating from Connector v1

Two things change for your app code, and one thing changes for your users.

v1v2
Sign call21 per-coin functions (getEthereumSignedTransaction, …)single sign({ method, chainId, payload })
Network idcoinType enum (dcent.coinType.ETHEREUM)chainId (CAIP-2/19, 'eip155:1/slip44:60')
Key pathkey / path argspayload.keyPath
ResponseV1Responsesame V1Response — but signed_txsignature
ConnectionBridge app install + USB onlybrowser-direct (WebHID / BLE) + setTransport
Device / lifecyclegetDeviceInfo / setConnectionListener / …same names (+ new setTransport). setConnectionListener keeps its v1 first argument but gained a second one and fires more often — that second argument also reports the device-screen approval wait ('awaiting-connect-approval') and why a connection dropped (deviceReason). See its page.
tip

For users: no more Bridge download, and Bluetooth now works. For your code: Device/Account APIs stay nearly identical; only the Sign API consolidates into sign(), and you read signature instead of signed_tx.

Checklist