This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Unity] Document new static methods (tx/blocks)
- Loading branch information
1 parent
10d705f
commit 263d04f
Showing
6 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Get Block | ||
slug: /blocks/getblock | ||
--- | ||
|
||
Get block data by block number. | ||
|
||
## Usage | ||
|
||
```csharp | ||
BigInteger blockNumber = 1234567; | ||
var block = await Blocks.GetBlock(blockNumber); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: Get Block With Transactions | ||
slug: /blocks/getblockwithtransactions | ||
--- | ||
|
||
Get block data by block number, including transaction data. | ||
|
||
## Usage | ||
|
||
```csharp | ||
BigInteger blockNumber = 1234567; | ||
var blockWithTransactions = await Blocks.GetBlockWithTransactions(blockNumber); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Get Latest Block Number | ||
slug: /blocks/getlatestblocknumber | ||
--- | ||
|
||
Get the latest block number. | ||
|
||
## Usage | ||
|
||
```csharp | ||
BigInteger blockNumber = await Blocks.GetLatestBlockNumber(); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Get Latest Block Timestamp | ||
slug: /blocks/getlatestblocktimestamp | ||
--- | ||
|
||
Get the latest block timestamp. | ||
|
||
## Usage | ||
|
||
```csharp | ||
BigInteger blocktimestamp = await Blocks.GetLatestBlockTimestamp(); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters