Purpose
Retrieves the length of the contract context.
Syntax
tdr.GetContractLength()
Return Value
An integer representing the number of bytes in the contract context.
Example: Get the Length of the Contract Context
The following statement prints the number of bytes in the contract context:
print(tdr.GetContractLength())