Module ckb_std::syscalls[][src]

Re-exports

pub use crate::error::SysError;

Functions

Current Cycles returns current cycle consumption just before executing this syscall. This syscall consumes 500 cycles.

Output debug message

Exec runs an executable file from specified cell data in the context of an already existing machine, replacing the previous executable. The used cycles does not change, but the code, registers and memory of the vm are replaced by those of the new program. It’s cycles consumption consists of two parts:

Exit, this script will be terminated after the exit syscall. exit code 0 represents verification is success, others represent error code.

Load cell

Load cell by field

Load cell code, read cell data as executable code

Load cell data, read cell data

Load cell data, read cell data

Load header

Load header by field

Load input

Load input by field

Load script

Load script hash

Load transaction

Load transaction hash

Load witness

VM version syscall returns current running VM version, so far 2 values will be returned: