The Honeycomb instance to use for the operation.
The arguments required to create the SetPublicInfo operation.
An object containing the operation.
const honeycomb = new Honeycomb(connection);
// Create SetPublicInfo operation with specified arguments.
const operationArgs: CreateSetPublicInfoOperationArgs = {
args: { label: "...", value: "..." }, // The new data to be set in the public info.
};
const { operation } = await createSetPublicInfoOperation(honeycomb, operationArgs);
operation.send(); // The generated SetPublicInfo operation.
Generated using TypeDoc
This function creates a SetPublicInfo operation using the specified Honeycomb instance and the provided arguments. The operation is used to update the public info account for a specific program in the Honeycomb ecosystem.
The function calculates the program data public key and public info public key using the provided parameters. It also generates the necessary instructions for the operation, including authority, program data, and rent sysvar.