
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@samanager/sdk
Advanced tools
A TypeScript SDK that enables integration of Smart Account Manager into your Dapp
npm install @samanager/sdk
import { announceSAManagerProvider, SAManagerProvider } from '@samanager/sdk'
// announce EIP-6963 provider
announceSAManagerProvider({
origin: "https://testnet.samanager.xyz", // optional; default is https://samanager.xyz
debug: true, // optional; will print console.log
})
// or use the provider directly
const provider = new SAManagerProvider({
origin: 'https://testnet.samanager.xyz',
})
await provider.request({
method: 'eth_requestAccounts',
params: [],
})
await provider.request({
method: 'eth_chainId',
params: [],
})
await provider.request({
method: 'eth_getBlockByNumber',
params: ['latest', false],
})
await provider.request({
method: 'wallet_switchEthereumChain',
params: [{ chainId }],
})
// EIP-5792 & ERC-7677
await provider.request({
method: 'wallet_getCapabilities',
params: [from, [chainId]], // the second parameter (chainId) is optional
})
const callIdentifier = await provider.request({
method: 'wallet_sendCalls',
params: [
{
version: '2.0',
chainId,
from,
atomicRequired: true,
calls: [
{
to: '0x96e44D241D3A6B069C3DF4e69DE28Ea098805b18',
value: '0x0',
data: '0xd09de08a',
},
],
capabilities: {
paymasterService: {
url: "",
context: {
name: "",
icon: "",
sponsorshipPolicyId: ""
},
},
},
},
],
})
await provider.request({
method: 'wallet_getCallsStatus',
params: [callIdentifier],
})
await provider.request({
method: 'wallet_showCallsStatus',
params: [callIdentifier],
})
This SDK is heavily based on the Coinbase Wallet SDK.
Many parts of the code are adapted or modified from the original Coinbase Wallet SDK repository.
We thank the Coinbase Wallet SDK team for their excellent work and open source contributions.
FAQs
A TypeScript SDK that enables integration of Smart Account Manager into your Dapp
The npm package @samanager/sdk receives a total of 13 weekly downloads. As such, @samanager/sdk popularity was classified as not popular.
We found that @samanager/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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.