Giter Site home page Giter Site logo

rosklyar / nem-library Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 3.0 173 KB

feign-based http client for working with NEM blockchain

License: MIT License

Java 100.00%
nem nem-blockchain java scala kotlin archaius ribbon hystrix archaius-configuration circuit-breaker

nem-library's People

Contributors

rosklyar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nem-library's Issues

send 1 xem and get FAILURE_INSUFFICIENT_BALANCE message

I have 8 xem but I send 1 xem. it response error.
this is my code.

TransactionClient simpleTransactionClient = new DefaultNemClientFactory()
        .simpleTransactionClient("http://alice6.nem.ninja:7890", DefaultNemClientFactory.MAIN);
NemAnnounceResult objNem = simpleTransactionClient.transferNem(walletPass, toAddress, 1000000, message, 3600);

I use NanoWallet to send it. It's Success.
I use java code to send it. It's fail.

Insufficient Fee for TestNet

The same transaction when i'm running on MainNet works very well, but on the testnet a receive that message:

TransactionClient simpleTransactionClient = new DefaultNemClientFactory().simpleTransactionClient("http://192.168.0.21:7890", DefaultNemClientFactory.TEST);
NemAnnounceResult result = simpleTransactionClient.transferNem(myPrivateKey, ACCOUNT_MAINET_TRANSFER_TO, 10000000, "", totalSecondsTransactionTimeout);
out.println(result.code);
out.println(result.message);
out.println(result.type);

17
FAILURE_INSUFFICIENT_FEE
1

create MultisigAccount but got error: FAILURE_SIGNATURE_NOT_VERIFIABLE

I use the code to create multisign acount

TransactionClient transactionClient = new DefaultNemClientFactory().simpleTransactionClient(uri, DefaultNemClientFactory.MAIN);
NemAnnounceResult nemAnnounceResult = transactionClient.createMultisigAccount(privateKey, cosignatories, 2, 3600);

but got the result like that:

{"code":8,"innerTransactionHash":{},"message":"FAILURE_SIGNATURE_NOT_VERIFIABLE","transactionHash":{"data":"0f6305ab5cfab136a1a8792c7b5512851605c5856ee4e49a67e9d3f65e73e8c9"},"type":1}

How to fix it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.