- Preparing search index...
- The search index is not available
sdk-v2
- asBlock(time: ChainTime, instant: number | `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${number} week` | `${number} weeks` | `${number} month` | `${number} months` | `${number} year` | `${number} years` | `-${number} second` | `-${number} seconds` | `-${number} minute` | `-${number} minutes` | `-${number} hour` | `-${number} hours` | `-${number} day` | `-${number} days` | `-${number} week` | `-${number} weeks` | `-${number} month` | `-${number} months` | `-${number} year` | `-${number} years` | Date): number
-
Parameters
-
-
instant: number | `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${number} week` | `${number} weeks` | `${number} month` | `${number} months` | `${number} year` | `${number} years` | `-${number} second` | `-${number} seconds` | `-${number} minute` | `-${number} minutes` | `-${number} hour` | `-${number} hours` | `-${number} day` | `-${number} days` | `-${number} week` | `-${number} weeks` | `-${number} month` | `-${number} months` | `-${number} year` | `-${number} years` | Date
Returns number
Get instant as blocknumber.
Returns
BlockNumber