
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@ryftpay/ryft-sdk
Advanced tools
# with npm
npm install @ryftpay/ryft-sdk
# with yarn
yarn add @ryftpay/ryft-sdk
# with bun
bun add @ryftpay/ryft-sdk
The SDK must be configured with your account's secret key, available in the Ryft Dashboard. The SDK will automatically determine the environment based on the provided key. For example, sk_sandbox...
will point to sandbox
, while sk_live
will point to production
.
You can access the SDK and all of the methods and types by importing it as follows:
import { Ryft } from '@ryftpay/ryft-sdk';
You can pass your secret key via the Config
in the SDK constructor. For example:
const ryft = new Ryft({secretKey: 'sk_sandbox_1234567890'});
You can set the following environment variable, and the SDK will automatically pick it up:
RYFT_SECRET_KEY
[!NOTE] If you use env variables you don't have to pass your secret key to the config. This is handled for you
Every method returns a chainable promise which can be used instead of a regular callback. This allows you to either await
for the Promise
to resolve or use the then
and catch
keywords to handle the return.
Example with await
and catching the RyftError
try {
const resp = await ryft.accounts.get('acc_123456789');
} catch (e RyftError) {
console.log(e)
}
Example with then
and catch
ryft.accounts.get('acc_123456789')
.then((r) => console.log(r))
.catch((e) => console.log(e));
import { Ryft } from '@ryftpay/ryft-sdk';
const ryft = new Ryft({secretKey: 'sk_sandbox_1234567890'});
ryft.accounts.get('acc_123456789')
.then((r) => console.log(r))
.catch((e) => console.log(e));
1.2.0
This release includes the following:
cvc
can now be optional for MOTO paymentsFAQs
The official Ryft NodeJs SDK
We found that @ryftpay/ryft-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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.