Phantasma Link v5 connects to browser-extension wallets
A dApp in the browser can now reach an extension wallet over Phantasma Link v5 directly, with no pairing step.
- Published latest versions:
phantasma-sdk-ts 0.19.0andphantasma-link-react 0.3.0. - The Phantasma Link v5 specification 1.1 adds section 6.1. It defines how a browser-extension wallet connects to a web page.
- The wallet puts
window.phantasmaLinkon the page before the page's scripts run. The dApp sends its requests to that object. phantasma-sdk-tsadds the client for it,PhantasmaLink5.injected().findInjectedProvider()checks whether an extension wallet is present on the page.phantasma-link-reactadds theinjectedtransport. It needs no pairing step. When an extension wallet is installed, the store picks it by default.- The Link test site offers the Extension option in its v5 panel.
- The Aura browser extension uses this connection.
Phantasma Link v5 specification | phantasma-sdk-ts | phantasma-link-react | Link test site
npm install phantasma-sdk-ts@latestnpm install phantasma-link-react@latest