You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: architecture/pricing-fees.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ icon: 'diagram-project'
7
7
8
8
## Fee Model
9
9
10
-
The protocol is free to integrate for any app.
10
+
The protocol is free to integrate for any app. The fee for Trails is paid by the end-user which includes:
11
11
12
-
Trails has a fee model competitive with the market which consists of a percentage of the transaction volume exchanged when orchestrating a transaction paid by the user when a bridge or swap is part of the orchestration. Notably, these are not static and scale down significantly with the value transacted, therefore higher transaction volume amounts will result in less fees for the user.
12
+
- Gas fees on the origin and destination chains
13
+
- Included fees for liquidity providers or bridges
14
+
- Trails protocol fee which scales significantly down with the amount of volume (in USD) transacted
toAddress="0x97c4A952b46bEcaD0663f76357d3776ba11566E1"// contract or wallet address of recipient
48
53
toAmount="1"
49
54
toChainId={8453}
50
55
toToken="USDC"
@@ -57,35 +62,13 @@ To install on your own application:
57
62
58
63
59
64
## Next steps
65
+
Trails is optimized for a variety of common use cases or flows for your application:
60
66
61
-
-[Pay](/use-cases/pay): Buy NFTs, RWAs, or any asset using any token from any chain; Trails aggregates balances and handles bridging, swapping, and execution.
62
-
-[Swap](/use-cases/swap): Cross-chain token swaps in a single confirmation with unified liquidity and optimal routing—no manual bridging or DEX hopping.
63
-
-[Fund](/use-cases/fund): Deposit into a chain, app, or protocol from any token on any chain in one flow; Trails optimizes routes and handles swaps/bridges.
64
-
-[Earn](/use-cases/earn): Deposit into vaults/pools (e.g., Aave) with automatic swap/bridge to the required asset; confirm once and start earning.
65
-
66
-
-[Configuration](/sdk/configuration): Full list of variables to customize Trails including different modes, theming, enabling gasless transactions, events, and quote providers.
67
-
68
-
69
-
## Script Import
70
-
71
-
While we recommend using the React component, you can also embed via a script tag in a non-React site.
-**[Pay](/use-cases/pay)**: Enable cross-chain, 1-click payments with any token for ecommerce platforms, NFT marketplaces, real-world asset purchases, and minimal-slippage stablecoin transactions.
68
+
-**[Swap](/use-cases/swap)**: Embed low-latency, highly liquid cross-chain token swaps for your applications.
69
+
-**[Fund](/use-cases/fund)**: Maximize TVL and transaction velocity through fully brandable funding widgets for protocol deposits such as perpetual exchanges, chain deposits, and liquidity provisioning.
70
+
-**[Earn](/use-cases/earn)**: Streamline DeFi yield opportunities by enabling deposits from your app into already integrated tokenized vaults, lending pools, and yield strategies from any token on any chain.
71
+
-[Configuration](/sdk/configuration): Full list of variables & hooks to customize Trails including different modes, theming, enabling gasless transactions, events, and quote providers.
Copy file name to clipboardExpand all lines: intro.mdx
+17-18Lines changed: 17 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,50 +1,49 @@
1
1
---
2
2
title: What is Trails
3
-
description: Intent powered multichain transaction rails to pay, swap, fund, or earn in 1-click with any wallet, token or chain.
3
+
description: Multichain transaction rails to pay, swap, fund, or earn in 1-click with any wallet, token or chain - powered by intents.
4
4
---
5
5
6
6
7
7
## Overview
8
8
9
-
Trails is a multi-chain orchestration protocol that enables 1-click simplified and fast transactions from any wallet seamlessly with unified user liquidity across all chains.
10
-
In contrast to typical cross-chain offerings, Trails sources liquidity and aggregates all user balances for every token across every chain in a user's wallet
11
-
as options for any transaction (ie. payment) on a destination chain. Trails is architected as a trustless system that
9
+
Trails is a chain abstraction orchestration protocol that enables 1-click transactions from any wallet seamlessly with unified user liquidity across all chains.
10
+
In contrast to typical cross-chain solutions, Trails sources liquidity and aggregates all user balances for every token across every chain in a user's wallet
11
+
as options for any transaction on a destination chain. Trails is architected as a trustless system that
12
12
works on top of existing bridging, filler, or solver infrastructure. Trails is free to integrate and is optimized for a variety of use cases, for example:
13
13
14
14
-**[Pay](/use-cases/pay)**: Enable cross-chain, 1-click payments with any token for ecommerce platforms, NFT marketplaces, real-world asset purchases, and minimal-slippage stablecoin transactions.
15
-
-**[Swap](/use-cases/swap)**: Embed low-latency, highly liquid cross-chain token swaps for DeFi applications, portfolio management tools, and trading platforms
16
-
-**[Fund](/use-cases/fund)**: Maximize TVL and transaction velocity through fully brandable funding widgets for protocol deposits, chain onboarding, and liquidity provisioning
15
+
-**[Swap](/use-cases/swap)**: Embed low-latency, highly liquid cross-chain token swaps for your applications.
16
+
-**[Fund](/use-cases/fund)**: Maximize TVL and transaction velocity through fully brandable funding widgets for protocol deposits such as perpetual exchanges, chain deposits, and liquidity provisioning.
17
17
-**[Earn](/use-cases/earn)**: Streamline DeFi yield opportunities by enabling deposits into tokenized vaults, lending pools, and yield strategies from any token on any chain
18
18
19
19
## Key Features
20
20
21
21
### 1-click transactions
22
-
- Payments occur in a single confirmation with any wallet, regardless if it's an EOA, account abstraction wallet, or EIP-7702 enabled.
23
-
- Developers simply specify payment intent (e.g., "purchase NFT #123 with 30 USDC") for a user to confirm.
24
-
- Built-in multichain real-time indexing to automatically return user's wallet balances & prices. No additional vendor license required.
22
+
- Transactions occur in a single confirmation with any wallet, regardless if it's an EOA, account abstraction wallet, or EIP-7702 enabled.
23
+
- Developers simply specify payment intent (e.g., "purchase NFT #123 with 30 USDC") and a user can select any token across their wallet balance to pay.
25
24
26
25
### Universal User Liquidity
27
-
-Aggregates all user balances across every token and chain as payment options.
26
+
-Built-in multichain, real-time indexing to automatically return user's wallet balances & prices. No third-party dependencies necessary.
28
27
- Leveraging existing liquidity infrastructure such as DEX's, bridges, or aggregators, we support a vast array of tokens and chains.
29
28
30
29
### Blazing Fast
31
30
- Fast from anywhere, even with payments across chains using our intent-based architecture & relayer infrastructure.
32
-
- Protocol intelligently detects optimal route for payment fulfillment.
31
+
- Protocol intelligently detects optimal route for payment fulfillment and presents to the user in a streamlined UX.
33
32
34
33
### Scalable
35
34
- Trails can leverage virtually any existing cross-chain or liquidity infrastructure, including bridges, aggregators, and more.
36
35
- Relayer & Indexing infrastructure is lightweight and easily deployable to new chains.
37
36
38
37
## How Trails Works
39
38
40
-
1.**Define Intent (App)**: Create a payment transaction (mint, deposit, swap, etc) for any chain in any token.
41
-
2.**Trails Inspects (Trails SDK)**: Can this succeed with the assets held on current chain? Yes = Pass through. No = Continue Orchestration.
42
-
3.**Select Route (User)**: Trails presents an aggregated balance of the user's assets across all chains for the user to select from.
43
-
4.**Orchestrate Transaction (Trails SDK)**: Intelligently combines and optimizes swap + bridge + execute for the selected route to fulfill the transaction.
44
-
5.**Execute Transaction (Trails Intents)**: User confirms transaction via their wallet which executes the end to end to flow for the selected payment.
39
+
1.**App Defines Intent**: Create a payment transaction (mint, deposit, swap, etc) for any chain in any token.
40
+
2.**Trails SDK Inspects**: Can this succeed with the assets held on current chain? Yes = Pass through. No = Continue Orchestration.
41
+
3.**User Selects Route**: Trails presents an aggregated balance of the user's assets across all chains for the user to select from.
42
+
4.**Trails Orchestrates Transaction**: Intelligently combines and optimizes swap + bridge + execute for the selected route to fulfill the transaction.
43
+
5.**Execute Transaction**: User confirms transaction via their wallet which executes the end to end to flow for the selected payment.
45
44
46
45
This architecture enables developers to build sophisticated transaction experiences while abstracting the underlying complexity of multichain operations. All you have to do is specify what transaction and any payment options to execute
47
-
on a destination chain.
46
+
on a destination chain. Developers can pass in calldata to execute any arbitrary smart contract functions.
48
47
49
48
### Working with Trails
50
49
@@ -55,7 +54,7 @@ and does not require EIP-7702 enabled wallets. For more information please read
55
54
56
55
## Quickstart
57
56
58
-
Looking to integrate? [Get started](/get-started) and build natively cross-chain in minutes.
57
+
Looking to integrate? [Get started](/get-started) and build your app natively cross-chain in minutes.
Copy file name to clipboardExpand all lines: overview/1-click-payments.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Trails enables 1-click payments through an intent-based architecture that is abl
29
29
A unique intent contract address is computed based on the full transaction orchestration across multiple chains. The intent address encodes the details of both transactions on both the origin and destination
30
30
chains.
31
31
32
-
3.**Origin Deposit**
32
+
3.**Origin Transfer**
33
33
The user sends a single transaction to deposit their tokens (from any chain they hold funds on) into the intent address on the origin chain. Importantly, the user's wallet has full control over this intent address.
34
34
35
35
4.**Origin Chain Execution**
@@ -55,7 +55,7 @@ import { TrailsWidget } from '0xtrails/widget'
Copy file name to clipboardExpand all lines: overview/chain-abstraction.mdx
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
-
title: 'Unified User Liquidity'
2
+
title: 'Chain Abstraction'
3
3
description: 'Trails abstracts away complexities of interacting with multiple blockchain networks as well as aggregating balances from these chains for universal buying power.'
4
4
icon: 'layer-group'
5
5
---
6
6
7
7
8
-
## Maximizing Buying Power
8
+
## Universal User Liquidity
9
9
10
-
User wallet balances are typically fragmented across multiple networks. Not only is this cumbersome from a user experience perspective to manage where funds are held, this also limits the buying power on applications for any given payment as I can only use the funds on a single source chain at any time.
10
+
Current user wallet balances are fragmented across multiple chains, wallets, tokens. Not only is this cumbersome from a user experience perspective to manage where funds are held, this also limits the buying power on applications for any given payment as a user can only use the funds on a single source chain at any time.
11
11
12
-
In contrast, Trails is a chain-abstracted solution that hides the complexity of multiple blockchains from both developers and end users, creating a unified experience that feels like interacting with a single blockchain with a single, aggregated balance.
12
+
In contrast, Trails is a chain abstraction solution that simplifies the complexity of interacting with multiple blockchains from both developers and end users. This creates a unified experience for apps that enables users to pay with any token on any chain unlocking their full purchasing power.
13
13
14
14
## Cross-Chain vs Chain Abstraction
15
15
@@ -40,21 +40,20 @@ The standard cross-chain experience requires users to be aware of and manage mul
40
40
Trails is a chain abstraction solution that eliminates these complexities by:
41
41
42
42
-**Universal Buying Power**: Applications can enable users to pay in every token from every chain for any arbitrary payment, i.e., an NFT costs 60 USDC on Base, a user can purchase it using 30 USDC on Optimism and 30 Arbitrum seamlessly.
43
-
-**Unified User Interface**: Single point of interaction across all chains
44
-
-**Gasless Transactions**: Users don't need to hold specific gas tokens to interact across chains
43
+
-**Unified User Interface**: Single point of interaction across all chains. All app interactions can funnel through Trails to simplify flows.
44
+
-**Pay Gas in More Tokens**: Users don't need to hold specific gas tokens to interact across chains, any permit-compatible token can be used for end to end transactions.
45
45
-**Failure Recovery**: Built-in mechanisms to handle and recover from failed transactions
46
46
47
-
With chain abstraction, users interact with a unified layer that automatically handles all the underlying blockchain complexity with simple integration with Trails for developers - optimized for payments.
47
+
With chain abstraction, users interact with a unified layer that automatically handles all the underlying blockchain complexity with simple integration with Trails in their application.
48
48
49
49
50
50
## Unifying the Modular Ecosystem
51
51
52
52
Chain abstraction through Trails realizes the vision of modular blockchain networks, by unifying fragmented liquidity, enhancing buying power for users, and simplifying integration across networks.
53
53
54
-
By simplifying the payment process and removing the need for users to manually manage assets across different chains, Trails significantly reduces friction, which can lead to lower churn and cart abandonment rates.
54
+
By simplifying the transaction process and removing the need for users to manually manage assets across different chains, Trails significantly reduces friction, which can lead to lower churn and higher transaction volume.
55
55
56
56
## Coming Soon
57
57
58
58
-**Multi-token payments**: Pay with multiple tokens in a single transaction.
0 commit comments