signer- The account signersubaccount- The Trading Account objectbuilder_addr- The builder address to revoke
Revoke maximum builder fee approval for a Trading Account
{package}::dex_accounts_entry::revoke_max_builder_fee_for_subaccount
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: [],
};
signer - The account signersubaccount - The Trading Account objectbuilder_addr - The builder address to revokeconst 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)
],
},
});