The Honeycomb instance.
The arguments for creating the "Approve Delegate" operation.
An object containing the "Approve Delegate" operation.
const honeycomb = new Honeycomb(...); // Initialize Honeycomb instance
const holderAccount = ...; // HplHolderAccount instance
const delegatePublicKey = ...; // Delegate public key
const amountToApprove = 100; // Number of tokens to approve
// Create an "Approve Delegate" operation for the holder account
const operationArgs: CreateApproveDelegateOperationArgs = {
amount: amountToApprove,
holderAccount,
delegate: delegatePublicKey,
};
const { operation } = await createApproveDelegateOperation(honeycomb, operationArgs);
operation.send();
Generated using TypeDoc
Creates an "Approve Delegate" operation for the given holder account, approving a delegate to spend a certain amount of tokens on behalf of the holder account.