The operator is the account you specify during VIP whitelisting that will
receive your rollup’s operator commission rewards. To learn more about the VIP
operator rewards, see
this section.To replace the operator address, call update_operator on the VIP contract and
pass two arguments in order: the rollup bridge ID and the new operator address.
The bridge ID uniquely identifies your rollup bridge and can be retrieved from
${REST_URL}/opinit/opchild/v1/bridge_info.
export BRIDGE_ID=29 # Replace with your rollup bridge ID. You can get it from ${REST_URL}/opinit/opchild/v1/bridge_infoexport NEW_OPERATOR_ADDRESS=init14zmga05vl324ddaw7wqwdqt9pcvjeeyae3jn2k # Replace with the new operator addressexport OPERATOR_KEY_NAME=operator # Replace with your operator key. Check initiad keys list for the list of your keysexport VIP_CONTRACT=‘init182yxkv4gqfvz7tjyde6dfgjdr4ldqxklgmf23aju2u3cslnss7ys6dy6w8’export RPC_URL=‘https://rpc.initia.xyz’export CHAIN_ID=‘interwoven-1’initiad tx move execute-json VIPCONTRACTvipupdateoperator −−args′["′VIP_CONTRACT vip update_operator \ --args '["'VIPCONTRACTvipupdateoperator −−args′["′’”, “‘NEWOPERATORADDRESS′"]′ −−from{NEW_OPERATOR_ADDRESS}'"]' \ --from NEWOPERATORADDRESS′"]′ −−fromOPERATOR_KEY_NAME—node RPCURL −−chain−idRPC_URL \ --chain-id RPCURL −−chain−idCHAIN_ID—gas-prices 0.015uinit—gas auto
Operator commissions can be adjusted based on the operator_commission_max_rate
and operator_commission_max_change_rate settings established during VIP
whitelisting.Note that the commission value can be modified only once per stage, and any
updated rate will take effect starting from the next stage. To update the
operator commission, call update_operator_commission on the VIP contract. This
function takes three arguments:
the rollup bridge ID
the version number
the new commission rate
Use version value 1 when the rollup is listed for the first time. If the
rollup is delisted and later relisted, set the version to the previous value
plus 1.
export BRIDGE_ID=29 # Replace with your actual bridge ID. You can get it from ${REST_URL}/opinit/opchild/v1/bridge_infoexport VERSION=1 # Use 1 unless your rollup has been delisted beforeexport NEW_COMMISSION_RATE=0.05 # Replace with the new commission rate (e.g., 0.05 for 5%)export OPERATOR_KEY_NAME=operator # Replace with your operator key name. Check initiad keys list for the list of your keysexport VIP_CONTRACT=‘init182yxkv4gqfvz7tjyde6dfgjdr4ldqxklgmf23aju2u3cslnss7ys6dy6w8’export RPC_URL=‘https://rpc.initia.xyz’export CHAIN_ID=‘interwoven-1’initiad tx move execute-json VIPCONTRACTvipupdateoperatorcommission −−args′["′VIP_CONTRACT vip update_operator_commission \ --args '["'VIPCONTRACTvipupdateoperatorcommission −−args′["′’”, ”'VERSION′","′{VERSION}'", "'VERSION′","′'”]’ —from OPERATORKEYNAME −−nodeOPERATOR_KEY_NAME \ --node OPERATORKEYNAME −−nodeRPC_URL —chain-id $CHAIN_ID —gas-prices 0.015uinit —gas auto