![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
solana-trader-client-ts
Advanced tools
Provides a Typescript SDK for bloXroute's Solana Trader API.
$ git clone https://github.com/bloXroute-Labs/solana-trader-client-ts.git
$ cd solana-trader-client-ts
$ npm i
$ brew install pbkit/tap/pbkit
Full repo installation via NPM is expected to be supported soon.
This library supports HTTP, websockets, and GRPC interfaces.
First, you need to set AUTH_HEADER
in your .env file to be able to authenticate properly.
For any methods involving transaction creation you will need to provide your
Solana private key. You can provide this via the .env file - variable
WALLET_SECRET_KEY
. Also, please set your WALLET_PUBLIC_KEY
to your main SOL wallet address.
See samples for more information.
A general note on this: methods named post*
(e.g. postorder
) typically
do not sign/submit the transaction, only return the raw unsigned transaction.
This isn't very useful to most users (unless you want to write a signer in a
different language), and you'll typically want the similarly named submit*
methods (e.g. submitOrder
). These methods generate, sign, and submit the
transaction all at once.
Sample:
import { HttpProvider } from "../bxsolana/provider/http.js"
const provider = new HttpProvider()
let req = await provider.getOrderbook({ "market": "SOLUSDC", "limit": 5 })
console.info(req)
Refer to the examples/
for more info. You need to add an .env file in examples/
with the right properties, to run it.
a proper .env
file looks like something like this.
AUTH_HEADER="ZDIxYzE0NmItZWYxNi00ZmFmLTg5YWUtMzYwMTk4YzUyZmM4OjEwOWE5MzEzZDc2Yjg3M......................"
WALLET_SECRET_KEY="3EhZ4Epe6QrcDKQRucdftv6vWXMnpTKDV4mekSPWZEcZnJV4huzesLHwASdVUzo......................"
WALLET_PUBLIC_KEY="2JJQHAYdogfB1fE1ftcvFcsQAX................."
We use pbkit/pbkit
to generate Typescript files from .proto
definitions. You'll need to install their kit:
$ brew install pbkit/tap/pbkit
Clone the repo and install dependencies:
$ git clone https://github.com/bloXroute-Labs/solana-trader-client-ts.git
$ cd solana-trader-client-ts
$ npm i
Lint:
$ npm run lint
Format:
$ npm run format
Install precommit hooks:
$ npx husky install
Regenerate protobuf definitions:
$ npm run proto
FAQs
Solana Trader API SDK
The npm package solana-trader-client-ts receives a total of 0 weekly downloads. As such, solana-trader-client-ts popularity was classified as not popular.
We found that solana-trader-client-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.