editAccountName
Rename a subaccount.
import { editAccountName } from "@symmio/trading-core";
const hash = await editAccountName(config, {
account: "0xsub...",
name: "Trading bot",
});Parameters
accountAddressrequiredThe subaccount being renamed. The signer must equal the subaccount’s owner on chain.
namestringrequiredNew display name.
chainIdnumberoptionalOptional chain override.
gaslessboolean | GaslessWriteOptionsoptionalRelay this write through the gasless execution mode instead of the wallet. A
boolean for the common case, or a per-call GaslessWriteOptions bag; omitted, the chain’s execution.mode decides.
Returns
HashThe broadcast tx hash.
Last updated on