
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.
A modular SDK for Solana-based blockchain operations, supporting Gorbchain and other Solana forks
A modular, type-safe SDK for Solana-based blockchain operations. This SDK supports Gorbchain, Solana mainnet, devnet, and any other Solana fork by providing configurable blockchain settings.
npm install @gorbchain/gorb-sdk
import { createGorbchainSDK, Keypair } from '@gorbchain/gorb-sdk';
// Create SDK instance
const sdk = createGorbchainSDK();
// Create token parameters
const tokenParams = {
name: "My Token",
symbol: "MTK",
supply: 1000000,
decimals: 6,
uri: "https://my-metadata-uri.com/token.json",
};
// Build complete transaction (includes create mint, metadata, ATA, and minting)
const payer = new PublicKey("your-payer-public-key");
const result = await sdk.createTokenTransaction(tokenParams, payer);
// Sign the complete transaction (only needs to be signed once!)
const keypair = Keypair.generate();
const signedTx = await sdk.signWithKeypair(result.transaction, keypair);
// Submit transaction
const submitResult = await sdk.submitTransaction(signedTx);
console.log("Token created:", submitResult.signature);
import { createGorbchainSDK } from '@gorbchain/gorb-sdk';
const sdk = createGorbchainSDK();
// Build transaction
const result = await sdk.createTokenTransaction({
name: "Wallet Token",
symbol: "WKT",
supply: 1000000,
decimals: 6,
uri: "https://wallet-metadata.com/token.json",
});
// Update transaction with actual payer
const updatedTx = sdk.updateTransactionPayer(result.transaction, wallet.publicKey);
// Sign with wallet and mint keypair
const signedTx = await sdk.signWithWalletAndKeypair(updatedTx, wallet, result.mintKeypair);
// Submit
const submitResult = await sdk.submitTransaction(signedTx);
const { createGorbchainSDK } = require('@gorbchain/solana-sdk');
import { createGorbchainSDK } from '@gorbchain/solana-sdk';
import { createGorbchainSDK } from '@gorbchain/solana-sdk';
const sdk = createGorbchainSDK();
// or with custom RPC
const sdk = createGorbchainSDK("https://custom-gorbchain-rpc.com");
import { createSolanaSDK } from '@gorbchain/solana-sdk';
// Mainnet
const sdk = createSolanaSDK("mainnet-beta");
// Devnet
const sdk = createSolanaSDK("devnet");
import { createSDK, createBlockchainConfig } from '@gorbchain/solana-sdk';
const customConfig = createBlockchainConfig(
"YourTokenProgramId",
"YourAssociatedTokenProgramId",
"https://your-rpc.com"
);
const sdk = createSDK({ blockchain: customConfig });
createTokenTransaction(params)Creates a token creation transaction.
Parameters:
name: string - Token namesymbol: string - Token symbolsupply: string | number - Token supplydecimals: string | number - Token decimalsuri: string - Metadata URIfreezeAuthority?: PublicKey | null - Optional freeze authoritymintKeypair?: Keypair - Optional mint keypair (generated if not provided)Returns: TransactionResult
createNFTTransaction(params)Creates an NFT minting transaction.
Parameters:
name: string - NFT namesymbol: string - NFT symboluri: string - Metadata URIdescription: string - NFT descriptionmintKeypair?: Keypair - Optional mint keypair (generated if not provided)Returns: TransactionResult
signWithKeypair(transaction, keypair)Signs a transaction with a keypair.
signWithWalletAdapter(transaction, wallet)Signs a transaction with wallet adapter.
signWithWalletAndKeypair(transaction, wallet, mintKeypair)Signs a transaction with both wallet and mint keypair.
submitTransaction(transaction, options?)Submits a signed transaction.
simulateTransaction(transaction)Simulates a transaction before submission.
waitForConfirmation(signature, commitment?, timeout?)Waits for transaction confirmation.
import { GORB } from '@gorbchain/solana-sdk';
console.log(GORB.TOKEN22_PROGRAM);
console.log(GORB.ASSOCIATED_TOKEN_PROGRAM);
console.log(GORB.SYSTEM_PROGRAM);
console.log(GORB.CONFIG);
import { createBlockchainConfig } from '@gorbchain/solana-sdk';
const config = createBlockchainConfig(
"TokenProgramId",
"AssociatedTokenProgramId",
"https://rpc.example.com",
{
wsUrl: "wss://ws.example.com",
commitment: "confirmed",
name: "custom-chain"
}
);
The SDK provides specific error types for better error handling:
import { SDKError, TransactionError, SigningError } from '@gorbchain/solana-sdk';
try {
const result = await sdk.createTokenTransaction(params);
} catch (error) {
if (error instanceof SDKError) {
console.error("SDK Error:", error.message);
} else if (error instanceof TransactionError) {
console.error("Transaction Error:", error.message);
} else if (error instanceof SigningError) {
console.error("Signing Error:", error.message);
}
}
See src/examples in the repository for comprehensive usage examples including:
npm run build
npm run dev
The SDK is built with strict TypeScript configuration for maximum type safety.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A modular SDK for Solana-based blockchain operations, supporting Gorbchain and other Solana forks
We found that gorb-sdk 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.