# Introduction

## Why Intents

Blockchain protocols are becoming increasingly versatile and complex. Today, users often need to interact with multiple protocols to achieve their goals.\
\
It's more practical for most users to focus on the WHAT rather than the HOW

Users should be able to define their desired outcomes and let the Solvers handle the rest.

<figure><img src="https://3548253646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzsuKmVKyjwseeiTE9zD%2Fuploads%2FwcGXd68j5w0zbwVF7Scm%2F01-05-2024%2022-38-48.png?alt=media&amp;token=a6fe1857-4cf3-42f7-850a-939f340ddc6b" alt=""><figcaption><p>Stop loss &#x26; Take profit Intent example</p></figcaption></figure>

Protocols generally emphasize features over strategies.&#x20;

For instance, a user might want to set a stop-loss on their staking assets, liquidity pool tokens, or yield farming positions. However, there isn't a universal "stop-loss" strategy that works across all protocols.&#x20;

Some protocols support this feature, while others do not, and sometimes a stop-loss strategy requires coordinating across multiple protocols.

For example, extracting LP tokens from staking might require sending them to a liquidity pool to withdraw assets, and then swapping one of those assets for a safer option.&#x20;

Intents enable this by allowing users to express such complex scenarios as an intent without needing to understand all the technical details.\
\
For a comparison of a use case done with and without intent, see [here](/intents-vs.-traditional-methods).

## The Benefits of Account Abstraction

Wallets based on private keys/seed phrases, which represent the majority of wallets in use today, have significant limitations when it comes to executing transactions.<br>

For instance, signed transactions can't be deferred, failed transactions can't be retried, transaction batching isn't supported, and a wallet must have enough of the native token to pay for gas fees. These are just a few of the constraints that limit their flexibility. (see[ full list](/capabilities))

{% hint style="info" %}
Intents can be integrated into any contract, expanding the range of use cases beyond those typically associated with Account Abstraction (AA).
{% endhint %}

{% hint style="info" %}
Intentable supports [EIP-3074](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3074.md)  as an alternative to account abstraction, allowing you to run intents directly from your wallet.
{% endhint %}

## The Benefits of EIP-712

The old saying, "[Not your keys, not your coins](/platform)," remains relevant, yet it's no longer enough.\
\
Gone are the simple times of just transferring coins where your wallet transparently showed what you were committing to.\
\
Today, most protocol interactions involve [blindly singing](/platform) an arbitrary array of bytes. Some wallets attempt to catch up by displaying user-friendly information, but they are limited in the protocols they support and in the functionality they provide.

Intents utilize the EIP-712 standard to display every contract call, including numbers, addresses, strings, arrays, tuples, and many other input types in a user-friendly manner. This approach provides users with full transparency into the inner workings of the intent's transactions, eliminating the need to rely solely on the UI where the intent was created.

Moreover, the flow and conditions are embedded in the EIP-712 message, enabling the user to review the entire intent plan on the trusted wallet display.

<figure><img src="https://3548253646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzsuKmVKyjwseeiTE9zD%2Fuploads%2FWFUdd7vDkIIsyHzA7e0N%2F02-05-2024%2018-04-11.png?alt=media&amp;token=8e4bb7bf-db60-4947-b48b-c5531a1d9103" alt=""><figcaption><p>EIP-712 </p></figcaption></figure>

## The benefits of No-Code Builder

**Speed:** In modern blockchain-based applications, time-to-market is crucial. There's a growing demand to tap into emerging markets and protocols while keeping up with the latest trends. No-code tools allow for rapid solution building and testing in a matter of hours rather than weeks, facilitating quick testing of various solutions and enabling a much faster response to market needs.

**Security:** No-code platforms are easier to test and encourage a more standardized approach to building applications. This standardization leads to fewer bugs and greater reliability, irrespective of the builder's technical skills.

**Builders**: No-code platforms empower domain experts to build applications without needing to rely on technical experts. This eliminates the need for programmers to partner with domain experts, resulting in more efficient and business-focused solutions.

## Why Solvers

The separation of responsibilities allows the entire system to function more efficiently. While builders specialize in strategy and business logic, solvers focus on the low-level technical aspects of monitoring and execution.

This structure enables each party to concentrate on its specific role:

:man:**Users:** Manage funds and make decisions.

:construction\_site:**Builders:** Develop strategies and manage business logic.

:clock730:**Solvers:** Monitor and execute processes.

**Example: Batch Sending of Salaries**

* **Users:** Provide funds and decide when to send salaries.
* **Builders:** Develop the Intent to manage invoice numbers, recipient names, and other relevant details.
* **Solvers:** Monitor the conditions and execute salary transactions when gas prices are low.

### What makes Intentable different from other solutions that focus on intent

**Current Situation of Solvers:** (<mark style="background-color:orange;">Using a different technology than Intentable</mark>)

Solvers are crucial in intent-centric blockchain systems for executing user-defined transactions efficiently. However, their intermediary role introduces potential vulnerabilities, primarily concerning security and trust. These solvers have the potential to gain undue control over user transactions, posing risks of misuse or theft of user funds.

**Difficulties:**

1. **Trust Issues:** Users need to trust solvers to execute transactions honestly, which could be challenging if solvers are compromised or act maliciously.
2. **Lack of Transparency:** The logic that solvers use may not always be clear, making it difficult to audit transactions and ensure they align with user intent.
3. **Security Risks**: With solvers having significant control, they could potentially carry out distributed denial-of-service (DDoS) attacks against the system. This could disrupt operations by flooding the network with false transactions or offering misleading rates.

   Example: Consider a user who wants to exchange 1 ETH at the best possible price, with the market rate being $4000. A fair solver would facilitate the transaction at around that price. However, a malicious solver could aim to execute a DDoS attack by offering an exchange rate of $4200.

   The malicious solver might then monopolize the transaction process, but without the intention to execute the transaction. This way, they can overwhelm the system with false offers, effectively "jamming" it and preventing legitimate solvers from operating, thereby causing service disruptions.

:smirk\_cat:**Profit-Taking Problem:** A significant challenge in the current solver system arises from conflicts of interest. When an opportunity for profit, such as arbitrage, presents itself, solvers may prioritize their own interests over the user's. This is comparable to "the cat keeping the cream," where solvers could identify profitable opportunities through their privileged access to user intentions and execute those trades for themselves instead of for the user.

### Intentable's advantages

In contrast, Intentable's system operates differently due to the clear separation between <mark style="background-color:purple;">**users**</mark>, <mark style="background-color:green;">**builders**</mark>, and <mark style="background-color:blue;">**solvers**</mark>. The system can operate in several modes:

**First Situation: The&#x20;**<mark style="background-color:purple;">**User**</mark>**&#x20;Is Also the&#x20;**<mark style="background-color:green;">**Builder**</mark> Here, the <mark style="color:purple;">user</mark> develops complex transaction logic without revealing it to the <mark style="color:blue;">solver</mark>. The <mark style="color:blue;">solver's</mark> role is similar to a miner's; they only verify whether the transaction can proceed based on predefined conditions.&#x20;

This setup is beneficial when there's a significant profit potential that might otherwise tempt a <mark style="color:blue;">solver</mark> to execute the transaction for themselves. By keeping the strategy hidden, the <mark style="color:purple;">user</mark> ensures that the solver cannot exploit it.

**Second Situation: The&#x20;**<mark style="background-color:blue;">**Solver**</mark>**&#x20;Activates the Logic** In this scenario, the <mark style="color:blue;">solver</mark> possesses all the <mark style="background-color:yellow;">know-how,</mark> and the <mark style="color:purple;">user</mark> merely specifies their requirements.&#x20;

For instance, a <mark style="color:purple;">user</mark> wants to exchange 1 ETH for no less than $4000. The <mark style="color:blue;">solver</mark> can search various sources, including decentralized exchanges (DEX), centralized exchanges (CEX), or even over-the-counter (OTC) markets, to find the best price or better. This way, the <mark style="color:purple;">user</mark> gets their desired rate, and the <mark style="color:blue;">solver</mark> earns a profit without revealing their source or profit margin.

**Third Mode:&#x20;**<mark style="background-color:purple;">**User**</mark>**&#x20;Builds Complex Logic with&#x20;**<mark style="background-color:blue;">**Solver**</mark>**&#x20;Involvement** This mode is a blend of the first situation, with added benefits of solver involvement. For example, a <mark style="color:purple;">user</mark> might buy an asset to sell it elsewhere for a significant profit, but needs a flash loan worth millions to complete the transaction. Here, the <mark style="color:purple;">user</mark> constructs the entire logic but relies on the <mark style="color:blue;">solver</mark> to provide a cheaper flash loan to carry out the transaction.

**Fourth Mode: Off-Chain Information Triggers Transactions** For instance, a <mark style="color:purple;">user</mark> wants to purchase a certain coin but is unsure which one. They might follow Elon Musk and want to buy whatever coin he mentions. They can create a transaction with a hash code and use a service like [Zapier ](https://zapier.com/)to send the hash to a webhook, which then activates the pre-built transaction with all the relevant details. The <mark style="color:blue;">solver</mark> detects that the transaction can proceed and executes it.

**Fifth Mode:&#x20;**<mark style="background-color:green;">**Builder**</mark>**&#x20;Prepares Transactions and&#x20;**<mark style="background-color:blue;">**Solver**</mark>**&#x20;Executes** In this scenario, three players are involved: the <mark style="color:green;">builder</mark>, <mark style="color:purple;">user</mark>, and <mark style="color:blue;">solver</mark>. The <mark style="color:green;">builder</mark> shares knowledge of potential future transactions for a possible profit. The <mark style="color:purple;">user</mark> sets conditions for the transaction, while the <mark style="color:blue;">solver</mark> acts as a simple operator, similar to a miner, executing the transaction according to the <mark style="color:green;">builder's</mark> predefined rules.

<br>

<br>


# Platform

## Core Architecture (Smart Contract)

## Core (Contracts)

The intent platform is constructed from several contracts as follows:

**Engines**:

* These contracts are responsible for parsing and executing Intents. They form the operational backbone of the platform, handling the core logic and functionality.

**Controller**:

* This is a singular, immutable smart contract that serves as a central proxy for the Engines. It ensures consistent, secure interactions and is designed to be non-upgradable and non-replaceable to maintain integrity.

**Runners**:

* These contracts are tasked with executing call requests from Engines as part of activating an Intent. They function as intermediaries that facilitate the operational flow within the system.

## Actuation and Tokenomics

#### **Actuator (**&#x55;sed by Solvers)

* The Actuator is pivotal in activating Intents. It channels calls through the Controller and also handles the execution of payments, integrating closely with the tokenomics mechanisms.

#### Tokenomics

This contract implements the platform’s tokenomics algorithm. It is triggered by the Actuator (Smart Contract) to compute payment calculations, ensuring that economic incentives and distributions align with the platform’s objectives

#### Extensions

* These are additional contracts that augment the intent system with specialized functionalities such as Token Math, Safe Storage, etc. They enhance the platform’s capabilities and provide customized solutions to specific needs.

## Intent Language Overview: FCT (Future Conditional Transaction) (layer)

**Description**:

FCT is a high-level, on-chain language designed for transaction-level operations. It adheres to the EIP-712 v4 standard as a typed message, presented in a user-friendly format to ensure transparency for users. FCT supports variables, return values from calls, conditions, and flow control elements. Importantly, it is deliberately designed to be non-Turing complete to maintain simplicity and security.

**Functional Capabilities**:

**Intentable's Platform Contracts**: These contracts are designed to transcode FCT (Future Conditional Transaction) messages on-chain in real time into executable EVM (Ethereum Virtual Machine) code. This allows for FCT to encapsulate one or more calls, which are executed as a single atomic transaction. This process enhances the standard transaction functionalities by integrating advanced features such as:

* Time-framed execution of calls,
* The ability to enable or block signed transactions,
* Support for multiple senders,
* Built-in multisignature capabilities,
* Recurring transactions with rate limiters, and more.

**Ecosystem and Integration**: The FCT ecosystem comprises three main roles:

* Builders (developers) who create and maintain the FCT-based solutions.
* Solvers (akin to miners) who process and validate FCT transactions.
* Users who interact with the FCT-enabled features.

Currently, FCT is operational on Intentable’s Account Abstraction (AA) platform, but it is designed to be compatible with any contract that adheres to the FCT\_Runner interface.

**Applications**:&#x20;

FCT empowers developers to craft intents that can merge several existing protocols into a cohesive operation, or introduce additional functionalities to a specific protocol, such as a stop-loss feature for staking. This is achieved without the need for traditional smart contract development, thereby streamlining the integration and enhancement of blockchain protocols. By using FCT, developers can not only expand the capabilities of individual protocols but also create complex, multi-protocol interactions, unlocking new possibilities in blockchain application design.

## SDK Overview

The SDK helps developers to build an Intent-centric, FCT-based dApp. It can be used on both backend and frontend, you can use it to build Intents, interact with the Inetnt platform, monitor positions, assets and manage your Intents.

**Intent-Centric Development**: The SDK is designed to assist developers in creating Intent-centric, FCT-based decentralized applications (dApps). It supports both backend and frontend development, enabling the construction of Intents, interaction with the Intent platform, and comprehensive management of positions, assets, and Intents.

### Packages Included in the SDK

**Platform Package**: This package facilitates direct interaction with the blockchain through the platform’s smart contracts, enhancing user engagement and control. For further details, you can explore more information on our platform page.

**Core Library**: The Core Library provides all the essential tools required to build Intents from the ground up. It forms the foundation for Intent development within the SDK.

**Plugins**: Designed to streamline the Intent creation process, these plugins leverage the Core Library, offering additional functionalities that simplify the development workflow.

**Builder**: The FCT Builder Library simplifies the production, organization, and compilation of Ethereum transactions in a graph-based format. For more detailed information and examples, visit the FCT Builder section.

**Service Package**: This package offers a One-Stop-Shop service, allowing developers to publish Intents directly and access real-time data, such as the status, fuel, and assets associated with their Intents.


# Intent Structure

<br>


# Meta

Holds FCT's meta information

The address of the creator of this Intent that will get rewards according to the tokenomics defined on the FCT\_Tokenomics contract.

{% hint style="warning" %}
If the name is attached to a builder address in the FCT\_Tokenomics contract that address will override the builder address defined here
{% endhint %}

### selector

Holds the FCT Engine called function selector, the first four bytes of the Keccak-256 hash of the signature of the *batchMultiSigCall* function inside the FCT\_BatchMultiSig contract.

{% hint style="danger" %}
Must be "**0xb91c650e**" for current FCT\_BatchMultiSig interface
{% endhint %}

### version

Holds the version number of a specific implementation of the FCT Engine called function

FCT supports using different implementation of the same interface by adding version numbers resulting in an "extended function selector".&#x20;

FCT follows the Semantic Versioning standard:\
0xMMmmpp\
MM - Major Version (up-to 256 values)\
mm - Minor Version (up-to 256 values)\
pp - Patch Version  (up-to 256 values)

{% hint style="success" %}
0x010A04 represents version 1.10.4&#x20;
{% endhint %}

{% hint style="info" %}
FCT Engine will preserve backward compatibility for minor and patch version changes while major version changes indicates breaking changes
{% endhint %}

{% hint style="warning" %}
The FCT\_Runner gets the interface and version before executing and can implement any versioning logic. See "vault versioning" for current vault implementation
{% endhint %}

### random\_id

FCT protects against double spending by keeping the hashes of executed messages.

In order to enable executing FCTs that holds the exactly same content more than once, without using the recurrency feature, there is a need to make all FCT's hashes unique. In order to do that, every FCT message holds a free random value.

{% hint style="info" %}
random\_id may hold any number between 0 and 16777215 represented by bytes3 value&#x20;
{% endhint %}

{% hint style="info" %}
random\_id is relevant only in the case where all fields of two FCTs holds exactly the same values, e.g. sending the same amount to the same address&#x20;
{% endhint %}

### eip712

A boolean that tells the FCT Engine, the message format, the current FCT was signed.\
If the value is true, FCT is expected to be formatted as a standard EIP-712 message.\
If this values if false, FCT is expected to be formatted as a standard EIP-191 message.


# Limits

Global limits for running and managing FCTs

{% code overflow="wrap" %}

```solidity
Limits(uint40 valid_from,uint40 expires_at,uint64 gas_price_limit,bool purgeable,bool blockable)
```

{% endcode %}

## Params

| Name              | Type   |
| ----------------- | ------ |
| `valid_from`      | uint40 |
| `expires_at`      | uint40 |
| `gas_price_limit` | uint64 |
| `purgeable`       | bool   |
| `blockable`       | bool   |

### valid\_from

Defines the date and time from which signed FCT can be executed on-chain.

{% hint style="info" %}
Number of seconds since January 1, 1970
{% endhint %}

### expires\_at

Defines the date and time from which signed FCT cannot be executed anymore.&#x20;

{% hint style="info" %}
Number of seconds since January 1, 1970
{% endhint %}

### gas\_price\_limit

The max gas price that can be used by the activator when running this FCT.

{% hint style="success" %}
The tokenomics encourage activators to decrease the gas price by as much as possible, so only in rare cases the actual gas price will reach this limit.
{% endhint %}

### purgeable

When purgeable is true, on-chain information of an expired FCT can be removed from the blockchain by the activators as part of running newer FCTs. This will clean-up the blockchain from unused stored data and will reduce the overall gas usage of the transaction.&#x20;

{% hint style="warning" %}
If the FCT is part of cross FCTs logic, "false" should be used to ensure that the data is always available on-chain.
{% endhint %}

### blockable

FCT Engine sends the FCT's message hash to the FCT\_Runner upon execution requests of calls.\
It allows the runner to block specific signed FCTs from executing on the blockchain.&#x20;

{% hint style="info" %}
The vault implements functions to block and unblock "blockable" FCTs
{% endhint %}

{% hint style="warning" %}
The FCT runner might override this functionality, e.g. implementing "blocking all FCTs" function that blocks all FCT regardless of the "blockable" field
{% endhint %}


# Recurrency (Optional)

The ability to run the same FCT many times

## Typed Struct (EIP712)

{% code overflow="wrap" %}

```solidity
Recurrency(uint16 max_repeats,uint32 chill_time,bool accumetable)
```

{% endcode %}

## Params

| Name          | Type   |
| ------------- | ------ |
| `max_repeats` | uint16 |
| `chill_time`  | uint32 |
| `accumetable` | bool   |

### max\_repeats

Number of time the same FCT can be executed

{% hint style="success" %}
Can be used whenever multiple spending is required, e.g. for recurring payments, subscriptions, etc.
{% endhint %}

### chill\_time

The minimum time between repetitive executions

{% hint style="info" %}
In seconds
{% endhint %}

### accumetable

When set to "false", the chill\_time is calculated from the last time the FCT was executed.\
When set to "true", chill time is calculated from the end timestamp of previous chill time, regardless if the FCT was executed or not.

{% hint style="info" %}
For example: The accumetable is set to "true" and chill\_time is set to "7 days".\
Now if three weeks has passed from last executing of the FCT, it is possible to execute the FCT three times immediately. &#x20;
{% endhint %}

{% hint style="success" %}
accumatable is useful for subscription when the payments interval are fixed and not influenced by the timing of the actual payments.
{% endhint %}


# MultiSig (Optional)

Enabling external signers with M out of N paradigm

## Typed Struct (EIP712)

{% code overflow="wrap" %}

```solidity
Multisig(address[] external_signers,uint8 minimum_approvals)
```

{% endcode %}

## Params

| Name                | Type   |
| ------------------- | ------ |
| `external_signers`  | uint16 |
| `minimum_approvals` | uint32 |

### external\_signers

FCT supports adding accounts as an external signers that are not part of the FCT\_Runners smart contracts that execute calls. (the [from field](broken://pages/Eh3kshuEhCOeqVJGMab9#from) on each call)\
External signers can be smart contracts or external owned accounts (EOA)

### minimum\_approvals

The number of external signatures needed to be able to executing the FCT.&#x20;

{% hint style="warning" %}
The same external signer can be listed more than once to simulate levels of permissions
{% endhint %}

{% hint style="success" %}
Setting the minimum to 2 and the external signers to \[address1, address1, address2, address3] means that in order to approve the FCT, address2 and address3 need to sign, while address1 can approve the FCT exclusively.
{% endhint %}


# Computed (Optional)

## Typed Struct (EIP712)

```solidity
Computed(uint256 index,uint256 value,uint256 add,uint256 sub,uint256 pow,uint256 mul,uint256 div,uint256 mod)
```

## Params

| Name    | Type    |
| ------- | ------- |
| `index` | uint256 |
| `value` | uint256 |
| `add`   | uint256 |
| `sub`   | uint256 |
| `pow`   | uint256 |
| `mul`   | uint256 |
| `div`   | uint256 |
| `mod`   | uint256 |

### index

Sequential number.

{% hint style="warning" %}
In order to prevent loops, computed input value is not allowed from the result of a previous computed.
{% endhint %}

### var

Input variable.\
Can be any constant value or a variable (externa, returned data, etc), except computed variable with a lower or equal index.

{% hint style="success" %}
Computed can use the result of another computed as an input value.
{% endhint %}

{% hint style="success" %}
"var", "add", "sub", "mul", "div", ect. can hold simple numbers, variables, or computed values.
{% endhint %}

### Formula

$$
result = ((var + add - sub)^{pow} \* mul / div )\bmod{mod}
$$


# Calls

Every FCT must have at least one call.

Each call defines one executing of a smart contract function or a transfer of native token (ETH) to an address

All calls that exist inside an FCT are executed on the the same native blockchain transaction.\
This makes FCT atomic regardless of the number of contracts and accounts involved in execution.&#x20;


# Call Header

{% hint style="success" %}
For example, FCT Runner can allow a specific address (child account) to run only FCTs that has 0x0001 permission, while limiting execution of FCTs with 0x0001 permissions in terms of protocols, amounts and rate.&#x20;
{% endhint %}

### flow\_control

FCT supports if/then functionality via the flow\_control field combined with the "jump on" fields.

flow\_control is defined using human readable string, so the user can easily see the flow condition.

<table><thead><tr><th width="219">EIP712 String</th><th width="89">Value</th><th>Meaning</th></tr></thead><tbody><tr><td>"continue on success, revert on fail"</td><td>0</td><td>If call reverts, revert the whole FCT, otherwise, continue to the next call according to the jump_on_success field</td></tr><tr><td>"continue on success, stop on fail"</td><td>1</td><td>If call reverts, stop FCT execution (previous calls are not reverted), otherwise, continue to the next call according to the jump_on_success field</td></tr><tr><td>"continue on success, continue on fail"</td><td>2</td><td>Whether call reverts or not, continue to the next call according to the jump_on_success and  jump_on_fail fields respectively </td></tr><tr><td>"revert on success, continue on fail"</td><td>3</td><td>If call reverts, continue to the next call according to the jump_on_fail field, otherwise, revert the whole FCT</td></tr><tr><td>"revert on success, stop on fail"</td><td>4</td><td>If call reverts, stop FCT execution (previous calls are not reverted), otherwise, revert the whole FCT</td></tr><tr><td>"stop on success, continue on fail"</td><td>5</td><td>If call reverts, continue to the next call according to the jump_on_fail field, otherwise, stop FCT execution (previous calls are not reverted)</td></tr><tr><td>"stop on success, revert on fail"</td><td>6</td><td>If call reverts, revert the whole FCT, otherwise, stop FCT execution (previous calls are not reverted)</td></tr><tr><td>"stop on success, stop on fail"</td><td>7</td><td>Whether call reverts or not, stop FCT execution (previous calls are not reverted)</td></tr></tbody></table>

{% hint style="info" %}
if/then blocks can be achieved by using one of the "cont" flow controls and setting the "jump\_on" values&#x20;
{% endhint %}

### jump\_on\_success

Part of the flow control.\
Specify the amount of calls to jump over when current call succeed.\
When setting to 0 and the current call succeed, the adjacent call will be executed.  &#x20;

{% hint style="info" %}
This value is ignored when "stop on success" or "revert on success" is being used
{% endhint %}

### jump\_on\_fail

Part of the flow control.\
Specify the amount of calls to jump over when current call fails.\
When setting to 0 and the current call fails, the adjacent call will be executed.  &#x20;

{% hint style="info" %}
This value is ignored when "stop on fail" or "revert on fail" is being used
{% endhint %}

### method\_interface

The name of the function to be called followed by type-names, in parentheses, without any spaces.\
This is used in order to calculate the function signature and selector.\
See more info [here](https://ethereum.stackexchange.com/questions/135205/what-is-a-function-signature-and-function-selector-in-solidity-and-evm-language)

{% hint style="info" %}
ERC20 transfer method interface looks like this:  "transfer(address,uint256)"
{% endhint %}


# Call Params

Call params holds the abi encoded params of a function call.

It can be EIP712 struct type or bytes type.

When using complex types, e.g. strings, arrays, bytes, etc. inside a struct type, types list must be sent with the EIP712 message in order for the FCT\_Engine to reconstruct the EIP712 message from a given encoded abi. &#x20;


# Variables

Variables can be used either in calls params and in called function input params.

There is no type check for variables, so it is the responsible of the FCT builder & activator to do type checking offline.

In order to allow variables as part of a standard EIP712 message, rarely used values were chosen to represent variables.

Variables can be created from multiple sources:

* Injected by the activator when executing an FCT (External)&#x20;
* Returned data for previous calls (Returned Data)
* Runtime information taken from the EVM (Generic)


# External

External variables are provided to the FCT Engine as an array of bytes32 values by the activator. This values might contain any native type, e.g. uint256, bytes32, address, bool, etc.

#### Usage

*0xFC000....0000LLLL*\
*LLLL* holds the variable index inside the provided variable array (starting with 1)<br>

**External variable use four  range of values:**\
\
`For address types:`\
*`0xFC00000000000000000000000000000000000001`*\
`...`\
*`0xFC0000000000000000000000000000000000ffff`*\
\
`For uint256 and bytes32 types:`\
*`0xFC00000000000000000000000000000000000000000000000000000000000001`*\
`...`\
*`0xFC0000000000000000000000000000000000000000000000000000000000ffff`*<br>

{% hint style="success" %}
`FC stands for "Future Changeable"`
{% endhint %}

{% hint style="warning" %}
The activator sets values for variables when executing the FCT. Be careful when using external variables.
{% endhint %}

{% hint style="success" %}
A common use case is to build p2p swap FCT with two calls. The first one, for example, sending X tokens a variables address (0xFC...0001) and the second one is getting Y ether from that address (0xFC.....0001)
{% endhint %}


# Returned Data

Returned data are variables that are created automatically when executing FCT.\
This variables holds all the returned values from previous called functions of the current FCT execution.&#x20;

### How to use

The returned data are kept in bytes format for each call. That means that in order to use a variable there is a need to tell the FCT engine from what call and with what offset the value exist.

#### Usage

0xFD000....TTTTLLLL\
LLLL holds the call number (starting with 1)\
TTTT holds the offset in 32 bytes blocks inside the call

{% hint style="info" %}
`0xFD00000000000000000000000000000000020003 means the 64-96 bits of the returned data from the third call on the FCT will be used`
{% endhint %}

{% hint style="success" %}
`FD stands for "Future Data"`
{% endhint %}

0xFDB000....TTTTLLLL\
LLLL holds the call number (starting with 1)\
TTTT holds the reverse offset (backwards) in 32 bytes blocks inside the call

{% hint style="info" %}
`0xFDB0000000000000000000000000000000000003 means the last 32 bits of the returned data from the third call on the FCT will be used`
{% endhint %}

{% hint style="success" %}
`FDB stands for "Future Data in Backwards"`
{% endhint %}

**External variable use four  range of values:**\
\
`For address types:`\
\
`0xFD00000000000000000000000000000000000001`\
`...`\
`0xFD000000000000000000000000000000ffffffff`\
`and`\
`0xFDB0000000000000000000000000000000000001`\
`...`\
`0xFDB00000000000000000000000000000ffffffff`\
\
\
`For uint256 and bytes32 types:`

`0xFD00000000000000000000000000000000000000000000000000000000000001`\
`...`\
`0xFD000000000000000000000000000000000000000000000000000000ffffffff`\
`and`\
`0xFDB0000000000000000000000000000000000000000000000000000000000001`\
`...`\
`0xFDB00000000000000000000000000000000000000000000000000000ffffffff`<br>

{% hint style="warning" %}
Call number must be smaller than the current running call
{% endhint %}


# Computed

Computed are variables that takes a value or a variable and returns the following:

$$
result = ((var + a - b)^c \* d / e )\bmod{f}
$$

It can be used to do basic calculations on returned data without the need to add more calls.

#### usage

*0xFE000....0000LLLL*\
*LLLL* holds the computed result index on the [computed](broken://pages/K1KHN3C0ANu9bUXn4w58) struced list (starting with 1)


# Global

Global variables holds blockchain values that are connected to the running native transaction.&#x20;

### How to use

The returned data are kept in bytes format for each call. That means that in order to use a variable there is a need to tell the FCT engine from what call and with what offset the value exist.

#### Block Number

`0xFB0A000000000000000000000000000000000000`\
`or`\
`0xFB0A000000000000000000000000000000000000000000000000000000000000`<br>

#### Block Timestamp

`0xFB0B000000000000000000000000000000000000`\
`or`\
`0xFB0B000000000000000000000000000000000000000000000000000000000000`<br>

#### Gas Price

`0xFB0C000000000000000000000000000000000000`\
`or`\
`0xFB0C000000000000000000000000000000000000000000000000000000000000`<br>

{% hint style="success" %}
`FB stands for "Future Blockchain"`
{% endhint %}

#### `Miner` Address

`0xFA0A000000000000000000000000000000000000`<br>

#### &#x20;Activator Address

`0xFA0D000000000000000000000000000000000000`<br>

#### &#x20;Funder Address

`0xFA0C000000000000000000000000000000000000`<br>

{% hint style="success" %}
`FA stands for "Future Address"`
{% endhint %}

#### Block Hash

Hash of one of the recent 256 blocks. The number is the distance from the current block.\
The available range is:\
`0x00FF00000000000000000000000000000000000000`\
`...`\
`0x00FF000000000000000000000000000000000000ff`\
\
`or` \
\
`0xFF00000000000000000000000000000000000000000000000000000000000000`\
`...`\
`0xFF000000000000000000000000000000000000000000000000000000000000ff`

{% hint style="info" %}
If current block is 10,400,100 "**0xFB0D**000....000**2**" holds the hash of block 10,400,097
{% endhint %}


# Intents vs. traditional methods

### Intent

If address 0x1234...23422 holds less than 60% of the pool, I want to remove my TOKEN\_X / WETH from the liquidity pool and swap all my TOKEN\_X to USDC.<br>

### Traditional (Manually)

1. Use \<tool1> or \<tool2>  to create an email or telegram alert for any changes in the TOKEN\_X/WETH Uniswap V2 pool
2. Alternatively, monitor the pool every few hours with \<tool1> \<tool2>&#x20;
3. Calculate (Manually) the percentage of the pool that addresses 0x1234...23422 hold
4. When it is less than 60%, go to [https://app.uniswap.org/pool](https://app.uniswap.org/pools/v2), connect your wallet, and fill out all the necessary fields to send your liquidity token and receive your TOKEN\_X and WETH.
5. Sign the "remove liquidity" transaction and wait for confirmation.
6. Swap all your TOKEN\_X to USDC at <https://app.1inch.io/>  &#x20;
7. Provide all the required details.
8. &#x20;Sign the "swap" transaction and wait for it to be confirmed.


# No-Code Intents Builder

## Overview

### Building Blocks

### Inputs and Outputs

### Cloning

### Grouping

### Simulation

## Assets

Build-in plugins that implement asset based actions and information

### Ether

Native coin actions such as transferring and converting to/from a [wrapped](https://coinmarketcap.com/academy/article/what-is-wrapped-ethereum-weth) token

Native coin balance of any address

{% hint style="info" %}
Transferring and converting native coins available on account assets\
Transferring and converting directly from wallet is available on blockchains that support [EIP-3074](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3074.md)
{% endhint %}

### Token

[ERC20](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/) standard interfaces for actions (transfer, approve, etc.) and information (balance of, allowance, etc.)

### NFT

[ERC721](https://ethereum.org/en/developers/docs/standards/tokens/erc-721/) and [ERC1155](https://ethereum.org/en/developers/docs/standards/tokens/erc-1155/) standards interfaces for actions (transfer from, approve, etc.) and information (balance of, owner of, etc.)

## Tools

Build-in plugins for extension contracts that extends the functionality of the system&#x20;

### Math

Math extension allows to execute math operations such as addition, subtraction, etc.\
\
Math extension is decimal-aware, making it perfectly for doing math operations on token value.\
For example, 3 USDC (6 decimals) + 5 DAI (18 decimals) will automatically convert the highest decimal and result in number 8 with 18 decimals in this case.\
\
Math extension supports converting the results to a desired decimals.

{% hint style="warning" %}
When using the extension output as a token,  we must define the output decimal to match tokens decimals.    &#x20;
{% endhint %}

### Validator

Validator extension allows to compare various type of values.\
\
When using tokens amount as values, validation extension automatically matches the decimals.\
For example, 3 USDC (6 decimals) will considered higher than 2 DAI (18 decimals), although the value on the blockchain level is lower (6,000,000 vs 2,000,000,000,000,000,000)   &#x20;

{% hint style="info" %}
Validator supports: token amounts, numbers, addresses and hashes.
{% endhint %}

### Secure Storage

Secure storage extension allows to store and retrieve values on-chain.\
Supported values type are numbers, addresses, strings or hashes\
\
There are two types of storage: Account level and Intent level.

Account level storage keeps data associated with the account that can be updated by the account on any intent or direct transaction.&#x20;

{% hint style="info" %}
Account level storage is recommended for use cases where different intents are needed to perform a single task
{% endhint %}

Intent level storage keeps data associated with a single intent. Data can be updated only within the specific intent.&#x20;

{% hint style="info" %}
Intent level storage is recommended for use cases where there is a need to keep information about intent execution values or in combination with the recurrency feature
{% endhint %}

### Batch

### Solver (*Advanced*  :space\_invader:)

Solver box is replaced with any set of calls by the solver at execution.\
It opens up a lot of possibilities such as reverse flash loans, p2p swaps, etc.

{% hint style="warning" %}
Intents with solver box inside are gas free, so make sure to send the transaction fee directly to the solver by using the "[solver address](#global)" global.
{% endhint %}

{% hint style="warning" %}
Always put validators after the solver box, to make sure you're getting the desired outcome
{% endhint %}

## Protocols

### Aave

### Compound

### Curve

### Uniswap

## Bridges

### cBridge

## Oracles

### Chainlink

## System

### Global

Global variables holds blockchain values that are connected to the running native transaction.&#x20;

{% hint style="info" %}
Available values: block timestamp, block number, gas price, miner address, solver address and intent hash
{% endhint %}

### Variables

Set of values that can be set by the solver at the execution of the intent

{% hint style="info" %}
Supports up to 16 variables per intent
{% endhint %}

### Functions

Low level function that runs as part of intent execution without the need to call external contracts

#### Compute and Compute hash

Low level math operators such as +, -, \*, /, etc.

#### Validate and Validate numbers

Low level comparison operators such as >, <, =, etc.

{% hint style="success" %}
Functions gas consumption is minimal compared to calling external contract that provides the same functionality
{% endhint %}

### Flow Control

Every intent starts with a "start" box that is connected to the first call to activate.\
\
Every intent call can succeed or fail.\
If calls "success" or "failed" are connected to another call, this later will be activated accordingly.\
\
If "success" is **not connected**, intent will stop execution on call success.\
If "failed" is **not connected**, intent won't be executed if call fail.

{% hint style="info" %}
To override the default behavior "End" and "Revert" endpoints can be used.
{% endhint %}

## Custom Plugins (*Advanced*  :space\_invader:)

Contract's interface can be imported to the system and used as any other built-in plugin.\
\
When entering contract address, the system will try to retrieve all available functions from the public block explorer.

{% hint style="info" %}
If you're working on a private contract,  you can use a custom ABI.
{% endhint %}


# Capabilities

## 1. Time Framed

<mark style="background-color:orange;">**Standard Transaction**</mark> executes immediately.&#x20;

<mark style="background-color:blue;">**Intents**</mark> can be configured to run only on a predefined time window.&#x20;

## 2. Recurrence

<mark style="background-color:orange;">**Standard Transaction**</mark> runs only once.

<mark style="background-color:blue;">**Intents**</mark> can be set to run multiple times at planned intervals.

## 3. Pausing / Canceling

<mark style="background-color:orange;">**Standard Transaction**</mark> after signed and broadcasted, cannot be blocked.

<mark style="background-color:blue;">**Intents**</mark> can be blocked/unblocked even after signed and broadcasted.

## 4. Pay on fail

<mark style="background-color:orange;">**Standard Transaction**</mark> might fail and cannot be run anymore in that case. Moreover, the singer pays for the gas usage of the transaction

<mark style="background-color:blue;">**Intents**</mark> signer pays only when the transaction succeeds. Failed transactions do not prevent running a successful one

## 5. Gassless

<mark style="background-color:orange;">**Standard Transaction**</mark> needs to be paid in native token by the signer in order to be executed

<mark style="background-color:blue;">**Intents**</mark> allow many types of payment sachems, e.g. paying with tokens, gasless transactions, etc.

## 6. Alert-only Mode

<mark style="background-color:orange;">**Standard Transaction**</mark> after signed cannot be run as "simulate" only on a real network.

<mark style="background-color:blue;">**Intents**</mark> are able to set a "dry only" flag that allows executing on the blockchain without changing any state.&#x20;

## 7. Atomic Transaction Batching

<mark style="background-color:orange;">**Standard Transaction**</mark> can execute only one call per transaction.

<mark style="background-color:blue;">**Intents**</mark> can execute multiple calls packed in one native transaction.

## 8. Multi-Party Transactions

<mark style="background-color:orange;">**Standard Transaction**</mark> holds one signer per call.

<mark style="background-color:blue;">**Intents**</mark> can hold multiple calls of multiple signers to be executed as one native transaction.

## 9. Built-in Multisig

<mark style="background-color:orange;">**Standard Transaction**</mark> one singer per call.

<mark style="background-color:blue;">**Intents**</mark> support multiple signers with various signing schemes.

## 10. Serial vs Parallel

<mark style="background-color:orange;">**Standard Transaction**</mark> cannot run until the prior transaction has been executed.

<mark style="background-color:blue;">**Intents**</mark> order of execution is not strict.


# FAQs

**1. What are Intents and how do they work?**&#x20;

Intents are pre-set conditions you establish that automatically execute on the blockchain once specific criteria are met. This functionality simplifies complex blockchain transactions, allowing users to focus on their goals rather than the underlying processes.

**2. Can anyone use the Intent Builder?**&#x20;

Yes, the Intent Builder is a no-code tool for both newcomers and experienced users in the DeFi space. No prior coding knowledge is required, thanks to its intuitive drag-and-drop interface.

**3. Is Intentable free to use?**&#x20;

Creating an account and browsing available Intents is free. Charges apply when using certain advanced Intents or when publishing your own Intents, primarily to cover blockchain transaction fees.

**4. What security measures does Intentable implement?**&#x20;

Intentable employs zero-trust protocols that ensure transactions are executed exactly as intended without any alterations, thereby safeguarding user operations on the platform.

**5. How can I earn using Intentable?**&#x20;

By either utilizing the Intents on the marketplace or designing and publishing your own Intents on the Intentable Marketplace, you can generate passive income each time another user utilizes your strategy.

**6. What types of blockchain activities can I automate using Intents?**&#x20;

Intents can automate a wide array of actions including trades, token swaps, and yield farming, across various supported protocols and blockchains.

**7. How do I start creating Intents on Intentable?**&#x20;

Simply sign up on the Intentable platform and use the Intent Builder to start crafting your Intents. The platform provides guides and tutorials to assist you through the process.

**8. Are there educational resources available for new users?**&#x20;

Yes, Intentable offers various resources including tutorials, user guides, and community forums to help new users understand and utilize the platform effectively.

**9. Can Intents be modified after creation?**&#x20;

Yes, you can modify the conditions or parameters of an Intent as long as it has not been activated or used in a transaction.

**10. What is the cost associated with creating and using an Intent?**&#x20;

The cost varies depending on the complexity of the Intent and the blockchain fees at the time of execution.

**11. What happens if an Intent fails to execute?**&#x20;

If an Intent fails due to unmet conditions, it will attempt to execute again until the conditions are satisfied or the Intent is canceled.

**12. Can I cancel an Intent once it's set up?**&#x20;

Yes, Intents can be canceled provided they have not been triggered or executed.

**13. Does Intentable support multiple simultaneous Intents?**&#x20;

Yes, users can set up and run multiple Intents simultaneously, each with its own set of conditions and objectives.

\ <br>


# 01 / Introduction to Intentable Trading

Get introduced to Intentable and learn how our features like Stop Loss, Take Profit, and MEV Protection can enhance your DeFi trading, all from your wallet.

{% hint style="info" %}
Click [here](https://app.intentable.io/trading/top_pairs?utm_source=gitbook\&utm_medium=tutorial\&utm_content=introduction_tutorial\&utm_campaign=Tutorial) to start trading.
{% endhint %}

### Introduction to Intentable

Welcome to Intentable, the next generation platform that empowers DeFi traders with tools that previously were only available on centralized exchanges. Whether you're new to DeFi or an experienced trader, Intentable provides you with the capabilities to make your trading experience secure, automated, and efficient—all directly from your wallet.

#### Why Intentable?

DeFi is evolving rapidly, with new opportunities and challenges appearing every day. Intentable bridges the gap between traditional trading tools available on centralized exchanges (CEX) and the world of decentralized finance. We provide traders with powerful tools like Stop Loss, Take Profit, MEV Protection and more, all integrated seamlessly into the trading process. These tools are designed to help you maximize your returns while minimizing risk.

#### Our Core Features

1. CeFi-Level Trading Orders:&#x20;

   Intentable provides a range of advanced trading order types to enhance your DeFi trading experience. These include Take Profit, Limit Order, Stop Loss, and Stop Limit. Soon, we'll also be adding OCO (One Cancels the Other) and Trailing orders. These features allow you to manage your trades more precisely, just as you would on a centralized exchange (CeFi), but with the added benefits of DeFi—security,\
   \
   ![](https://3548253646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzsuKmVKyjwseeiTE9zD%2Fuploads%2Fn9QLPzf1GYAnzThIuaXE%2FScreenshot%202024-10-30%20at%2014.18.46.png?alt=media\&token=507adc67-973a-446a-b1cf-b2acb02827cf)\ <br>
2. MEV Protection is crucial when trading new tokens, as it helps prevent front-running bots from exploiting your transactions, ensuring you can buy tokens at a fair price.
3. Social Sentiment Indicator: Understanding the sentiment around a token can make a significant difference in your trading decisions. Our platform provides real-time social sentiment data, allowing you to stay informed about the latest trends and make more educated trades.\
   \
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdRtSQ0HqolkoJxnImsq0Zta23w0mrFA_MDN1f2xRB5PgMI2-vcKWTJAinZ0u4VQUf9WMDpqUehsQtormwGjh9dyYekC1bfo0xzFrOPkf_C_V2WObQ8OEFvX6AhQcLPk60QdFqLalKQbDD9i9nPVm7Knew?key=DzOnIR9p5nffaVdXl5sNFA)\ <br>
4. Filtered Token Lists: Not all tokens are created equal. Our advanced filtering mechanism helps you avoid scams and low-liquidity tokens, ensuring you only see the tokens that meet our stringent safety checks.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfKUgvlwj6Dr-1nEBLRy2Ke1oa_RmOO3W5j-aprQkDxS8cG7ujQhj6-0B8TyfhpTOE2yrcpE1Tv9Ad2b90OUVSZsSoU7cKPHi6fP-GfwvFXJ7H1IIUeTXhp7FWGozH3S4-dM0gyQt2eZiN9TxIjZJnTZ8lk?key=DzOnIR9p5nffaVdXl5sNFA)\ <br>
5. Automation and Cross-Protocol Intents: Intentable allows you to automate complex trading strategies without needing to write code. Whether it's cross-protocol interactions or simple re-staking loops, our platform lets you create powerful flows that execute seamlessly.

#### How Intentable Works

Intentable integrates directly with your wallet, meaning you maintain complete control over your assets at all times. There's no need to transfer funds to a centralized entity or deal with lengthy withdrawal processes. Everything—from setting a stop-loss to executing a take-profit order—happens straight from your wallet, giving you the power and freedom that DeFi is all about.

Through a user-friendly interface, traders can quickly set up intents, automate actions, and track their portfolio without the complexity that often comes with DeFi. Our focus is on making decentralized trading accessible to everyone by providing intuitive tools and practical strategies.\
\
[Learn more](/#why-intents)

#### Who Is Intentable For?

Intentable is designed for:

* DeFi Traders looking for enhanced control over their trades, better risk management, and automation capabilities.
* Memecoins hunters who want to find the next big memecoin but trade it smartly with CeFi level tools.
* Crypto Investors who value security, transparency, and the flexibility to leverage DeFi while using familiar tools from centralized exchanges.

#### Pair group selection

Intentable offers you 3 different pair groups to work with:

1. Top Pairs - Established tokens with high liquidity.
2. Hot Pairs - Trending tokens with significant trading activity.
3. New Pairs - Freshly launched tokens, filtered for safety.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfI3oVnqzrMVKgI-3tmd-dV_PhRnsATFv7xlpYWTwGcGg3I2YOh1mhwvXO6ZjwDwTgqk5aquW69bT6ATUFmYhv8wKom9WM2Y9pr1xlFXKe9IEEDWj1DXcK1YfTfjFQqbrmodv55nUZ-48NsTOfeqUpFwdg?key=DzOnIR9p5nffaVdXl5sNFA)\ <br>

\
\
\
Ready to dive in? Start exploring Intentable's powerful trading tools today -[ Click here to get started](https://app.intentable.io).

\ <br>


# 02 / Getting Started with Intentable: A Step-by-Step Tutorial

In this guide, we will walk you through getting started with Intentable's trading platform step by step, ensuring that you are ready to take full advantage of its unique DeFi trading capabilities.

{% hint style="info" %}
Click [here](https://app.intentable.io/trading/top_pairs?utm_source=gitbook\&utm_medium=tutorial\&utm_content=Getting_Started\&utm_campaign=Tutorial) to start trading.
{% endhint %}

#### Step 1: Setting Up Your Wallet

Before you start using Intentable, make sure you have a compatible wallet set up. Intentable currently supports popular Web3 wallets such as MetaMask, Trust Wallet, and Coinbase Wallet.

* Download and Install: If you haven't already, download and install your preferred wallet extension on your browser or app on your mobile device.
* Create a Wallet: Follow the prompts to create a new wallet. Be sure to safely store your seed phrase, as it is essential for accessing your wallet.
* Add Funds: Deposit funds into your wallet by buying crypto or transferring tokens from another source.

#### Step 2: Connect Your Wallet to Intentable

Once your wallet is set up, follow these steps to connect it to Intentable:

1. Visit the Platform: Go to[ Intentable's platform](https://app.intentable.io/).
2. Click "Connect Wallet": On the top right corner of the page, you will see a "Connect Wallet" button. Click it.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeuc81O0P_7O82_WzYwH8SJbHIgM8lpzXqNpZ4DabEEEsDPY2U3EzsMdd81J0m1fBC5657b9M4WAtccz2f6lgQjHGp7IiBLl_yiqnrEI30NR9k3GT91GTepbLSD6yLV2uL7l-buUH40WOSztJJDdUg53hbJ?key=tsd7rtBpCHtIXy8Ctfocag)\ <br>
3. Select Your Wallet: Choose your wallet provider (e.g., MetaMask, Trust Wallet).\
   \
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfitYGz6gc9kqDxfrfnCHVPLAemhK2h-elrQ6fnAvhrCU1wOSAFCzWoUs5apwvfCMDrbI5Cs8wd7iRjRhWZuWngRclRWpYuw1H857EjTjdRMBwTvBQ353o1lO2hVO0FMIe7-iS30dXc8sGYQd6hAGfA-EY?key=tsd7rtBpCHtIXy8Ctfocag)\ <br>
4. Approve Connection: Your wallet will prompt you to approve the connection to Intentable. Click "Approve" or "Connect."&#x20;

#### Step 3: Creating an Account

To start using Intentable effectively, you need to create a Runner.

* Runner: Intentable uses Runners to simplify user interactions with blockchain transactions. This allows for a smoother trading experience by bundling multiple actions into one simplified transaction flow.
* Create Your Runner: Once your wallet is connected, you can create your Runner:\
  \
  1\. Click “My Wallets”: Can be found in the left menu\
  ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcUN-jPMZ115uvarmUVsJ_0YRDXwWPxlGmgecH1SuSwLRodp4u70e9MS5ahb9dbfjvk_JVIdBt2mecebu13XUb90nVP6usJhqw1l95HzK7wezQRUAyd24oJNVJGvIFHFnpZiIAwnaMm96BBfd7c8ZB_G3-1?key=tsd7rtBpCHtIXy8Ctfocag)\
  \
  2\. Click “Create Runner”:\
  ![](https://3548253646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzsuKmVKyjwseeiTE9zD%2Fuploads%2FBrC5hxYOjnvvUaiwGe0s%2FScreenshot%202024-11-20%20at%2017.20.22.png?alt=media\&token=b93025b1-c52f-4169-87a2-48f12ce9a902)\ <br>

3\. Confirm in your wallet: That's a one-time step you need to do in order to open your new Runner.

#### Step 4: Set Your Gas Station

The Gas Station is an essential feature of Intentable that ensures smooth and uninterrupted transactions by pre-funding gas fees.

* Why Load the Gas Station?: Preloading your Gas Station ensures that you have sufficient funds to cover gas fees, preventing your trades from failing due to insufficient gas.
* How to Load the Gas Station:\
  \
  1\. Go to the "Gas Station" tab on your dashboard.\
  \
  ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXerbOfj1IvtqEK4Gir1oSlfxrP0aVoE81WDJ9XYIosV0xf-cQ5CoQGR-a5_FfrhO6RLvBcsFwFrmW9opnUdskx3yoCICWmiYIS5LnLoxG7WsWPku8gBpH99Ed7PbBjkdLuR6d_ze9pOQdhqavNApJys_WE?key=tsd7rtBpCHtIXy8Ctfocag)\
  \
  2\. Specify the amount you'd like to add, and approve the transaction to load funds for future gas fees.\
  \
  ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXe9gZ_6QoVBOXrnDUalUWDXk88JxYHj3CAnEhWJKgdJc5VmvQfkWIlt-lLe-X6GuE6dUIpYYAOMgBsp4W1EtwS_pnOTEqRteWU3wm_NRtGfCoV84w8bgfn38YoCd1j2mj3hEIURkLjeYF9ZRwzRmELqW1Nr?key=tsd7rtBpCHtIXy8Ctfocag)

\ <br>

Connect your wallet and set up your preferences now - [Begin here.](https://app.intentable.io/trading/my_tokens)

<br>


# 03 / Buying Filtered Tokens with MEV Protection

In this guide, you'll learn how to purchase filtered tokens and using Intentable's MEV Protection feature to ensure your trades are shielded from front-running bots.

{% hint style="info" %}
Click [here](https://app.intentable.io/trading/top_pairs?utm_source=gitbook\&utm_medium=tutorial\&utm_content=MEV_Protection\&utm_campaign=Tutorial) to start trading.
{% endhint %}

#### Step 1: Choose the Pair Group

Start by selecting the group of token pairs you want to trade from:

* Hot Pairs: Tokens currently trending with high trading volumes.
* Top Pairs: Established tokens with good liquidity and performance.
* New Pairs: Recently launched tokens that may offer early opportunities.\
  \
  ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfJbtHJcvKd4a21wXWphp-3TfucnvWeYo4PnqjlBGFYzYq0iVl59O3WlkAQzJd4bJzi23OudtyrIy2D6aC2UdwYi5y72v-qUvle1YnRICpGNOmP2qOdtRG7oMVSyjHOCast7_vf5KMbfMikoqiPV6lfpK2t?key=CFW60KMoXWuymwjGPlbr8A)

Navigate through the platform and choose the group that best suits your trading strategy.

#### Step 2: Filter Tokens

To ensure that you only see tokens that have passed Intentable's safety checks:

1. Click on the "Filter Tokens" button to activate the filter mechanism.
2. Tokens that pass Intentable's advanced safety checks will be displayed in the filtered list, (Note that tokens may not appear at all in given moments).\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeI2iG6m0FSHJiNKA55Z2DdwZeWNHWFcs0s871R6swYexITbjPChclVOSpeJyPvpiGZJrNNz6Tky37QfMM3qalkIA2u13PrX_RAKoHwRSH9980W2CSP4jRV1LAAsmIhEEWFGtXNcGcRPRX8MWEXFWBtC7Fc?key=CFW60KMoXWuymwjGPlbr8A)

#### Step 3: Select a Token

Once you have filtered the tokens:

1. Choose the token you want to buy from the filtered list.
2. \*Tip: use the social sentiment indicator to optimize your token choice.
3. Click on the token to proceed.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcbBgogH7jubNRWxw6OiaOoNSeBFWNTHzquzdfKTBrE-INVrwtiGv0EQz4COT2bePqPUh4yARft5QUwwDgeK-bsUe8jjI0jPyMASNJRxaNzzLE10EAgfFSyLmdGluvF6nvulMfMFMEzMQskPcdUDll_lkE?key=CFW60KMoXWuymwjGPlbr8A)

#### Step 4: Buy at Market Price

After selecting the token, a pop-up window will appear:

1. Click "Buy at Market Price" located at the top left of the pop-up.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdW8mULeED7eHkURP8CavkRinHm5KElE_YYNq5gIaPd5r5TJzSKsaBBihL9Di0RBHudsPmCa7STuyeK8sUDT9GxMj5UVf-HV0FpWsXHtsqeWfj-iBH-Om7BCfRuIY-0mAkC0YzPsjdXfOCHvJxCp-6ewxVE?key=CFW60KMoXWuymwjGPlbr8A)

#### Step 5: Set the Amount

Enter the amount of wETH you wish to use to buy the selected token:

1. Specify the amount of WETH you want to spend.
2. The platform will calculate the estimated amount of tokens you will receive.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfbsOfBbTbF8ZPLSa06s2KoCw_cr-HYrXOmS7iSY7sKasRsrtVpRBB-du_wMPrm0knDAqAXaB2ScXDl-ueVs2T21Fy-a35nLEJ6xg5MNe-Eeix5-t4KNgdsxhLOwj0tQ0snpuuwj3QwwuL0elZZjD3Azq6O?key=CFW60KMoXWuymwjGPlbr8A)

#### Step 6: Confirm the Transaction

To complete your purchase:

1. Confirm the transaction in your connected wallet.
2. Approve the request and wait for the transaction to be processed.

Once confirmed, you'll successfully own the filtered token with the added benefit of MEV Protection to keep your trade secure from front-running attacks.

Start buying filtered tokens with MEV Protection now -[ Trade safely here](https://app.intentable.io/trading/my_tokens).

<br>


# 04 / Stop-Loss Order on any token

a step-by-step guide on how to set a stop-loss order on any token, helping you manage risk effectively and protect your investments in volatile markets.

{% hint style="info" %}
Click [here](https://app.intentable.io/trading/top_pairs?utm_source=gitbook\&utm_medium=tutorial\&utm_content=Stop_Loss\&utm_campaign=Tutorial) to start trading.
{% endhint %}

**Step 1: Select the Token to Trade**

1. On the Intentable dashboard, navigate to the “My token” tab.
2. Choose the token for which you want to set a stop-loss order and click on it.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdbpypE_xYFKkefftVVY_a5iSSkhv2CXpigrDs-IhKO5cFIf30HF3UE8UNWsOsHGlnFjul2fxf8pEVKUK859q2AVcoofcu0uBUruSmcTfUG9QofDNqpVblhMebMwHJCmZcOo0xMyv80ZrzRRlo8FMsmamE5?key=Kjn2rF5u_IX7xF6YHwP7iQ)

**Step 2: Choose "Set Stop-Loss" Option**

1. On the pop-up window that appears, click on the "Set Stop-Loss" button.
2. This will open a new panel where you can specify your stop-loss conditions.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcutK2RmHA7WotrNgululZrMwvgZ-JA0kSGfHfZusCXfhS3UvzQl-QkcMLCkR9dJOwi0Q51hCor5qloQcyWxl75w_eY2dqwhD5Jo967Mn8b-78SmJS4dxgy0uCKzynJgdVeWJu-sSlZrgYg-puceju1mb7d?key=Kjn2rF5u_IX7xF6YHwP7iQ)

**Step 3: Enter the Stop-Loss Price**

1. Enter the price at which you want the stop-loss order to trigger. For instance, if you bought the token with 0.030 WETH, you might want to set a stop-loss at 0.015 WETH to minimize potential losses.
2. You can also specify the number of tokens to sell when the stop-loss condition is met. For example, as shown in the image, you could choose to sell your full balance of 6,405,162 PEPE if the value drops below 0.015 WETH.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXe1alKOjp9bZD248MWpAdVsGXToDI3PuNT-fFLngfQIBB2Ocmjbt7Uk-RhJ-wjn03Kqw1NLJRmSq93sDYrrHZRCh7x0eHD3NNxonYPknKPPubVV0UizcgAmfp7bsgLOIw1PeeU9kTUffaMbhKBp-o0D2Sd6?key=Kjn2rF5u_IX7xF6YHwP7iQ)

\ <br>

**Step 4: Set the Duration of the Stop-Loss Order**

1. Define how long you want the stop-loss order to be active. You can set it for 24 hours, 7 days, or even longer depending on your trading strategy, \*after this time frame the stop loss order will be canceled.
2. This feature gives you flexibility based on the token's market behavior.\
   \
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXd7LIvJZ_woCojjb2qQlb9C2pWnP4QjQqItMtAtV0U15fdijbybTVFGQll1V8eO612HepEeXAN7KEt4kD5p8UvGEtTwH4gL6hRnL1OLf7GlEprRT0UvhHstYCjENpT8lcp0gMUExww0yrudEloRgrThZdPC?key=Kjn2rF5u_IX7xF6YHwP7iQ)\ <br>

**Step 5: Confirm the Order**

1. Click "Sign and activate" to finalize the stop-loss order.
2. Your connected wallet will prompt you to approve the transaction. Confirm the transaction to successfully set your stop-loss order.

#### Best Practices for Using Stop-Loss Orders

* Use Realistic Stop-Loss Levels: Set a stop-loss that gives the token room to fluctuate naturally, avoiding selling too soon due to normal market volatility.
* Review Market Trends: Analyze the token’s price trends before setting a stop-loss to ensure you're choosing an effective trigger point.
* Combine with Take-Profit Orders: Protect your gains by combining stop-loss orders with take-profit orders, which automatically sell your token once it reaches a certain profit level.

Setting a stop-loss order is crucial to managing risk and securing your trading strategy, especially with memecoins. With Intentable, you have the tools to trade confidently while maintaining control over your investments.

<br>

Protect your investments by setting stop-loss orders - Secure your trades [here](https://app.intentable.io/trading/my_tokens).

<br>


# 05 / Setting Take-Profit / Limit Orders

Learn how to set take-profit and limit orders on Intentable to secure your tokens, ensuring you lock in profits automatically without constant monitoring.

{% hint style="info" %}
Click [here](https://app.intentable.io/trading/top_pairs?utm_source=gitbook\&utm_medium=tutorial\&utm_content=Take_Profit\&utm_campaign=Tutorial) to start trading.
{% endhint %}

#### Step 1: Select a Token for Take-Profit

* On the Intentable dashboard, navigate to the “My token” tab.
* Choose the token for which you want to set a stop-loss order and click on it.\
  \ <img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf2GQjtO6D0yUQrFQViih--yOtTUKik6iyPkXLsM72RJarJNYKga2B7b-Z2-B6AhFh_tSQebwhDkXbvSqmo4nBbL5H-g5S0p9pAT40aXEu0zeELI38Ay83CxrOjCkyzZRAZaqWn06mpq-S9H55KBVNqQUNt?key=rD8h1o0vL6iecfWrZpOh7Q" alt="" data-size="original">\ <br>

#### Step 2: Access the Sell Token Option

* Click "Take profit/Limit order” under Sell Token: On the token's details page, click the Take profit/Limit order option to start setting up a take-profit or limit order.\
  \
  ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXe8PZgdgB3_1CNVtuuR6r8ZSX3dUULrz48CcKLsQE1uycil_QJUNPrpeOdE8Uh7DAYkrupF-W9SGkOzkAPd1_DIzDHAO8v_5IR95TMp37Je6tu8WGQrWVRCvfgLjtOYIjLVgHhoB_Orl7g9YAKwmVlR7zqg?key=rD8h1o0vL6iecfWrZpOh7Q)

#### Step 3: Set Your Take-Profit / Limit Order Price

* Set Conditions: In the token intent window, specify the amount of tokens you want to sell. Set the price at which you'd like to take profit or limit your order. For instance, as shown in the image, you can choose to sell your tokens when the received \*Total value is at least 1 WETH.\
  \
  ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfyL9PLMFrD4cdXaSPwNKSk83hFAujY5bCdb4jFzYZ9pIOcJaUOEQuW_6f25nCcJJ9FMfj-DYgB6ohs9vBQ_pe2LNxnpWti31MWQGviCKFTNAjCRcGLuLf06Ho799GQo8-Gq8rxeESsj0y9X34srAPMdFY?key=rD8h1o0vL6iecfWrZpOh7Q)

#### Step 4: Confirm and Activate Intent

* Review Details: Make sure to review the transaction details, including price impact, fees, and other conditions.
* Activate Intent: Click on "Activate Intent" and confirm the transaction in your connected wallet.

#### Why Take-Profit / Limit Orders Are Important for Meme Coins

Meme tokens are notoriously volatile, and prices can fluctuate rapidly. By setting take-profit and limit orders, you can capitalize on price spikes without needing to manually execute trades, thus helping you lock in potential profits at the right time while avoiding unfavorable price movements.

Lock in your gains by setting take-profit orders today - Set your limits [here](https://app.intentable.io/trading/my_tokens).

<br>


# 06 / Setting a Stop-Limit Order

In this tutorial, you'll learn how to set a stop-limit order on any token, giving you more control over your trades by specifying the price at which you want to sell your tokens.

{% hint style="info" %}
Click [here](https://app.intentable.io/trading/top_pairs?utm_source=gitbook\&utm_medium=tutorial\&utm_content=Stop_Limit\&utm_campaign=Tutorial) to start trading.
{% endhint %}

**Step 1: Select the Token to Trade**

On the Intentable dashboard, navigate to the "My token" tab. Click on the token you already bought with MEV Protection.\
\
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdd72p1Mkv7Xcxikm7DTcT_ZYPIIUgEIMP_OAYnPVRLhufQsMP5TbF9Fwmbdi6hlAT_u6sLFe3FTE0zVl_aT3cC8OY0pwjh2oLEtsOTX6rmQU-694OKm1ulsenMchUU-oCjqhvUyw?key=Q4KZnopjnLWwt5RNjUWnsxIX)

**Step 2: Click on Stop-Limit**\
\
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdSR0vw9xK_WFzviqynq-XTbqJFfvT2CGRFzMx4seLiSHyizwoqfBBFq3PQZnLHJbKex7YNDR3RR6bffJ0yg9a3LrkcC-FoX5Jlc8UOOp7kUgK4FfR61jlpJKDi59QbpD7LAUxdTA?key=Q4KZnopjnLWwt5RNjUWnsxIX)

In the pop-up window, click on the "Stop Limit" button to start setting your stop-limit order.

**Step 3: Set Your Stop-Limit Conditions**

Specify the threshold at which you want the trigger to happen. Enter the stop price (the price at which you want the order to be triggered) and the limit price (the lowest price you are willing to sell for). Specify the number of tokens you want to sell if the stop condition is met.\
\
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcQFsVkNc_z2DGw_ZFq0Y8ffIxFCY7dg1I6jq_GU9CvA7aUkrDSW0Fc3XkTS-9jWRVNjnuFCHnzv84VEv_MkyRE2F2kD8UbEi-8vUfpal9NTB51cApbfHhiBdpURoptvzqJ90i01g?key=Q4KZnopjnLWwt5RNjUWnsxIX)

**Step 4: Confirm the Order**

Click "Activate Intent" to finalize the stop-limit order. Your connected wallet will prompt you to approve the transaction. Confirm it to successfully set your stop-limit order.

Why Use Stop-Limit Orders?

Stop-limit orders are perfect for securing profits and avoiding large losses in unpredictable markets. They give you control over how much you are willing to risk and prevent you from selling at unfavorable prices.

Set your stop-limit orders today to trade with confidence. Start now [here](https://app.intentable.io/trading/top_pairs)

<br>


