![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@ton-api/client
Advanced tools
@ton-api/client
is an automatically generated SDK that provides seamless access to the endpoints offered by tonapi.io. This client is specifically designed to integrate with the TON blockchain, offering type-safe interactions and full compatibility with @ton/core library.
@ton/core
Additionally, @ton-api/ton-adapter
enables users to work with contracts written for @ton/ton
through @ton-api/client
, ensuring seamless integration while maintaining their existing code structure.
To use this SDK, you need to:
Install the package and its peer dependencies using npm, yarn, or pnpm:
npm install @ton-api/client @ton/core
# or
yarn add @ton-api/client @ton/core
# or
pnpm add @ton-api/client @ton/core
Here's a basic example to get you started:
import { TonApiClient } from '@ton-api/client';
import { Address } from '@ton/core';
// Initialize the TonApi
const ta = new TonApiClient({
baseUrl: 'https://tonapi.io',
apiKey: 'YOUR_API_KEY'
});
// Use the API
async function fetchAccountEvents() {
const address = Address.parse('YOUR_ADDRESS_HERE');
const events = await ta.accounts.getAccountEvents(address, { limit: 50 })
console.log('Account events:', events)
}
fetchAccountEvents();
For detailed API information and endpoint descriptions, please refer to the official documentation.
const collectionAddress = Address.parse('COLLECTION_ADDRESS_HERE');
ta.nft.getNftCollection(collectionAddress)
.then(collection => console.log('NFT Collection:', collection))
.catch(error => console.error('Error fetching NFT collection:', error));
const jettonAddress = Address.parse('JETTON_ADDRESS_HERE');
ta.jettons.getJettonInfo(jettonAddress)
.then(jetton => console.log('Jetton Info:', jetton))
.catch(error => console.error('Error fetching jetton info:', error));
MIT
FAQs
Autogenerated SDK for tonapi.io
The npm package @ton-api/client receives a total of 2,663 weekly downloads. As such, @ton-api/client popularity was classified as popular.
We found that @ton-api/client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.