Comments (3)
on the commandline this works as
in3 -c btc -f 5 getrawtransaction f84f182e531d0c33b6952c57a8b3e1edecc1851a273dbdd0db2404213bcec8d6 true
in3 -c btc -f 5 getblockheader 00000000000000000002596ec480fb2aa28dad2ef020a74c406a9bd73901950d true
in ts
import { IN3 } from 'in3-wasm'
async function showBlock() {
// create new incubed instance
const client = new IN3({
chainId: 'btc'
})
// send raw RPC-Request
const lastBlock = await client.btc.getBlockHeader(
'00000000000000000002596ec480fb2aa28dad2ef020a74c406a9bd73901950d'
)
console.log("Blockheader: ", JSON.stringify(lastBlock, null, 2))
// clean up
client.free()
}
showBlock().catch(console.error)
But since this feature is not officially released yet ( but already included in the last binaries) in the next weeks (after finishing up the tests) we will anounce it and explain more in a blogpost.
But feel free to already hava a look at the documentation: https://in3.readthedocs.io/en/develop/bitcoin.html
from in3.
Can we use IN3 client to develop an app like a SPV wallet?
from in3.
of course! But at the moment incubed is able to verify transactions and blocks. What we are not able to verify yet, is a balance of an account, since this means you would need to proof, that those tx outputs have not been spent. We are working on this, but at the moment those balances would be unverifified yet.
from in3.
Related Issues (20)
- Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR) from JNI HOT 7
- In3 API for TS doesn't run with any example. HOT 2
- Maven support for java HOT 2
- Change client network from one to another doesn't seem to work on Python HOT 4
- Unable to connect to Chains Using Python and In3 2.5.4 HOT 3
- Unicode error when saving file in in cache (python) HOT 2
- A trivial issue in doc HOT 1
- Refresh node list returns 'missing signatures' error HOT 1
- How do you install in3 for the C programming language? HOT 1
- Cannot use in3 in Java with the pom.xml file stanzas in the directions HOT 1
- Cannot use the Java examples provided due to "NoClassDefFoundError" HOT 1
- Cannot use rust to invoke in3 because of an error "failed to resolve: use of undeclared type `BlockNumber`" HOT 3
- How do I use in3 (Incubed) for Bash to view ethereum records for transactions beyond the most recent 400? HOT 1
- Firefox: Error: NetworkError when attempting to fetch resource HOT 4
- Unable to get rpc data HOT 2
- Error: `malformed request` when jsonrpc id is a string HOT 1
- CMake Error at conan.cmake:368 HOT 2
- Crash after IN3 runs for a while HOT 5
- The env could not deliver the requested value. HOT 8
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 in3.