Registry / other / ink-env

ink-env

JSON →
library5.1.1rscratesunverified

Low-level interface for interacting with the smart contract executor in ink!.

# Cargo.toml [dependencies] ink_env = "5.1.1"
INSTALL
IMPORT
SIG · INK-ENV
I
ink-env
otherrustv5.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Environment
use ink_env::Environment;

Accesses the ink! smart contract environment.

use ink_env::Environment; fn main() { let env = Environment::default(); println!("Environment: {:?}", env); }
Debug
Known issues
gotchaRequires the ink! smart contract framework and a compatible target.
fix
Add ink_env as a dependency and ensure you are building for a Wasm target.
affects: >=5.0.0
Upgrade
Version history
5.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
ink-env — cargo add ink-env · libregistry