
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@coinbase-sample/prime-sdk-ts
Advanced tools
Welcome to the Coinbase Prime API TypeScript SDK. This TypeScript project was created to allow developers to easily plug into the [Coinbase Prime API](https://docs.cdp.coinbase.com/prime/docs/welcome).
Welcome to the Coinbase Prime API TypeScript SDK. This TypeScript project was created to allow developers to easily plug into the Coinbase Prime API.
The Prime Typescript SDK sample library is free and open source and released under the Apache License, Version 2.0.
The application and code are only available for demonstration purposes.
Here are a few examples requests:
client
.listPortfolios()
.then((result) => {
console.log(result);
})
.catch((error) => {
console.error(error.message);
});
client
.listAssets({entityId: "somePortfolioId"})
.then((result) => {
console.log(result);
})
.catch((error) => {
console.error(error.message);
});
$10 Market Buy on BTC-USD
client
.createOrder({
portfolioId: "somePortfolioId",
productId: "BTC-USD",
side: OrderSide.BUY,
type: OrderType.Market,
baseQuantity: "0.0001"
})
.then((result) => {
console.log(result);
})
.catch((error) => {
console.error(error.message);
});
npm install
To build the project, run the following command:
npm run build
Note: To avoid potential issues, do not forget to build your project again after making any changes to it.
After building the project, each .ts
file will have its .js
counterpart generated.
To run a file, use the following command:
node dist/{INSERT-FILENAME}.js
For example, a main.ts
file would be run like:
node dist/main.js
FAQs
[](https://badge.fury.io/js/%40coinbase-sample%2Fprime-sdk-ts) [](https://opensource.org/licenses/Apache-2.
The npm package @coinbase-sample/prime-sdk-ts receives a total of 638 weekly downloads. As such, @coinbase-sample/prime-sdk-ts popularity was classified as not popular.
We found that @coinbase-sample/prime-sdk-ts demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.