Registry / search / grpc-graphsearch-node

grpc-graphsearch-node

JSON →
library0.2.1jsnpmunverified

gRPC client for Bitcoin Cash SLP Graph Search (gs++) servers. Version 0.2.1 is current. Provides promise-based GraphSearchClient class to query token transaction graphs. Key differentiators: specifically designed for BCH SLP tokens, supports TLS and plain gRPC, built from `bchrpc.proto`, includes `notls` option, `reversedHashOrder` and `excludeList` parameters. NOTE: This package is unmaintained (last release 2019), proto changes may cause compatibility issues.

npm install grpc-graphsearch-node
INSTALL
IMPORT
SIG · GRPC-GRAPHSEARCH-N
G
grpc-graphsearch-node
searchjavascriptv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GraphSearchClient
import { GraphSearchClient } from 'grpc-graphsearch-node'
const GraphSearchClient = require('grpc-graphsearch-node').GraphSearchClient
Named export, not default. Use destructured import.
GraphSearchClient (CommonJS)
const { GraphSearchClient } = require('grpc-graphsearch-node')
const GraphSearchClient = require('grpc-graphsearch-node')
CommonJS requires destructuring.
TypeScript types
import type { GraphSearchClient } from 'grpc-graphsearch-node'
Types are bundled; use `import type` for type-only imports.

Creates a GraphSearchClient instance, performs a graph search for a transaction, and logs raw transaction data.

import { GraphSearchClient } from 'grpc-graphsearch-node'; const client = new GraphSearchClient({ url: process.env.GS_URL ?? 'localhost:50051', notls: true }); async function main() { const txid = '598c6572b70680710560d2ab40cabfde3156353ec5da217e18a8519843ff4423'; try { const results = await client.graphSearchFor({ hash: txid, reversedHashOrder: true }); results.forEach(item => console.log(item.getTxdataList_asU8())); } catch (err) { console.error('Graph search failed:', err); } } main();
Debug
Known issues
deprecatedPackage grpc-graphsearch-node is unmaintained; last release 0.2.1 in 2019.
fix
Consider forking or migrating to updated library if gs++ proto changes.
affects: >=0.0.0
breakingVersion 0.2.0 added `notls` option. Older versions did not support this, will throw if used.
fix
Upgrade to >=0.2.0 to use `notls`.
affects: <0.2.0
breakingVersion 0.1.0 added `reversedHashOrder` and `excludeList` options. Older versions expect different method signature.
fix
Upgrade to >=0.1.0 and update method calls.
affects: <0.1.0
gotchaImported protobuf classes may not serialize correctly if proto file is out of sync with server.
fix
Use same proto version as gs++ server. Check compatibility with server maintainer.
affects: >=0.0.0
Errors
Common errors & fixes
TypeError: GraphSearchClient is not a constructor
Importing default instead of named export.
fix
Use `import { GraphSearchClient } from 'grpc-graphsearch-node';`
Error: 14 UNAVAILABLE: failed to connect to all addresses
Server URL incorrect or TLS mismatch.
fix
Check URL, set `notls: true` if server does not use TLS.
Error: Cannot find module 'grpc-graphsearch-node'
Package not installed or not in node_modules.
fix
Run `npm install grpc-graphsearch-node`.
Upgrade
Version history
0.2.1latest on npm
Audit
Dependencies
@grpc/grpc-jsrequiredgRPC client library
protobufjsrequiredprotobuf serialization
Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
1
Resources
grpc-graphsearch-node — npm install grpc-graphsearch-node · libregistry