
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@openpets/bags-fm
Advanced tools
Plugin for Bags.FM API - Create and launch Solana tokens, manage fee sharing configurations, get trade quotes, and claim fees from token positions.
OpenPets plugin for the Bags.FM API - a Solana token launch and fee sharing platform.
Visit https://dev.bags.fm to create an account and generate your API key.
Add to your .env file:
BAGS_FM_API_KEY=your_api_key_here
opencode run "test bags-fm connection"
| Tool | Description |
|---|---|
bags-fm-test-connection | Test API connection and credentials |
bags-fm-get-trade-quote | Get a swap quote with price impact |
bags-fm-create-swap-transaction | Create a swap transaction from a quote |
bags-fm-get-token-lifetime-fees | Get total fees collected for a token |
bags-fm-get-token-launch-creators | Get token creators/deployers |
bags-fm-get-token-claim-stats | Get claim statistics for a token |
bags-fm-get-claimable-positions | Get claimable fee positions for a wallet |
bags-fm-get-claim-transactions | Generate claim transactions |
Enable additional tools by setting environment variables:
# Token Launch tools
BAGS_FM_LOAD_TOKEN_LAUNCH_TOOLS=true
# - bags-fm-create-token-info
# - bags-fm-create-launch-transaction
# Fee Share tools
BAGS_FM_LOAD_FEE_SHARE_TOOLS=true
# - bags-fm-get-fee-share-wallet-bulk
# - bags-fm-create-fee-share-config
# Partner tools
BAGS_FM_LOAD_PARTNER_TOOLS=true
# - bags-fm-get-partner-stats
# Get a swap quote
opencode run "get a bags-fm trade quote for swapping 1 SOL to token mint ABC123"
# Get lifetime fees for a token
opencode run "get bags-fm lifetime fees for token mint ABC123"
# Get claimable positions
opencode run "get bags-fm claimable positions for wallet XYZ789"
# Get token creators
opencode run "who are the bags-fm creators for token mint ABC123"
A lamport is the smallest unit of SOL. 1 SOL = 1,000,000,000 lamports (10^9).
Basis points are used for fee sharing percentages. 100 bps = 1%, 10,000 bps = 100%.
All tokens are identified by their mint public key (Base58 encoded Solana address).
The API has a limit of 1,000 requests per hour per user. Monitor the X-RateLimit-Remaining and X-RateLimit-Reset headers in responses.
Enable read-only mode to disable write operations:
pets read-only bags-fm on
This filters out tools like create-swap-transaction, create-token-info, etc.
If the API spec changes, regenerate the tools:
cd pets/bags-fm
pets generate-openapi --verbose
Note: Bags.FM does not expose a public OpenAPI spec URL. The openapi-spec.json file was manually created from their documentation at https://docs.bags.fm. If they add new endpoints, update the local spec file and regenerate.
FAQs
Plugin for Bags.FM API - Create and launch Solana tokens, manage fee sharing configurations, get trade quotes, and claim fees from token positions.
The npm package @openpets/bags-fm receives a total of 2 weekly downloads. As such, @openpets/bags-fm popularity was classified as not popular.
We found that @openpets/bags-fm 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.