API Reference
API Reference for TAC-SDK
TAC SDK Class
Constructor
Parameters:
- tonClientParameters?: TonClientParameters - Optional custom TON client configuration
- network?: Network - Network selection (Testnet/Mainnet), defaults to Testnet
- delay?: number - Delay in seconds for TON client requests, defaults to 0
Example:
Core Method: sendCrossChainJettonTransaction
Parameters:
-
jettons: Array of JettonOperationGeneralData objects
- fromAddress: string - Address of the sender
- tokenAddress: string - Address of the Jetton token
- jettonAmount: number - Amount of Jettons to transfer
- tonAmount?: number - Optional additional TON amount
-
evmProxyMsg: EvmProxyMsg object
- evmTargetAddress: string - Target address on EVM network
- methodName: string - Method to execute on target contract
- encodedParameters: string - Encoded parameters for EVM method
-
sender: SenderAbstraction Either TonConnectSender or RawSender instance
Returns: Promise resolving to an object containing transactionLinker for tracking
Transaction Functions
TonConnectSender Class
Purpose: Enables sending transactions via TonConnect integration.
Example:
RawSender Class
Purpose: Enables direct blockchain interaction using a mnemonic phrase. Currently supports V3R2 wallets.
Example:
Status Tracking
TransactionStatus Class
Purpose: Tracks cross-chain transaction status through Lite Sequencer endpoints.
Method: getOperationId
Purpose: Retrieves operation ID for transaction tracking.
Parameters:
- transactionLinker: TransactionLinker object from sendCrossChainJettonTransaction
Returns: String representing the operationId
Method: getStatusTransaction
Purpose: Retrieves current transaction status.
Parameters:
- operationId: String obtained from getOperationId
Returns: Transaction status string:
- EVMMerkleMessageCollected
- EVMMerkleRootSet
- EVMMerkleMessageExecuted
- TVMMerkleMessageCollected
- TVMMerkleRootSet
- TVMMerkleMessageExecuted
Method: getSimpifiedTransactionStatus
Purpose: Provides simplified transaction status.
Parameters:
- transactionLinker: TransactionLinker object
Returns: SimplifiedStatuses enum value:
- Pending
- Successful
- Failed
- OperationIdNotFound