Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.startale.com/llms.txt

Use this file to discover all available pages before exploring further.

Sends a single transaction. The user’s smart account is the sender. Gas is sponsored on Soneium Mainnet and Minato, the user pays nothing.

Request

const hash = await provider.request<`0x${string}`>({
  method: 'eth_sendTransaction',
  params: [
    {
      to: '0x...',
      value: '0x38d7ea4c68000', // 0.001 ETH
      data: '0x...',             // optional
    },
  ],
})

Parameters

params[0].to
`0x${string}`
required
Recipient address.
params[0].value
`0x${string}`
Hex-encoded value in wei. Defaults to 0x0.
params[0].data
`0x${string}`
Hex-encoded calldata. Defaults to 0x.
params[0].from
`0x${string}`
Ignored. The smart-account address is used regardless.

Returns

0x${string}, the transaction hash.

Errors

CodeCause
4001User rejected the transaction
4100Wallet not connected
4902Active chain not in appChainIds

Notes

  • The from field is rewritten to the smart-account address by the wallet popup. Any value supplied by the caller is ignored.
  • Gas is sponsored by the Startale paymaster automatically.