Script, the script model in CKB. CKB scripts use UNIX standard execution environment.
Each script binary should contain a main function with the following signature int main(int argc, char* argv[]);.
CKB will concat args, then use the concatenated array to fill argc/argv part, then start the script execution.
Upon termination, the executed main function here will provide a return code,
0 means the script execution succeeds, other values mean the execution fails.
property
args, arguments.
property
codeHash, point to its dependency, if the referred dependency is listed in the deps field in a transaction,
the codeHash means the hash of the referred cell's data.
property
hashType, a enumerate indicates the type of the code which is referened by the code hash
Script, the script model in CKB. CKB scripts use UNIX standard execution environment. Each script binary should contain a main function with the following signature
int main(int argc, char* argv[]);
. CKB will concatargs
, then use the concatenated array to fillargc/argv
part, then start the script execution. Upon termination, the executedmain
function here will provide a return code,0
means the script execution succeeds, other values mean the execution fails.args, arguments.
codeHash, point to its dependency, if the referred dependency is listed in the deps field in a transaction, the codeHash means the hash of the referred cell's data.
hashType, a enumerate indicates the type of the code which is referened by the code hash