
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
TypeScript SDK for Dina Network — the fastest blockchain with parallel wallets, parallel execution, and 94 DRC standards
TypeScript/JavaScript SDK for Dina Network — the fastest blockchain with swarm wallets, parallel execution, and 82 DRC smart contract standards.
npm install dina-js
import { DinaWallet, DinaClient } from 'dina-js';
// Create a wallet
const wallet = DinaWallet.generate();
console.log('Address:', wallet.address);
// Connect to testnet
const client = new DinaClient('http://35.184.213.248:8545');
// Check balance
const balance = await client.getBalance(wallet.address);
// Send USDC
const txHash = await client.transfer(wallet, {
to: '0x...',
amount: 1_000_000n, // 1 USDC (6 decimals)
});
// Wait for confirmation (100ms finality)
const receipt = await client.waitForTransaction(txHash);
DinaWallet.generate() // New random wallet
DinaWallet.fromPrivateKey(key) // From 32-byte key or hex string
DinaWallet.fromMnemonic('word1 word2..') // From BIP-39 mnemonic
wallet.address // 0x... address
wallet.publicKey // Uint8Array
wallet.sign(message) // Ed25519 signature
wallet.verify(message, signature) // Verify signature
wallet.exportPrivateKey() // Hex string (handle with care)
const client = new DinaClient('http://rpc-url:8545');
// Queries
await client.getBalance(address) // bigint (micro-USDC)
await client.getAccount(address) // { address, balance, nonce }
await client.getBlock(height) // Block data
await client.getLatestBlock() // Latest block
await client.getTransaction(hash) // Transaction receipt
await client.getNetworkInfo() // Chain info
// Transactions
await client.transfer(wallet, { to, amount, memo? })
await client.deployContract(wallet, { wasmBytes, initArgs })
await client.callContract(wallet, { contract, method, args, usdcAttached? })
await client.waitForTransaction(hash, timeout?)
// WebSocket subscriptions
const unsub = client.onNewBlock((block) => { ... })
const unsub = client.onTransaction(address, (tx) => { ... })
client.disconnect()
import { DinaContract, TokenContract, AgentWalletContract } from 'dina-js';
// DRC-1 Token
const token = DinaContract.token(tokenAddress, client);
await token.balanceOf(address)
await token.transfer(wallet, to, amount)
await token.approve(wallet, spender, amount)
// DRC-101 Agent Wallet
const agent = DinaContract.agentWallet(agentAddress, client);
await agent.executeTransfer(wallet, to, amount)
await agent.spendingStats()
await agent.emergencyStop(wallet)
import { PaymentChannel } from 'dina-js';
const channel = new PaymentChannel(wallet, client);
const channelId = await channel.open(counterparty, 100_000_000n); // 100 USDC
const signedState = await channel.pay(channelId, 1_000_000n); // 1 USDC (instant, off-chain)
await channel.close(channelId); // Settle on-chain
fetch and cryptoRPC: http://35.184.213.248:8545
REST: http://35.184.213.248:8080
Chain ID: dina-testnet-1
MIT
FAQs
TypeScript SDK for Dina Network — the fastest blockchain with parallel wallets, parallel execution, and 94 DRC standards
We found that dina-js 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
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.