0.1.5 • Published 2 years ago

mixineos-wallet v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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);
0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

21.0.3

2 years ago