@dynamic-labs/aptos
An Aptos wallet connector package for the Dynamic SDK that enables seamless integration with Aptos network wallets.
Installation
npm install @dynamic-labs/aptos
🔌 Supported Wallets
Provider Interface
🌐 Supported Networks
📖 Usage
Basic Integration
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';
import { AptosWalletConnectors } from '@dynamic-labs/aptos';
function App() {
return (
<DynamicContextProvider
settings={{
environmentId: 'your-environment-id',
walletConnectors: [AptosWalletConnectors()],
}}
>
{/* Your app content */}
</DynamicContextProvider>
);
}
Type Checking
Use the isAptosWallet type guard to safely work with Aptos wallets:
import { isAptosWallet } from '@dynamic-labs/aptos';
function handleWallet(wallet: Wallet) {
if (isAptosWallet(wallet)) {
}
}
🧪 Testing
Run Tests
npx nx test aptos
Build Package
npx nx build aptos
🤝 Contributing
We welcome contributions! Please see our contributing guidelines for details.
📄 License
This package is part of the Dynamic SDK and follows the same licensing terms. See LICENSE for details.
🆘 Support
Built with ❤️ by the Dynamic Labs team