GIWA Chain 기능
React Native를 위한 GIWA Chain의 모든 기능을 하나의 SDK로
📦
간편한 설치
Expo와 React Native CLI 모두 지원. 한 줄로 설치하고 바로 사용하세요.
🔐
안전한 저장소
iOS Keychain과 Android Keystore를 활용한 하드웨어 기반 보안.
⚡
Flashblocks
~200ms의 초고속 사전확인으로 즉각적인 트랜잭션 피드백.
🏷️
GIWA ID
alice.giwa.id 같은 ENS 기반의 사람이 읽을 수 있는 주소.
🌉
L1↔L2 브릿지
이더리움과 GIWA Chain 간의 원활한 자산 이동.
💎
TypeScript 네이티브
완벽한 TypeScript 정의로 완전한 타입 안전성 제공.
간단하고 직관적인 API
몇 줄의 코드만으로 시작하세요. 지갑, Flashblocks, GIWA ID, Dojang 등을 위한 React Hooks 제공.
- ✓모든 기능을 위한 React Hooks
- ✓자동 상태 관리
- ✓내장된 에러 처리
- ✓TypeScript 지원
App.tsx
import { GiwaProvider, useGiwaWallet } from 'giwa-react-native-wallet';
export default function App() {
return (
<GiwaProvider config={{ network: 'testnet' }}>
<WalletScreen />
</GiwaProvider>
);
}
function WalletScreen() {
const { wallet, createWallet, isLoading } = useGiwaWallet();
if (isLoading) return <ActivityIndicator />;
return wallet ? (
<Text>Connected: {wallet.address}</Text>
) : (
<Button title="Create Wallet" onPress={createWallet} />
);
}빠른 설치
플랫폼을 선택하고 몇 초 만에 시작하세요
Expo
npm
npm install giwa-react-native-wallet expo-secure-storeyarn
yarn add giwa-react-native-wallet expo-secure-storepnpm
pnpm add giwa-react-native-wallet expo-secure-storeReact Native CLI
npm
npm install giwa-react-native-wallet react-native-keychainyarn
yarn add giwa-react-native-wallet react-native-keychainpnpm
pnpm add giwa-react-native-wallet react-native-keychain