The delegation-create
command in Mintlayer is designed to establish a delegation to a specific staking pool. This command facilitates the assignment of an owner for the delegation, who is authorized to sign for withdrawals from the pool. It creates a unique delegation ID, to which coins can be sent for automatic staking in the provided pool ID. Notably, the pool receiving the delegation does not have the authority to spend the coins.
delegation-create <OWNER> <POOL_ID>
<OWNER>
: The address that will have the authority to sign for withdrawals from the delegation.<POOL_ID>
: The pool ID of the staking pool that will receive the delegation and stake the coins.-h, --help
: Displays help information about the delegation-create
command.Creating a Delegation:
To create a delegation to the staking pool with the ID tpool1qqf8pgknvccx8cpu7rf0xpmypez7z8t6c23tmlm5ln7m0dr70z2sqx4p8c
and assign the owner address tmt1q88h3pt3k3x5d7kzg96y4fe60kt7vthkuu4qnztw
, the command would be:
delegation-create tmt1q88h3pt3k3x5d7kzg96y4fe60kt7vthkuu4qnztw tpool1qqf8pgknvccx8cpu7rf0xpmypez7z8t6c23tmlm5ln7m0dr70z2sqx4p8c
Upon successful execution, you will receive a confirmation:
Success, the creation of delegation transaction was broadcast to the network. Delegation id: tdelg1jjc7a5lm7qs6xv95aatn4r7y8nrdek2l9mascark65whvccjck9swd086v
This message indicates that the delegation has been created successfully, and a unique delegation ID is generated.