
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@mimjs/investorapi
Advanced tools
Модуль для работы с API vk mini app инвестор
Для начала использования, вам нужно создать в своей папке исполняемый файл, пусть это будет index.js
Теперь его нужно открыть и импортировать библиотеку:
const InvestorApi = require('@mimjs/investorapi');
const client = new InvestorApi({
uid: айди страницы вк,
url: "https://prod-app7689931-9e82ad376a9f.pages-ac.vk-apps.com/index.html?vk_access_token_settings=&vk_app_id=7689931&vk_are_notifications_enabled=1&vk_is_app_user=1&vk_is_favorite=1&vk_language=ru&vk_platform=desktop_web&vk_ref=quick_search&vk_ts=***&vk_user_id=***&sign=***"
});
Пробует подключится к серверу по вашим данным
async function run() {
await client.connect();
}
run().catch(console.error);
Получить свои балансы
async function run() {
const result = await client.getMyBalance().catch((e) => console.log(e));
console.log(result);
}
run().catch(console.error);
Отправить USD/BTC/ETH любому пользователю/группе
async function run() {
const result = await client.sendPayment(toId, sum, recieverType, currencyType).catch((e) => console.log(e));
console.log(result);
}
run().catch(console.error);
| Параметр | Тип | Описание | По умолчанию |
|---|---|---|---|
| toId | Number | Id пользователя/группы, которому нужно отправить коины | нет |
| sum | Number | Сумма, которую нужно отправить пользователю | нет |
| recieverType | String | Тип получателя ( user, community ) | user |
| currencyType | String | Тип валюты для перевода ( USD, BTC, ETH ) | USD |
Получить историю переводов USD от пользователей на свой аккаунт
async function run() {
const result = await client.getMyHistory().catch((e) => console.log(e));
console.log(result);
}
run().catch(console.error);
Получить награду за просмотр рекламы, без просмотра рекламы
async function run() {
const result = await client.getAdReward().catch((e) => console.log(e));
console.log(result);
}
run().catch(console.error);
FAQs
api for vk mini app investor
We found that @mimjs/investorapi demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.

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.