
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This directory contains SDK usage examples for `@parthsoni07/pnp-sdk-v2`. Each file demonstrates how to use the SDK to perform various operations that were previously done via scripts.
This directory contains SDK usage examples for @parthsoni07/pnp-sdk-v2. Each file demonstrates how to use the SDK to perform various operations that were previously done via scripts.
npm install
.env file in the root directory):PNP_RPC_URL=https://api.mainnet-beta.solana.com
HARDCODED_PRIVATE_KEY=your_private_key_here
Note: All examples load the .env file from the root directory (parent of sdk-use), not from sdk-use itself.
Each example file can be run directly with tsx or ts-node:
# Example: Create a P2P market
tsx createP2PQuickstart.ts
# Example: Trade on V3 market
tsx trade_v3.ts
# Example: Get market info
tsx market-info.ts
These examples demonstrate the new functionality and logic enhancements added in v2 branch (not just logging improvements).
createP2PQuickstart.ts - Create a generic P2P market with simple parameterscreateP2PTwitter.ts - Create a Twitter-linked P2P marketcreateP2PYoutube.ts - Create a YouTube-linked P2P marketcreateP2PandTrade.ts - Create a P2P market and trade on itp2pRefund.ts - Claim P2P market creator refundtrade_v3.ts - Trade on V3 marketsredeem_v3_position.ts - Redeem winning positions from resolved V3 marketsv3_market_info.ts - Get information about V3 P2P marketslist_v3_markets.ts - List all V3 market addressesfetch_my_v3_markets.ts - Fetch V3 markets where you have positionsfetch_resolved_markets.ts - Fetch all resolved V3 marketscreateMarket.ts - Create a standard market (with balance checking logic)createMarketV3.ts - Create a V3 market (P2P market creation)createMarketV3_oracle.ts - Create a V3 market with oraclecreateMarketAndRefund.ts - Create market and claim refund if not resolvablecreateMarketAndTrade.ts - Create market and trade on itmarket-info.ts - Get comprehensive market information (enhanced)v2_market_info.ts - Get V2 market informationv3_market_info.ts - Get V3 market informationwinningToken.ts - Get winning token for resolved markets (V2 or V3)@parthsoni07/pnp-sdk-v2 instead of local paths.env file with dotenv/config for configurationimport/export)Only files with actual logic enhancements or new functionality in v2 are included here. Files that only had logging improvements, type safety changes, or minor refactoring have been excluded.
=== RESULT === markersVERBOSE=1 environment variable for detailed outputHARDCODED_PRIVATE_KEY) can be provided as JSON array string or base58 string in the root .env fileFAQs
This directory contains SDK usage examples for `@parthsoni07/pnp-sdk-v2`. Each file demonstrates how to use the SDK to perform various operations that were previously done via scripts.
The npm package sdk-use receives a total of 1 weekly downloads. As such, sdk-use popularity was classified as not popular.
We found that sdk-use 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.