Asterizm
  • What is Asterizm
    • Overview
    • Architecture
    • Benefits
    • Supported chains
      • Non-EVM chains integration plan
    • Frequently asked questions
    • White paper
    • GitHub
  • Infrastructure
    • Overview
    • Asterizm Connector
      • Client smart contract abstraction
      • Initializer smart contract
      • Translator smart contract
    • Client off-chain module
    • Asterizm Relayer
    • Asterizm Interfaces
      • IAsterizmConfigEnv
      • IConfig
      • IAsterizmEnv
      • IClientReceiverContract
      • IInitializerReceiver
      • IInitializerSender
      • IMultiChainToken
      • INonce
      • ITranslator
  • Guides
    • Transaction flow
    • Getting started
      • 1. Deploy your smart contracts
        • AsterizmDemo contract
        • Client contracts implementation logic
        • Solana integration logic
      • 2. Implement off-chain module
        • Simple implementation (shell script)
        • Default implementation (manual)
      • 3. Important! One final pre-flight check
    • External relays
      • Relay deployment and configuration
      • List of external relays
        • Chainlink
          • Mainnet
          • Testnet
    • Source chain notifications
    • Refund Logic
    • Error messages
      • EVM
        • Source chain
        • Destination chain
      • TVM and TON
      • Solana
    • Fee management
    • Code examples
    • Multi-Owner (Sender) System
  • Advanced
    • Best practices
    • Asset transfer
    • Debugging
  • Technical reference
    • Mainnet
    • Testnet
    • Smart contract audits
    • SDK
Powered by GitBook
On this page
  1. Guides

Fee management

Get the number of native gas tokens you have to pay to send a message

PreviousSolanaNextCode examples

Last updated 6 months ago

The logic of the includes a mechanism for automatically calculating the amount of gas required for the transfer.

At the moment of cross-chain transaction data encryption in the source network, the required amount of source network native currency is calculated to cover the cost of gas for transfer in the destination network.

This amount of native currency of the source network is sent along with the encrypted data to initialize the transfer.

There is a possibility of a strong surge in the value of gas in the destination network. In this case, the sent native currency of the source network may not be enough to perform the transaction.

In this case, the transaction will be rejected by the .

You can adjust the amount of gas you are willing to spend on each message you transmit in the .

Client off-chain module
Translator smart contract
Client off-chain module configuration