0.1.5 • Published 3 years ago
mixineos-wallet v0.1.5
mixineos-wallet
Demo of mixineos wallet
See demo
How to use
yarn add mixineos-wallet
Initialization
import { InitWallet } from "mixineos-wallet"
const members = [
"e07c06fa-084c-4ce1-b14a-66a9cb147b9e",
"e0148fc6-0e10-470e-8127-166e0829c839",
"18a62033-8845-455f-bcde-0e205ef4da44",
"49b00892-6954-4826-aaec-371ca165558a"
];
let mixineos = InitWallet({
node_url: "https://api.eosn.io",
mainContract: "mixincrossss",
mixinWrapTokenContract: "mixinwtokens",
contractProcessId: "e0148fc6-0e10-470e-8127-166e0829c839",
members,
lang: "en",
debug: false,
inject: true
});
APIs
MixinEos.getEOSAccount
get mixin user associated EOS account
let account = await mixineos.getEOSAccount();
allert(account);
MixinEos.pushAction
let account = await mixineos.getEOSAccount();
let args = {
'from': account,
'to': 'helloworld',
'quantity': "0.00000001 MEOS",
'memo': 'hello,world'
}
await mixineos.pushAction("mixinwtokens", "transfer", args);