The Honeycomb instance to use for the operation.
The arguments required to create the UpdateUser operation.
An object containing the operation.
const honeycomb = new Honeycomb(connection);
// Create UpdateUser operation with specified arguments.
const operationArgs: CreateUpdateUserOperationArgs = {
args: {
name: "User";
bio: null;
pfp: null;
}, // The new name to be set for the user.
user: userPublicKey, // The public key of the user to be updated.
};
const { operation } = createUpdateUserOperation(honeycomb, operationArgs);
operation.send(); // The generated UpdateUser operation.
Generated using TypeDoc
This function creates an UpdateUser operation using the specified Honeycomb instance and the provided arguments. The operation is used to update a user's information in the Honeycomb ecosystem.
The function calculates the public info public key using the provided parameters. It also generates the necessary instructions for the operation, including authority and rent sysvar.