Error API
SDK Error API
TONClientError
Properties
code: number
Unique error code
message: string
Error description
data: ErrorData
Additional data provided with error. All the fields in ErrorData
are optional and their presence depends on the error code.
Types
ErrorData
All the fields in ErrorData
are optional and their presence depends on the error code.
message_id
Message id
shard_block_id
The last shardchain block of the account received before the error occurred.
core_version
Core library binary version used
waiting_expiration_time
Message expiration time.
block_time
Creation time of the last shardchain block of the account received before the error occurred.
phase
Transaction execution phase when contract execution was aborted
exit_code
Exit code of exception thrown by the aborted contract execution
exit_arg
Exit args provided along with exit code
account_address
Address of the account
local_error: ErrorData
Result of local transaction emulation performed after the message was not successfully delivered.
Error example
Here you can see an error returned by process_message function when message was not delivered to the blockchain and got expired (code 507).
In such cases SDK emulated the same transaction locally and here it got a local_error with possible reason - wrong signature - exit code = 40.
Last updated