@@ -445,6 +445,28 @@ def sub_account_transfer(self, sub_account_user: str, is_deposit: bool, usd: int
445445 timestamp ,
446446 )
447447
448+ def sub_account_spot_transfer (self , sub_account_user : str , is_deposit : bool , token : str , amount : float ) -> Any :
449+ timestamp = get_timestamp_ms ()
450+ sub_account_transfer_action = {
451+ "type" : "subAccountSpotTransfer" ,
452+ "subAccountUser" : sub_account_user ,
453+ "isDeposit" : is_deposit ,
454+ "token" : token ,
455+ "amount" : str (amount ),
456+ }
457+ signature = sign_l1_action (
458+ self .wallet ,
459+ sub_account_transfer_action ,
460+ None ,
461+ timestamp ,
462+ self .base_url == MAINNET_API_URL ,
463+ )
464+ return self ._post_action (
465+ sub_account_transfer_action ,
466+ signature ,
467+ timestamp ,
468+ )
469+
448470 def vault_usd_transfer (self , vault_address : str , is_deposit : bool , usd : int ) -> Any :
449471 timestamp = get_timestamp_ms ()
450472 vault_transfer_action = {
@@ -575,3 +597,22 @@ def multi_sig(self, multi_sig_user, inner_action, signatures, nonce, vault_addre
575597 signature ,
576598 nonce ,
577599 )
600+
601+ def use_big_blocks (self , enable : bool ) -> Any :
602+ timestamp = get_timestamp_ms ()
603+ action = {
604+ "type" : "evmUserModify" ,
605+ "usingBigBlocks" : enable ,
606+ }
607+ signature = sign_l1_action (
608+ self .wallet ,
609+ action ,
610+ None ,
611+ timestamp ,
612+ self .base_url == MAINNET_API_URL ,
613+ )
614+ return self ._post_action (
615+ action ,
616+ signature ,
617+ timestamp ,
618+ )
0 commit comments