@use-truapi/vue
@use-truapi/vue
Vue 3 composables for building Polkadot apps.
One install, one plugin, 72 composables. Wraps the entire TruAPI / @parity/product-sdk surface — chain queries, wallet accounts, transactions, contracts, chat, statement store, payments, notifications and cloud storage — built on TanStack Query.
Status: this is an experiment, not an official library. The effort will move into @parity/product-sdk long term.
Install
npm install @use-truapi/vue @tanstack/vue-query
Use
import { TruapiPlugin, defineConfig } from "@use-truapi/vue";
const config = defineConfig({
chains: { /* … */ },
dappName: "my-app",
});
createApp(App).use(TruapiPlugin, { config }).mount("#app");
const { submit, phase } = useTx();
const balance = useBalance(address);
const theme = useTheme();
Docs
Full composable catalog, guides and examples: justraman.github.io/use-truapi · GitHub
License
MIT
Related Packages
@xrpl-commons/xrpl-connect-vue
Vue 3 bindings (plugin, composables, modal component) for XRPL Connect
462
27
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.2 | >=3.4 | MIT | |
| 0.1.0 | >=3.4 | MIT |