Skip to content

Usage Examples

Jan Xie edited this page Dec 6, 2019 · 4 revisions

Transfer to address with timelock

First generate a address with locktime

CKB> util to-multisig-addr --sighash-address ckt1qyqp5hera0n2ljm65ecvsakedw74jnl547sq77pnhz --locktime "2019-12-06T18:00:00+00:00"
address:
  mainnet: ckb1q3w9q60tppt7l3j7r09qcp7lxnp3vcanvgha8pmvsa3jplykxn323k5v49yzmvm0q0kfqw0hk0kyal6z32nwjvcqqr7qyzq8yqyxen2z
  testnet: ckt1q3w9q60tppt7l3j7r09qcp7lxnp3vcanvgha8pmvsa3jplykxn323k5v49yzmvm0q0kfqw0hk0kyal6z32nwjvcqqr7qyzq8yqtec2wj
target_epoch: "Epoch { number: 51, index: 764, length: 1800 }"

Transfer some capacity to above address (with locktime)

CKB> wallet transfer --from-account 0xda648442dbb7347e467d1d09da13e5cd3a0ef0e1 --to-address ckt1q3w9q60tppt7l3j7r09qcp7lxnp3vcanvgha8pmvsa3jplykxn323k5v49yzmvm0q0kfqw0hk0kyal6z32nwjvcqqr7qyzq8yqtec2wj --capacity 20000 --tx-fee 0.00001
Password:
0x6b9e2200b409a3435e70e34d8f96491c7a1d706afc84ba8f96f8616c5ca1847d
Clone this wiki locally