Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo server #4

Open
glumb opened this issue Feb 5, 2018 · 0 comments
Open

Demo server #4

glumb opened this issue Feb 5, 2018 · 0 comments

Comments

@glumb
Copy link
Owner

glumb commented Feb 5, 2018

I set up a testserver on http://iota.glumb.de:14260. Fee per tx is 2.

const idpc = new idpow.Client({
  maxFeePerTransaction: 2,
  provider: 'http://iota.glumb.de:14260',
})

const transfers = [{
  address: 'LABNGFFMNNWJRQ9WBAZGYJUPKQIZZGSOVHL9ZCBOIHDNLWPWPTDBMR9TUENBENHFPISOAQBZWORGCWIKJ',
  value: 0,
  tag: 'TEST',
}]

idpc.sendTransfer(
  SEED,
  3,
  14,
  transfers,
  (e, d) => {
    if (e) {
      console.warn(e)
    } else {
      console.log(`bundle hash ${d[0].bundle}`)
    }
  },
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant