@zippie/zippie-api
v1.0.1
Published
Zippie Application API
Downloads
5
Keywords
Readme
Zippie Application API
Introduction
Zippie Application API is a companion API to the Vault API, which adds more application level functionality like access to a users personal information and crypto currency accounts.
Installation
npm install @zippie/zippie-api
Example
import Vault from '@zippie/vault-api'
import { Passport, Wallet } from '@zippie/zippie-api'
const vault = new Vault()
vault.setup()
.then(_ => vault.signin())
.then(async _ => {
await Passport.init(vault)
console.log('Users Fullname:', Passport.getFullName())
await Wallet.init(vault)
const account = await Wallet.getInstance().getAccountForToken(TOKEN_ADDRESS)
console.log(accounts)
})
.catch(e => console.error(e))