New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ton-api/client

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ton-api/client

Autogenerated SDK for tonapi.io

  • 0.1.0-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.6K
decreased by-12.13%
Maintainers
0
Weekly downloads
 
Created
Source

@ton-api/client

Overview

This SDK, automatically generated, facilitates access to endpoints provided by tonapi.io. For detailed API information, visit the documentation.

To utilize tonapi, please set up an account.

Getting started

Install the package using npm or yarn:

npm install @ton-api/client
# or
yarn add @ton-api/client

Install the required peer dependencies:

npm install @ton/core
# or
yarn add @ton/core

Usage

Below is an example of how to use the SDK in your JavaScript project:

import { TonApiClient, Api } from '@ton-api/client';

// Configure the HTTP client with your host and token
const http = new TonApiClient({
    baseUrl: 'https://tonapi.io',
    apiKey: YOUR_TOKEN
});

// Initialize the API client
const client = new Api(http);

// Fetch a typed array of account events
const events = await client.accounts.getAccountEvents(address, { limit: 50 });

// Retrieve an NFT collection
const collection = await client.nft.getNftCollection(address);

// Obtain information about a specific jetton
const jetton = await client.jettons.getJettonInfo(address);

Keywords

FAQs

Package last updated on 17 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc