Quickstart
npm install @tconnect.io/modalnpm install @tconnect.io/etherlink-providernpm install @tconnect.io/tezos-beacon-providernpm install @tconnect.io/tezos-wc-providerSetup the React-Modal Provider
// Import the TConnectModalProvider component for managing the TConnect modal
import { TConnectModalProvider } from "@tconnect.io/modal";
// Import the custom component to be rendered within the modal provider
import { MyComponent } from "./MyComponent";
export default function App() {
return (
// Wrap the application with TConnectModalProvider to configure and
// enable the TConnect modal
<TConnectModalProvider
appName={"Example App"} // Name of the application
appUrl={"https://your-domain.io"} // URL of the application
bridgeUrl={"https://tconnect.io"} // Bridge URL for the TConnect service
apiKey={"PRIVATE_API_KEY"} // API key for authenticating with TConnect
>
// Render the custom component within the TConnect provider
<MyComponent />
</TConnectModalProvider>
);
}Display the Wallet Connection React-Modal
Last updated