@dynamic-labs/aptos
v4.52.2
Published
A React SDK for implementing wallet web3 authentication and authorization to your website.
Readme
@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)) {
// Do something
}
}🧪 Testing
Run Tests
npx nx test aptosBuild 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
- Documentation: docs.dynamic.xyz
- GitHub Issues: Report bugs or request features
- Discord: Join our community
Built with ❤️ by the Dynamic Labs team
