Skip to main content
Function:
{package}::dex_accounts_entry::revoke_max_builder_fee_for_subaccount
ABI Object:
const functionAbi: MoveFunction = {
  name: "revoke_max_builder_fee_for_subaccount",
  visibility: "private",
  is_entry: true,
  is_view: false,
  generic_type_params: [],
  params: [
    "&signer",
    "0x1::object::Object<{package}::dex_accounts::Subaccount>",
    "address",
  ],
  return: [],
};
Parameters:
  • signer - The account signer
  • subaccount - The Trading Account object
  • builder_addr - The builder address to revoke
Example:
const transaction = await aptos.transaction.build.simple({
  sender: account.accountAddress,
  data: {
    function: `${PACKAGE}::dex_accounts_entry::revoke_max_builder_fee_for_subaccount`,
    typeArguments: [],
    functionArguments: [
      "0x123...abc", // subaccountAddr
      "0xabc...123", // builderAddr (builder address to revoke)
    ],
  },
});