Mint

In Mint, You should create a cell on Nervos Network send to your self wallet address. The cell follows these rules:

Firstly, cells corresponding to xudt, Inscription Info, and Omiga Inscription codes need to be included as cell_deps.

Secondly, the cell containing the Info data should also be included as a cell_dep.

Then, construct the transaction where one of the outputs has a type_script generated previously as xudt_type. The lock should be the user's lock.

The witness field is as follows:

table XudtWitnessInput {
    owner_script: ScriptOpt,
    owner_signature: BytesOpt,
    raw_extension_data: ScriptVecOpt,
    extension_data: BytesVec,
}

Set the minted amount to the mint_limit quantity. XudtWitnessInput only needs to be filled with the previously generated virtual Owner_script, and with that, the transaction construction is complete.

Last updated