
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@gnosis.pm/safe-react-gateway-sdk
Advanced tools
[](https://www.npmjs.com/package/@gnosis.pm/safe-react-gateway-sdk)
A TypeScript SDK for the Safe Client Gateway
NB: Safe Client Gateway isn't meant for public use. Please do not use this SDK if you're building, e.g., a Safe App.
Install:
yarn add @gnosis.pm/safe-react-gateway-sdk
Import:
import { getChainsConfig, type ChainListResponse } from '@gnosis.pm/safe-react-gateway-sdk'
Use:
const chains = await getChainsConfig()
The SDK needs no initialization unless you want to override the base URL, which defaults to https://safe-client.gnosis.io. You can set an alternative base URL like so:
import { setBaseUrl } from '@gnosis.pm/safe-react-gateway-sdk'
// Switch the SDK to dev mode
setBaseUrl('https://safe-client.staging.gnosisdev.com')
The full SDK reference can be found here.
Endpoint types are defined in src/types/gateway.ts
.
Each endpoint consists of:
src/index.ts
(e.g. getBalances
)'/chains/{chainId}/safes/{address}/balances/{currency}/'
)safes_balances_list
)To add a new endpoint, follow the pattern set by the existing endpoints.
This command will run before every commit:
yarn eslint:fix
To run the unit and e2e tests locally:
yarn test
N.B.: the e2e tests make actual API calls on staging.
The TypeScript types in this SDK are based on Rust types from the Gateway API.
FAQs
[](https://www.npmjs.com/package/@gnosis.pm/safe-react-gateway-sdk)
The npm package @gnosis.pm/safe-react-gateway-sdk receives a total of 7,156 weekly downloads. As such, @gnosis.pm/safe-react-gateway-sdk popularity was classified as popular.
We found that @gnosis.pm/safe-react-gateway-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.