signer-test-sdk-core
v0.0.3
Published
Core framework-agnostic SDK for Abstraxn Wallet - email OTP, social authentication, passkey, and wallet management
Downloads
462
Maintainers
Readme
@abstraxn/signer-core
Core framework-agnostic SDK for Abstraxn Wallet - email OTP, social authentication (Google, Discord, X), passkey, and wallet management.
This package contains the core wallet functionality that works with any framework or vanilla JavaScript.
📦 Installation
npm install @abstraxn/signer-core🚀 Usage
Framework-Agnostic Core SDK
import { AbstraxnWallet } from '@abstraxn/signer-core';
const wallet = new AbstraxnWallet({
apiKey: 'your-api-key-here',
defaultChainId: 1,
autoConnect: true,
});
// Connect wallet
await wallet.connect();
// Get address
const address = wallet.getAddress();
// Sign message
const signature = await wallet.signMessage('Hello World');Vanilla JavaScript OnboardingUI
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="node_modules/@abstraxn/signer-core/OnboardingUI.css">
</head>
<body>
<div id="onboarding-container"></div>
<script type="module">
import { OnboardingUI } from '@abstraxn/signer-core';
const onboarding = new OnboardingUI({
container: '#onboarding-container',
// ... configuration
});
onboarding.init();
</script>
</body>
</html>📚 Exports
Core Classes
AbstraxnWallet- Main wallet classAuthManager- Authentication managerSigner- Transaction signerOnboardingUI- Vanilla JS onboarding component
Types & Interfaces
- All TypeScript types and interfaces
- Error classes
- Constants
🔗 Related Packages
- @abstraxn/signer-react - React components and hooks (uses this core package)
- @abstraxn/signer - Backward compatible wrapper (deprecated, use core + react instead)
📝 License
MIT
