swap
Initiate a token swap from a smart contract account using the Alchemy wallet API, requiring the owner SCA address and signer address.
Instructions
Initiate a token swap from a smart contract account (SCA) via the Alchemy wallet API. Requires AGENT_WALLET_SERVER
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ownerScaAccountAddress": "<ownerScaAccountAddress>",
"signerAddress": "<signerAddress>"
},
"name": "swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ownerScaAccountAddress | Yes | The owner SCA account address. | |
| signerAddress | Yes | The signer address to send the transaction from. |