build_change_pubkey_safe_tx

Documentation for eth_defi.lighter.pubkey.build_change_pubkey_safe_tx function.

build_change_pubkey_safe_tx(web3, safe, account_index, api_key_index, pubkey, zk_lighter='0x3B4D794a66304F130a4Db8F2551B0070dfCf5ca7')

Build an (unsigned) Safe transaction calling ZkLighter.changePubKey.

The Safe is the Lighter account’s L1 owner. Sign + execute it with the Safe owners, or post it to the Safe Transaction Service via propose_change_pubkey().

Returns

An unsigned SafeTx.

Parameters
Return type

safe_eth.safe.safe_tx.SafeTx