Sendrawtransaction not working

Hi,

i have added support for “cross-domain” requests.
The static version of multicoins wallet: https://3s3s.github.io/multicoins.org/
Source code: https://github.com/3s3s/multicoins.org/tree/gh-pages

I see etherwallet is made with angularjs. Forget about it.

What I meant is this https://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy
so that when you double-click from your documents folder locally everything still works without running a web server locally.

Found an example: http://arunranga.com/examples/access-control/simpleXSInvocation.html

I reviewed a small part of your code and found two issues.

One is security related, so make sure to check it out!
https://github.com/3s3s/multicoins.org/issues/4

[quote=“thehuntergames, post:42, topic:3843”]I see etherwallet is made with angularjs. Forget about it.

What I meant is this https://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy
so that when you double-click from your documents folder locally everything still works without running a web server locally.

Found an example: http://arunranga.com/examples/access-control/simpleXSInvocation.html[/quote]

You can download https://github.com/3s3s/multicoins.org/tree/gh-pages and unpack it to the local drive and it will work without web-servers.
You will only need to small change file “index.html”:

1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <!--/><script> 5 if (window.location.protocol != "https:") 6 window.location.href = "https:" + window.location.href.substring(window.location.protocol.length); 7 </script>-->

I am also building a multi-currency web wallet. My project is multiexplorer.com/wallet. Currently it only supports POW coins, but I would like to start supporting POS coins like peercoin.

I undterstand the colution to kzv is that he was missing the line “txb.setTxTime(1460741410)” in his code. My question is what library were you using where this setTxTime function is called from? Earlier in the thread a project called “PeercoinJS” was linked. Is kzv using that library? I’m not very much of a node.js expert, and I can’t get that library installed. I tried “npm install peercoinjs-lib” but I get this error:

npm http GET https://registry.npmjs.org/peercoinjs-lib
npm http 404 https://registry.npmjs.org/peercoinjs-lib
npm ERR! TypeError: Cannot read property 'latest' of undefined

Another project was mentioned in this thread about a library made by a person called “visvirial” making a library with “isPOS” flag. Where can I find this project?

Basically I’m trying to figure out how to build a tx with the POS flag without doing too much work myself.

That’s because it is not on npm :wink:

It’s here: https://github.com/kac-/peercoinjs-lib

BTW: This link is not working for me multiexplorer.cm/wallet

Hi,
i use my fork bitcoinjs-lib: https://github.com/3s3s/bitcoinjs-lib
You can install it with npm:

npm install multicoinjs-lib

Regards :slight_smile: