API Reference

The method mc_getUnsignedUserOp returns a well-constructed UserOp and a valid UserOpHash ready to be signed.

Log in to see full request history
Body Params
string
required

The version of the JSON-RPC protocol.

integer
required

The unique identifier for the request.

string
required

The name of the method to be invoked.

params
array of objects
required
length ≤ 1

This array holds a single object that consolidates all parameters necessary for the mc_getUnsignedUserOp method. The object comprises the following fields:

The properties account and owner are mutually exclusive; you should provide only one of them.

  • account: The smart account address initiating the UserOp. In the absence of this field, MoonChute will create an account owned by the owner using the specified wallet provider.
  • owner: The address of the smart account's owner.
  • chainId: The network targeted for the UserOp.
  • to: The destination address for the UserOp.
  • data: The UserOp's data in hex format.
  • value: The monetary amount, in hex, being sent with the UserOp, if any.
params*
Responses

400

Bad request, invalid parameters or method

500

Internal server error

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json