如何在TZ地址下创建辅助KT1联系人?
-
-
您正在使用哪个钱包?在此处查看可用的钱包:https://support.ledger.com/hc/zh-CN/articles/360016057774-Tezos-XTZ-What wallet are you using? see available wallets here: https://support.ledger.com/hc/en-us/articles/360016057774-Tezos-XTZ-
- 0
- 2019-11-25
- joschua011
-
1 个回答
- 投票数
-
- 2019-12-01
正确答案:
请确保进行测试运行,并仅发送少量Tezos,以确保您可以控制智能合约.确认可以从智能合约发送和接收Tezos之后,将其余的发送出去.我没有这样做,现在Staking设施可以控制智能合约,我正在等待它们将XTZ发送回给我.
步骤1)将脚本下载到Tezos目录
curl -O https://gitlab.com/nomadic-labs/mi-cho-coq/raw/master/src/contracts/manager.tz
第2步)为tz1贝克地址创建别名
./tezos-client添加地址'ALIASYOUCHOOSEFORBAKER''TZ1ADDRESSOFTHEBAKERY'
第3步)创建一个智能合约,使用--Init命令使经理成为您自己,并使用--delegate命令委派给面包师
./tezos-client发起合同" SMART CONTRACT ALIAS",从运行" $(catmanager.tz)"的" ALIAS USED FOR YOUR TZ1 ADDRESS"转移--init'" TZ1ADDRESS OF YOUR TZ1 MANAGER""-烧伤上限0.489-贝克'ALIAS-YOU-CHOSE-FOR-BAKER-IN-STEP1'
示例
1)
curl -O https://gitlab.com/nomadic-labs/mi-cho-coq/raw/master/src/contracts/manager.tz
2)
./tezos-client添加地址STAKINGFACILITIEStz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY
3)
./tezos-client发起合约DELEGATOR1从运行" $(catmanager.tz)" --init'"tz1b7YSEeNRqgmjuX4d4aiai2sQTF4A7WBZf"的MACK-1转移1 --burn-cap 0.489 --baker STAKINGFACILITIES
CORRECT ANSWER:
Be sure to do a test run and only send a small amount of Tezos to make sure you have control of the smart contract. Once you confirm you can send and receive Tezos from the smart contract, send the rest. I didn't do that and now Staking facilities is in control of the smart contract and I am waiting for them to send the XTZ back to me.
Step 1) Download the script to Tezos directory
curl -O https://gitlab.com/nomadic-labs/mi-cho-coq/raw/master/src/contracts/manager.tz
Step 2) create an alias for the tz1 baker address
./tezos-client add address 'ALIASYOUCHOOSEFORBAKER' 'TZ1ADDRESSOFTHEBAKERY'
Step 3) create a smart contract making the manager YOURSELF with the --Init command and delegating to the baker with the --delegate command
./tezos-client originate contract 'SMART CONTRACT ALIAS' transferring 1 from 'ALIAS USED FOR YOUR TZ1 ADDRESS' running "$(cat manager.tz)" --init '"TZ1ADDRESS OF YOUR TZ1 MANAGER"' --burn-cap 0.489 --baker 'ALIAS-YOU-CHOSE-FOR-BAKER-IN-STEP1'
Example
1)
curl -O https://gitlab.com/nomadic-labs/mi-cho-coq/raw/master/src/contracts/manager.tz
2)
./tezos-client add address STAKINGFACILITIES tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY
3)
./tezos-client originate contract DELEGATOR1 transferring 1 from MACK-1 running "$(cat manager.tz)" --init '"tz1b7YSEeNRqgmjuX4d4aiai2sQTF4A7WBZf"' --burn-cap 0.489 --baker STAKINGFACILITIES
-
你确定吗?我不认为"原始合同"接受" --baker"选项.Are you sure? I don't believe `originate contract` accepts a `--baker` option.
- 0
- 2019-12-01
- Tom
-
是的,可以尝试一下.我昨天做了两次Yes, it does, give it a try. I did it twice yesterday
- 0
- 2019-12-02
- Mack Baise
-
注意,对于我自己和其他人,不再使用"baker"选项,而必须使用" delegate".另外,请务必在两边都加上冒号和分号的" TZ1地址",否则会出现错误A note, for myself and others, the "baker" option is no longer accepted, you must use "delegate" instead. Also, make sure to put '"TZ1 address"', with colon and semicolon on both sides or you will get an error
- 0
- 2020-01-15
- Mack Baise
我想在一个TZ地址(分类帐)上拥有多个KT1地址,以委派给多个人