Comments (2)
Your first input's scriptSig is just a raw public key without a push byte, so it is reading the 0x03 at the beginning of the public key as "push 3 bytes", which pushes 0x30e40a to the stack, then it tries reading the next byte as an op code which is 0xc3 which is an invalid op code.
Since scriptSig must only contain push data directives, this causes the error.
That said, an input pointing to a transaction id of all 0s is invalid, since such a transaction does not exist.
In order to send bitcoin you must first RECEIVE bitcoin. The transaction ID you use in your transaction is the ID of the transaction where you RECEIVED bitcoin. You then add an output to send however many bitcoin you want to wherever you're sending it... then you add another output back to yourself (this is known as change).
I highly recommend against using Coinbin with real money if you do not know these very basic things about bitcoin (and related coins)
Please play around with some testnet coins first until you understand how coinbin works. If you lose a bunch of testnet coins at least they're not worth anything.
from coinbin.
Overall, I understand what you meant. Thanks ya
from coinbin.
Related Issues (20)
- Trying to verify and sign a transaction
- You do not have support bech32
- https://coinb.in/#fees sizes are off by +10 bytes HOT 1
- https://coinb.in/#fees Bech32 address support
- How to run it from command line HOT 3
- bitcoin cash?
- Taproot support
- Consider changing coinjs.newPrivkey() function to use a CSPRNG to generate random values for private keys
- Hello
- Transaction has been signed but no change in Hex HOT 1
- Fee calculation is wrong HOT 1
- Private key to address with balance check
- 2nd Transaction HOT 1
- use a HEX private key and generate all its addresses? HOT 1
- Please Assist Recovering Dogecoin Send Through CoinbIN
- Does it support SLIP-132?
- Calculate pay_to_address_script from address (ElectrumX API integration)
- coinb.in/api HOT 1
- the transaction was rejected by network rules. non-mandatory-script-verify-flag (Locktime requirement not satisfied)
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 coinbin.