Learn Fi
  • Introduction
  • Overview
    • Contract Definitions
    • Basic Types
    • Complex Types
    • Control Structures
    • Local Variables
    • Functions
    • Type Casting
    • Variable Modifiers
    • Global Constants
    • Examples
Powered by GitBook
On this page

Was this helpful?

  1. Overview

Global Constants

The following global constants can be used throughout your smart contract.

  • AMOUNT - returns tez, amount of the current transaction

  • BALANCE - returns tez, amount held by the current contract

  • NOW - returns timestamp, current date time

  • STEPS - returns nat, number of steps until end of script execution

  • SELF - returns contract, pointer to current contract

  • SOURCE - returns address, the address of the original contract source

  • SENDER - returns address, the address of the current transaction source

  • OWNER - returns address, the address of the current contract

PreviousVariable ModifiersNextExamples

Last updated 6 years ago

Was this helpful?