
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@heliofi/sdk
Advanced tools
A lightweight and easy-to-use SDK for interacting with the Helio API. Supports API key endpoints only.
It wraps and enhances the Helio API away into one NPM package which is easy to install and upgrade.
The Helio SDK is written in Typescript.
Please use the latest production version. Only used ALPHA versions if advised to do so.
npm i @heliofi/sdk
or
yarn add @heliofi/sdk
IMPORTANT: You will also need to add the following line in your code, ideally at the very top of the project:
import 'reflect-metadata';
import { HelioSDK } from '@heliofi/sdk';
const sdk = new HelioSDK({
apiKey: 'your-public-api-key',
secretKey: 'your-secret-key',
network: 'mainnet', // or 'devnet' (optional, mainnet by default)
});
const paylink = await sdk.paylink.create(createPaylinkDto);
const paylinkWebhook = await sdk.paylinkWebhook.create(createPaylinkWebhookDto);
Methods | Params | Return |
---|---|---|
Paylink | ||
paylink.create | dto: CreatePaylinkWithApiDto | ShallowEnrichedPaylink |
paylink.update | paylinkId: string; dto: UpdatePaylinkWithApiDto | Paylink |
paylink.disable | paylinkId: string | boolean |
Currency | ||
currency.getAllCurrencies | type?: CurrencyType | Currency[] |
Transaction | ||
transaction.getTransaction | transactionSignature: string | Transacion |
Paylink Webhook | ||
paylinkWebhook.createPaylinkWebhook | dto: CreatePaylinkTransactionHookDto | PaylinkTransactionHookEntity |
paylinkWebhook.getAllPaylinkWebhooks | paylinkId: string | PaylinkTransactionHookEntity[] |
paylinkWebhook.getPaylinkWebhook | webhookId: string | PaylinkTransactionHookEntity |
paylinkWebhook.deletePaylinkWebhook | webhookId: string | void |
Subscription Webhook | ||
subscriptionWebhook.createSubscriptionWebhook | dto: CreatePaylinkSubscriptionHookDto | PaylinkSubscriptionHookEntity |
subscriptionWebhook.getAllSubscriptionWebhooks | paylinkId: string | PaylinkSubscriptionHookEntity[] |
subscriptionWebhook.getSubscriptionWebhook | webhookId: string | PaylinkSubscriptionHookEntity |
subscriptionWebhook.deleteSubscriptionWebhook | webhookId: string | void |
FAQs
A lightweight and easy-to-use SDK for interacting with the Helio API.
The npm package @heliofi/sdk receives a total of 174 weekly downloads. As such, @heliofi/sdk popularity was classified as not popular.
We found that @heliofi/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.