1.0.2-1 • Published 10 months ago
svelte-tezos v1.0.2-1
svelte-tezos
svelte-tezos
is a svelte store with multiple helper functions to ease the connection between svelte and the tezos @taquito/taquito
library.
available functions:
1. createStore({ rpcUrl, networkType, dappName})
- initialized TezosToolkit & BeaconWallet and the svelte store
2. connect()
- requests and waits for a connection through beacon
3. disconnect()
- clears any active account through beacon
accessible via store:
userAddress
- address of the currently active accountconnected
- boolean indicating if wallet is paired or notblockHead
- current block height, hash, and timestampnetwork
- current network (mainnet, ghostnet, etc)rpc
- currently connected RPC
examples
coming soon
usage
coming soon