1.0.25 • Published 6 months ago
cloud-social-wallet v1.0.25
Cloud Social Wallet Reactjs SDK
Usage:
npm install cloud-social-wallet
import {WalletProvider} from "cloud-social-wallet";
function App() {
return (
<WalletProvider config={{rpc: '', backend_url: '', prefix: 'loop'}}>
<WalletApp/>
</WalletProvider>
)
}
import {useWallet} from "cloud-social-wallet";
function WalletApp() {
const {address, logout, login} = useWallet()
return (
<>
{
address ? <>
<p>{address}</p>
<button onClick={logout}>Disconnect</p>
</> : <>
<button onClick={() => login('google')}>Google Login</button>
</>
}
</>
)
}
1.0.25
6 months ago
1.0.24
6 months ago
1.0.22
11 months ago
1.0.20
11 months ago
1.0.23
11 months ago
1.0.19
12 months ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.9
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago