EVER SDK
Developer ToolsEver PlatformForum
  • Ever SDK
  • Quick start (JavaScript)
  • Add EVER to your backend
  • Reference
    • Types and Methods
      • Modules
      • Module abi
      • Module boc
      • Module client
      • Module crypto
      • Module debot
      • Module net
      • Module processing
      • Module proofs
      • Module tvm
      • Module utils
    • Error API
    • Error Codes
    • JavaScript Reference
    • Rust Reference
  • Samples
    • JavaScript Samples
  • guides
    • Installation
      • Add SDK to your App
    • Configuration
      • Endpoint Configuration
      • Message Expiration
      • Message Retry
      • Config Reference
    • Work with contracts
      • Add Contract to your App
      • Use your own Giver
      • Deploy
      • Run on-chain
      • Run ABI Get Method
      • Run Fift Get Method
      • Query/Subscribe for messages(events)
      • Decode Messages(Event)
      • External Signing
      • Emulate Transaction
      • Estimate Fees
      • Validate address, convert address
      • Monitor Messages
      • Trace message processing with REMP
    • Crypto
      • Mnemonics and Keys
    • Queries and subscriptions
      • Use-cases
      • How to work with net module
      • net.query syntax
      • Data pagination
      • Subscribe to Updates
      • Query Collection
      • Aggregate Collection
  • For Binding Developers
    • How to work with Application Objects in binding generators
    • JSON Interface to Ton Client
  • Links
    • Ever SDK repository
    • AppKit JS documentation
Powered by GitBook
On this page
  • Create TONClient
  • How to get my endpoint?
  • Local node
  • Evercloud
  • Self-hosted dedicated node
  • Dedicated Evercloud
  • Multiple endpoints configuration

Was this helpful?

  1. guides
  2. Configuration

Endpoint Configuration

PreviousConfigurationNextMessage Expiration

Last updated 1 year ago

Was this helpful?

Create TONClient

TONClient is the main class of Ever SDK Library. To start using library one needs to create and setup a TONClient instance.

The simplest initialization code can look like this: just specify the endpoint.

Other parameters are used by default. See the reference below for more info.

const client = new TonClient({
network: { 
    endpoints: [
        'your-endpoint-here'
    ] 
    } 
});

How to get my endpoint?

Local node

If you want to work with , specify in the endpoints

const client = new TonClient({
network: { 
    endpoints: [
        'http://localhost'
    ] 
    } 
});

Evercloud

const client = new TonClient({
network: { 
    endpoints: [
        'http://mainnet.evercloud.dev/your-project-id-here/graphql'
    ] 
    // access_key: "your-secret-here(optional, if you enabled "secret required" in your project)"
    } 
});

Self-hosted dedicated node

Dedicated Evercloud

Multiple endpoints configuration

If you have multiple endpoints in the same network, you can specify them all.

Library will automatically perform balancing based on endpoint health checks and availability.

const client = new TonClient({
network: { 
    endpoints: [
        'ENDPOINT_URL1', 
        'ENDPOINT_URL2', 
        'ENDPOINT_URL3'
    ] 
    } 
});

You can also configure the message broadcast - how many nodes you want your message to be sent (it may improve delivery rate) like this.

const client = new TonClient({
network: { 
    endpoints: [
        'ENDPOINT_URL1', 
        'ENDPOINT_URL2', 
        'ENDPOINT_URL3'
    ] 
    sending_endpoint_count: 3
    } 
});

If you don't want to manage your own infrastructure - get your Evercloud endpoints for free to Mainnet and Devnet and configure security settings here .

Check the full list of .

If you want to run your own dedicated node yourself - see thehow to run your dedicated node.

If you want your dedicated set of nodes to be run by Evernode Platform team, check this page .

local blockchain Evernode-SE
http://localhost
https://docs.everplatform.dev/products/evercloud/get-started
supported networks
Evernode-DS documentation
https://docs.everplatform.dev/products/dedicated-cloud-node