Skip to main content

Overview

The Trails SDK provides utilities to query supported chains and tokens across the network. These functions help you build dynamic UIs that adapt to available options.

Chain Utilities

Fetching Supported Chains

As a hook (React):
As a function (async):

Getting Chain Information

Chain Type

Token Utilities

Fetching Supported Tokens

All tokens (hook):
Filtered by chain (hook):
As a function (async):

Token Type

The unified Token type is used throughout the SDK:

Practical Examples

Dynamic Chain and Token Selectors

Finding Token Address by Symbol

Checking Token Availability

See Also