sequence-cross-app-evm
Overview
The Sequence Cross App EVM connector enables integration with Sequence's cross-app wallet functionality in the Dynamic SDK. It provides a seamless way to interact with Sequence's wallet-as-a-service (WaaS) solution, allowing users to connect their wallets and perform transactions across different applications.
Configuration
The connector requires two configuration objects:
type WalletMetadata = {
id: string;
name: string;
icon: string;
};
type CrossAppTransportConfig = {
projectAccessKey: string;
walletUrl: string;
initialChainId: number;
};
Integrating with the Dynamic SDK
To integrate with the Dynamic SDK:
- Import SequenceCrossAppConnector
- Configure it with your metadata and transport config
- Pass it to the DynamicContextProvider
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-score';
import { SequenceCrossAppConnector } from '@dynamic-labs-connectors/sequence-cross-app-evm';
const sequenceCrossAppConnector = SequenceCrossAppConnector(
{
id: 'wallet-id',
name: 'wallet name',
icon: 'icon-url',
},
{
projectAccessKey: 'YOUR_PROJECT_ACCESS_KEY',
walletUrl: 'YOUR_WALLET_URL',
initialChainId: 1,
},
);
const App = () => {
return (
<DynamicContextProvider
settings={{
environmentId: 'REPLACE-WITH-YOUR-ENVIRONMENT-ID',
walletConnectors: [sequenceCrossAppConnector],
}}
>
<DynamicWidget />
</DynamicContextProvider>
);
};
Contributing
Please see the Contributing Guide for information on how to develop and contribute to this connector.