Delegates a DAG amount to a specific node on the network.
Parameters
Name
Type
Description
Data
Object<DelegatedStake>
The delegate stake object.
DelegatedStake
type DelegatedStake = {
source: string; // Wallet address signing the transaction
nodeId: string; // The node identifier to delegate stake to
// Must be a valid node ID
amount: number; // The amount to stake
// Must be in DATUM
fee?: number; // The fee in DATUM
// If not provided, the default fee will be 0
tokenLockRef: string; // Reference to the token lock transaction
// Must be a valid token lock transaction hash
};
The tokenLockRef value must reference a token lock transaction with an unlockEpoch value set to null and currencyId set to null (DAG). Check the details in the dag_tokenLock section.
Return Type
String<Hash> - The hash of the delegate stake transaction.