0.0.8 • Published 5 months ago
moonchute v0.0.8
MoonChute
React Hook for Account Abstraction
Documentation
Please visit moonchute for full documentation
Install
install moonchute and its dependency
npm install moonchute
Quick Start
Get smart accounts owned by address
with moonchute
import { MoonChuteConfig, createMoonChuteConfig } from 'moonchute'
const config = createMoonChuteConfig({
appId: <YOUR_MOONCHUTE_API_KEY>,
});
function App() {
return (
<MoonChuteConfig config={config}>
<SmartAccounts />
</MoonChuteConfig>
)
}
import { useSmartAccounts } from "moonchute";
export default function SmartAccounts() {
const { data } = useSmartAccounts({
address: "0x6136b647C9971f1EDc7641e14a9E0Ca7b2626080",
chainId: 137,
});
if (data) {
return (
<div>
{data.smartAccount?.map((sa, key) => (
<div
key={key}
>{`Address: ${sa.address} / Provider: ${sa.provider}`}</div>
))}
</div>
);
}
}
0.0.8
5 months ago
0.0.7
5 months ago
0.0.6
6 months ago
0.0.6-beta.1
6 months ago
0.0.6-beta.0
6 months ago
0.0.5
6 months ago
0.0.5-beta.4
6 months ago
0.0.5-beta.3
6 months ago
0.0.5-beta.2
6 months ago
0.0.5-beta.1
6 months ago
0.0.4
7 months ago
0.0.3
7 months ago
0.0.2
7 months ago
0.0.1
7 months ago