Skip to content

Commit e1a8a2c

Browse files
Merge pull request #953 from multiversx/blockchain-api-fix
Blockchain api fix
2 parents e55bed3 + a6753ce commit e1a8a2c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/developers/developer-reference/sc-api-functions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ A smart contract call that runs out of gas will revert all operations, so this f
146146
get_block_timestamp() -> u64
147147
```
148148

149+
Returns the timestamp of the current block, in seconds (UNIX timestamp).
150+
149151
[comment]: # (mx-context-auto)
150152

151153
### get_block_nonce
@@ -154,6 +156,8 @@ get_block_timestamp() -> u64
154156
get_block_nonce() -> u64
155157
```
156158

159+
Returns the unique nonce of the block that includes the current transaction.
160+
157161
[comment]: # (mx-context-auto)
158162

159163
### get_block_round
@@ -162,6 +166,8 @@ get_block_nonce() -> u64
162166
get_block_round() -> u64
163167
```
164168

169+
Returns the round number of the current block. Each epoch consists of a fixed number of rounds. The round number resets to 1 at the start of every new epoch.
170+
165171
[comment]: # (mx-context-auto)
166172

167173
### get_block_epoch
@@ -170,6 +176,8 @@ get_block_round() -> u64
170176
get_block_epoch() -> u64
171177
```
172178

179+
Returns the epoch of the current block.
180+
173181
These functions are mostly used for setting up deadlines, so they've been grouped together.
174182

175183
[comment]: # (mx-context-auto)

0 commit comments

Comments
 (0)