Replies: 1 comment 1 reply
-
The arguments property should be an array of strings and not a json. Try sending the address as a string arguments:["0x123...789"] |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discord user ID
No response
Describe your question in detail.
I send a request of the following JSON body to bocast a transaction through RPC : https://api.mainnet.aptoslabs.com/v1/transactions POST, but got an error: Failed to parse transaction payload: parse arguments[0] failed, expect string<move_struct_tag_id>, caused by error: invalid type: map, expected a string. I think this JSON arguments[0] is correct according to the address 0x4bf51972879e3b95c4781a5cdcb9e1ee24ef483e7d22f2d903626f126df62bd1 ABI on chain, please help to check what is wrong with it, thx.
{ "sender": "my address", "sequence_number": "84", "max_gas_amount": "100000", "gas_unit_price": "100", "expiration_timestamp_secs": "1725370236", "payload": { "type": "entry_function_payload", "function": "0x4bf51972879e3b95c4781a5cdcb9e1ee24ef483e7d22f2d903626f126df62bd1::router::add_liquidity_and_stake_coin_entry", "type_arguments": [ "0x1::aptos_coin::AptosCoin" ], "arguments": [ { "inner": "0x2ebb2ccac5e027a87fa0e2e5f656a3a4238d6a48d93ec9b610d570fc0aa0df12" }, false, "1308296", "199999885" ] }, "signature": { "type": "ed25519_signature", "public_key": "my public key", "signature": "my signature" } }
What error, if any, are you getting?
No response
What have you tried or looked at? Or how can we reproduce the error?
No response
Which operating system are you using?
Windows
Which SDK or tool are you using? (if any)
REST API
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions