From de3e31cc0afa9fbd2a58f6e2059cf40706277f37 Mon Sep 17 00:00:00 2001 From: aitbc Date: Tue, 28 Apr 2026 17:21:48 +0200 Subject: [PATCH] Fix agent message to use modern transaction payload format --- cli/aitbc_cli.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cli/aitbc_cli.py b/cli/aitbc_cli.py index d56ff2e9..e3630645 100755 --- a/cli/aitbc_cli.py +++ b/cli/aitbc_cli.py @@ -1141,14 +1141,16 @@ def agent_operations(action: str, **kwargs) -> Optional[Dict]: actual_nonce = 0 tx = { - "type": "transfer", + "type": "TRANSFER", + "chain_id": chain_id, "from": sender_address, - "to": agent, - "amount": 0, - "fee": 10, "nonce": actual_nonce, - "payload": message, - "chain_id": chain_id + "fee": 10, + "payload": { + "recipient": agent, + "amount": 0, + "message": message + } } # Sign transaction