3.0.1 • Published 5 months ago
@apillon/wallet-vue v3.0.1
Embedded Wallet Vue helpers
Collection of Vue composabes to help with embedded wallet implementation.
Component <EmbeddedWallet />
Initialize wallet SDK and UI.
import { EmbeddedWallet } from '@apillon/wallet-vue';
<EmbeddedWallet ...props />Hooks
useWallet
Get the initialized instance of embedded wallet.
Also exposes the most common wallet actions.
import { useWallet } from '@apillon/wallet-vue';
const { wallet, signMessage, sendTransaction } = useWallet();
console.log(await wallet.value.userExists('johndoe'));useAccount
Get current connected account info.
import { useAccount } from '@apillon/wallet-vue';
const { info, getBalance } = useAccount();useContract
Helper methods to interact with EVM contracts.
import { useContract } from '@apillon/wallet-vue';
const { read, write } = useContract({
abi: ERC20Abi,
address: '0xb1058eD01451B947A836dA3609f88C91804D0663',
});
console.log(await read('balanceOf', [address]));
const txHash = await write(
'transfer',
['0x700cebAA997ecAd7B0797f8f359C621604Cce6Bf', '10000000'],
'React Transfer'
);usePolkadot
Helpers for interacting with polkadot API.
import { usePolkadot } from '@apillon/wallet-vue';
const { polkadotApi, sendTransaction } = usePolkadot();
sendTransaction(polkadotApi.tx.balances.transferAllowDeath(...));2.1.2
8 months ago
2.1.1
8 months ago
2.0.0-alpha.0
8 months ago
2.0.0-beta.0
8 months ago
2.1.0
8 months ago
2.0.0
8 months ago
2.1.0-beta.1
8 months ago
2.1.0-beta.0
8 months ago
2.1.2-alpha.1
8 months ago
3.0.1
5 months ago
2.1.2-alpha.0
8 months ago
3.0.0
5 months ago
1.1.0-alpha.1
11 months ago
1.1.0-alpha.2
11 months ago
1.1.0-alpha.0
11 months ago
1.0.0-beta.0
1 year ago
1.0.0-beta.1
1 year ago
1.0.0-alpha.8
1 year ago
1.0.0-alpha.7
1 year ago
1.0.0-alpha.6
1 year ago
1.0.0-alpha.5
1 year ago
1.0.0-alpha.4
1 year ago
1.0.0-alpha.3
1 year ago
1.0.0-alpha.2
1 year ago
1.0.0-alpha.1
1 year ago
1.0.0-alpha.0
1 year ago