Optional
_fromInfo: FromInfoOptional
changeAddress: stringOptional
tipHeader: HeaderOptional
LocktimeOptional
config?: ConfigOptional
enableOptional
useOptional
tipHeader: HeaderOptional
config?: ConfigOptional
enableOptional
useOptional
tipHeader: HeaderOptional
config?: ConfigOptional
enableOptional
useA function to transfer input to output, and add input & output to txSkeleton. And it will deal with cell deps and witnesses too. (Add the input required cell deps and witnesses.) It should be noted that the output must be added to the end of txSkeleton.get("outputs").
Optional
fromInfo: FromInfoOptional
changeAddress: stringOptional
tipHeader: Headerwill not use locktime cells if tipHeader not provided
Optional
LocktimeOptional
config?: ConfigOptional
usecalculate a withdraw dao cell minimal unlock since
depositBlockHeader.epoch
withdrawBlockHeader.epoch
calculate maximum withdraw capacity when unlock
withdrawCell or depositCell
depositBlockHeader.dao
withdrawBlockHeader.dao
deposit a cell to DAO
deposit cell lock address
capacity in shannon
list DAO cells,
Unlock a withdrew DAO cell
withdraw an deposited DAO cell
deposited DAO cell
Optional
fromInfo: FromInfoOptional
LocktimeOptional
config?: ConfigOptional
enableOptional
LocktimeOptional
config?: ConfigOptional
enableOptional
LocktimeOptional
config?: ConfigOptional
fromInfo: FromInfoOptional
LocktimeOptional
assertOptional
config?: ConfigOptional
requireOptional
LocktimeOptional
config?: ConfigOptional
requireOptional
LocktimeOptional
assertOptional
config?: ConfigOptional
requireOptional
LocktimeOptional
config?: ConfigOptional
requireInject capacity from fromAddress
to target output.
pay fee by secp256k1_blake160 script cells
fee in shannon
prepare for txSkeleton signingEntries, will update txSkeleton.get("signingEntries")
Setup input cell infos, such as cell deps and witnesses.
Optional
_fromInfo: FromInfoOptional
options: { Optional
assertOptional
config?: ConfigOptional
requireOptional
config?: ConfigOptional
requireOptional
options: { Optional
assertOptional
config?: ConfigOptional
requireOptional
config?: ConfigOptional
requireInject capacity from fromInfo
to target output.
pay fee by multisig script cells
fee in shannon
prepare for txSkeleton signingEntries, will update txSkeleton.get("signingEntries")
multisig script params
serialized multisig script
Setup input cell infos, such as cell deps and witnesses.
Optional
fromInfo: FromInfoOptional
options: { Optional
assertOptional
config?: ConfigOptional
requireOptional
config?: ConfigOptional
requireOptional
options: { Optional
assertOptional
config?: ConfigOptional
requireOptional
config?: ConfigOptional
requireIssue an sUDT cell
Compute sudt token by owner from info.
Optional
changeAddress: stringif not provided, will use first fromInfo
Optional
capacity: BIishOptional
tipHeader: HeaderWhen splitChangeCell = true
&& change amount > 0 && change capacity >= minimalCellCapacity(change cell with sudt) + minimalCellCapacity(change cell without sudt), change cell will split to two change cells, one with sudt and one without.
Generated using TypeDoc
Registers LockScriptInfo for custom scripts.