TON Jetton

Операции с Fun Jetton в сети TON

Overview

This node provides operations to interact with Fun Jetton tokens on the TON blockchain, including selling tokens. The "Sell Tokens" operation allows users to specify a minter contract address and an amount of tokens to sell. This is useful in scenarios where automated token management or trading is needed within TON-based workflows, such as selling tokens programmatically after certain triggers or conditions are met.

Practical examples:

  • Automatically selling a specified amount of tokens when a price threshold is reached.
  • Integrating token sales into a larger TON-based decentralized application workflow.
  • Managing token balances by programmatically selling excess tokens.

Properties

Name Meaning
Minter Address Address of the GovernanceJettonMinter contract (required for the operation).
Amount Number of tokens to sell, expressed in base units without decimals.

Output

The node outputs JSON data containing the parameters used for the operation. For the "Sell Tokens" operation, the output JSON includes:

  • operation: The string "sellTokens".
  • minterAddress: The provided minter contract address.
  • recipient: An empty string (not used in this operation).
  • amount: The amount of tokens to sell as a string.

Example output JSON for one item:

{
  "operation": "sellTokens",
  "minterAddress": "EQ...",
  "recipient": "",
  "amount": "1000"
}

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for TON blockchain access (configured in n8n credentials).
  • The node depends on the user providing valid addresses and amounts.
  • No external services beyond TON blockchain interaction are indicated.

Troubleshooting

  • Invalid or missing minter address: Ensure the minter contract address is correctly provided in the expected format (starting with EQ... or UQ...).
  • Amount not specified or zero: The amount must be a positive number in base units; otherwise, the operation may fail or have no effect.
  • Operation mismatch: Make sure the selected operation is "Sell Tokens" when using these properties.
  • Credential issues: Verify that the required TON blockchain API authentication is properly configured in n8n.

Common error messages might relate to invalid addresses, insufficient token balance, or network connectivity issues with the TON blockchain. Resolving them typically involves verifying input correctness and credential validity.

Links and References

Discussion