Comments (10)
The info returned from insight-api/rawtx is not correct.
from bitcoindiamond.
That explains why I can't broadcast my TX because I use it to crosscheck the format. I guess you have some docs (or code) describing the difference? Could you give me a pointer so I can do it? We need to build and sign Tx offline for our cold wallets.
Thanks @heyconnor.
from bitcoindiamond.
@lix2ng TX version is 12, and there is a preblockhash followed version.
from bitcoindiamond.
@heyconnor Version 12 was set. I'll look into the preblockhash part.
If you could provide a legal tx string (which RPC will decode) as an example, that would be very useful to me.
Thanks!
from bitcoindiamond.
@lix2ng You can get raw tx by "bitcoindiamond-cli getrawtransaction [txid]".
from bitcoindiamond.
@heyconnor Confirmed. the rawtx from RPC getrawtransaction() has the previous block hash between the version word and input count.
Interesting. Does it mean I have to query the blkhash of current tip when making a Tx? What happens if I made it 1min before next block, and if user spent 1m1s to finish the signature I'll miss the window and the whole thing must restart? This train-catching game will frustrate user for sure.
from bitcoindiamond.
@lix2ng The preblockhash is not strictly checked currently. Just make sure it's not zero.
from bitcoindiamond.
OK, thanks. do you have a BCD-specific JS lib to handle the local building and signing of Tx?
from bitcoindiamond.
No.
from bitcoindiamond.
@heyconnor Thank you for being so patient to clarify my questions.
Now it's all clear to me. I'm closing now.
from bitcoindiamond.
Related Issues (20)
- Explorer of BCD testnet URL and BCD testnet Faucet URL ?? HOT 1
- Any to ways to get transaction details globally wia api (postman). HOT 1
- BCD's diff 1 is same as BTC, right? HOT 2
- bcd createRawTransaction error HOT 1
- What the magic number of mainnet HOT 2
- source `make` failed HOT 2
- bcd explorer HOT 1
- hello, bcd insight service is inaccessible. Why block me HOT 3
- API get UTXO from bcd insight service is inaccessible HOT 4
- X13 ASIC questions
- Is this project still active? HOT 4
- the function of rivacy protection
- Need nodes to connectthe wallet to the network HOT 1
- BCD network stats
- Bitcoin explorer HOT 3
- bitcoindiamond explder Has been paralyzed a long time HOT 2
- Where is BCD testnet explorer? HOT 2
- http://explorer.btcd.io/#/ is not working HOT 3
- how to create address index? HOT 7
- BCD explorer is not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoindiamond.