sdk.txbuilder.addregisterstake
Home > @blaze-cardano/sdk > TxBuilder > addRegisterStake
TxBuilder.addRegisterStake() method
Adds a certificate to register a staker.
On Conway+ (Dijkstra) the cert form is Registration { credential, deposit } (cert type 7); the legacy Shelley StakeRegistration (type 0) is rejected.
When the credential is a script credential, Dijkstra requires a Plutus witness for the registration. Pass redeemer to attach a cert-purpose redeemer for this cert; the caller is responsible for supplying the validating script (e.g. as a reference input via ).
Signature:
addRegisterStake(credential: Credential, redeemer?: PlutusData): this;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
credential |
— the credential to register (key or script). | |
|
redeemer |
(Optional) — optional Plutus redeemer when the credential is a script. |
Returns:
this