get_chain_info
Determine the current Beam block height before creating a contract to set a future expiry_block. Returns the height or an error.
Instructions
Read the current Beam block height from the wallet's node.
Call this before creating a contract so you can choose a future expiry_block (the contract requires expiry_block to be in the future). Add a margin to the returned height: current + 10000 is roughly 7 days, current + 2000 is a short test window.
Returns the current block height, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |