rift_send_transaction
Executes contract calls or native transfers through the user's smart wallet as an ERC-4337 UserOperation and returns a passkey approval link before on-chain submission.
Instructions
Execute a call through the user's SMART WALLET (Safe) as an ERC-4337 UserOperation. For advanced use (contract calls, native transfers) — for simple token sends use rift_send_crypto instead. REAL TX — confirm with user.
Does NOT execute directly: returns an APPROVAL REQUIRED link the user approves with their passkey. Check with rift_get_approval (result has userOpHash / transactionHash). Never call again to retry.
Semantics an AI MUST know:
The on-chain sender is the user's SMART WALLET (a passkey-owned Safe). There is no EOA.
The returned 'hash' is a UserOperation hash (NOT a classic Ethereum tx hash). Do NOT link it as etherscan.io/tx/ — that will 404. To track, use a bundler-aware explorer (jiffyscan.xyz/userOpHash/) or poll a bundler via eth_getUserOperationByHash.
Gas is sponsored by default. Pass 'paymasterToken' (ERC-20 contract address) to pay gas in a token like USDC instead.
After approval, rift_get_approval's result carries userOpHash and transactionHash. Fields 'nonce', 'gasPrice', 'blockNumber' are NOT returned — UserOps don't have them.
Requires login.
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": {
"chain": "<chain>",
"to": "<to>"
},
"name": "rift_send_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Contract or recipient address (0x...) | |
| data | No | Encoded contract call data (hex, starts with 0x) | |
| chain | Yes | Chain: BASE, POLYGON, ARBITRUM, ETHEREUM, etc | |
| value | No | Native value in wei (decimal string) | |
| paymasterToken | No | Optional ERC-20 token contract address to pay gas with. Omit for sponsored gas (free to user). |