API Reference
API Reference for TAC-SDK
For more up-to-date information, please refer to the TAC SDK GitHub repository.
Constructor
Parameters:
params
: Configuration object of typeTacSDKTonClientParams
network
: Network enum (Network.Testnet
orNetwork.Mainnet
)tonClientParameters?
: Optional TON client parametersdelay?
: Optional delay in seconds (default: 3)settingsAddress?
: Optional TAC protocol contract address
Constructor include the following methods:
init()
Initializes the SDK instance.
sendCrossChainTransaction()
Sends a cross-chain transaction.
Parameters:
evmProxyMsg
: EVM proxy message configurationsender
: Transaction sender (TonConnectSender or RawSender)assets
: Optional array of assets to bridge
Returns: TransactionLinker object for tracking the transaction
getEVMTokenAddress()
Gets the corresponding EVM address for a TVM token.
Parameters:
tvmTokenAddress
: TVM token address
Returns: Promise resolving to EVM token address
TransactionStatus
Class for tracking cross-chain transaction statuses.
getOperationId()
Gets the operation ID for a transaction.
Parameters:
transactionLinker
: TransactionLinker object
Returns: Operation ID string
getStatusTransaction()
Gets the current status of a transaction.
Parameters:
operationId
: Operation ID string
Returns: Transaction status string
getSimplifiedTransactionStatus()
Gets a simplified transaction status.
Parameters:
transactionLinker
: TransactionLinker objectisBridgeOperation
: Optional boolean for bridge-only operations
Returns: SimplifiedStatuses enum value
startTracking()
Starts tracking a transaction until completion.
Parameters:
transactionLinker
: TransactionLinker objectisBridgeOperation
: Optional boolean for bridge-only operations