cryptofiat / wallet-server Goto Github PK
View Code? Open in Web Editor NEWServer forwarding client transactions to an eth node. Paying ether fees.
License: MIT License
Server forwarding client transactions to an eth node. Paying ether fees.
License: MIT License
Should allow polling by transaction hash and respond for pending transactions too.
At the moment only shows sent transfers, but no received.
Submitting delegated transfer with sendRawTransaction
does get submitted, but not mined. The returned hash does not appear in etherscan.
For example, the following POST which can successfully be submitted directly from Mist
{
"amount": 3,
"fee": 1,
"nonce": 3,
"reference": "string",
"signature": "44be871b44c123fab6e50f1a55fa35e0f490248d9aeee9d31fd72de72ab67000582a7d360df71615301ec16e47d61eeeed2fa0a6676337d8d6881ed3ce191b691c",
"sourceAccount": "0x833898875a12a3d61ef18dc3d2b475c7ca3a4a72",
"targetAccount": "0x833898875a12a3d61ef18dc3d2b475c7ca3a4a72"
}
yields the raw transaction
0xf901ab038506fc23ac008305573094af71e622792f47119411ce019f4ca1b8d993496e80b90144e218e6d20000000000000000000000000000000000000000000000000000000000000003000000000000000000000000833898875a12a3d61ef18dc3d2b475c7ca3a4a720000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000008664e7a68809238d8f8e78e4b7c723282533a787000000000000000000000000000000000000000000000000000000000000004144be871b44c123fab6e50f1a55fa35e0f490248d9aeee9d31fd72de72ab67000582a7d360df71615301ec16e47d61eeeed2fa0a6676337d8d6881ed3ce191b691c000000000000000000000000000000000000000000000000000000000000001ba074ebc2013d893e186c0db5ad15a12aff62a2d2c1f3ba2daa5d9d367081c68151a06eafb1689d43e71c6a0872ca7c48c31c5eb5517370c5311dde2053138b2e0e74
and gives transaction hash 0x061602ed975e8dd05adba46af0460158580674cd0fa164b1051b97b4419a55cd
The /v1/accounts/0x123421321/transfers
endpoint.
Then client app can show the time of the transaction and link through to the transaction proof on etherescan.io.
/accounts/0x1231231/transfers
endpoint should include pending transactions - i.e. when the transaction has been pooled on the eth node, but not included in any successful block yet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.