diff --git a/examples/ws_send_batch_tx.py b/examples/ws_send_batch_tx.py index 99fca8e..375d8fb 100644 --- a/examples/ws_send_batch_tx.py +++ b/examples/ws_send_batch_tx.py @@ -24,6 +24,7 @@ async def ws_flow(tx_types, tx_infos): { "type": "jsonapi/sendtxbatch", "data": { + "id": f"my_random_batch_id_{12345678}", # optional, helps id the response "tx_types": json.dumps(tx_types), "tx_infos": json.dumps(tx_infos), }, diff --git a/examples/ws_send_tx.py b/examples/ws_send_tx.py index 70871db..c120b83 100644 --- a/examples/ws_send_tx.py +++ b/examples/ws_send_tx.py @@ -11,7 +11,7 @@ "0xed636277f3753b6c0275f7a28c2678a7f3a95655e09deaebec15179b50c5da7f903152e50f594f7b" ) ACCOUNT_INDEX = 65 -API_KEY_INDEX = 1 +API_KEY_INDEX = 3 async def ws_flow(tx_type, tx_info): @@ -24,6 +24,7 @@ async def ws_flow(tx_type, tx_info): { "type": "jsonapi/sendtx", "data": { + "id": f"my_random_id_{12345678}", # optional, helps id the response "tx_type": tx_type, "tx_info": json.loads(tx_info), },