WriteMethodCallType

This is similar to ReadMethodCallType with two added properties

payment

  • We will automatically call the approve function for non native coins.

  • The value should be human readable. So "1.2" represents "1.2" ETH or "1.2" USDC depending on the currency field

callOptions

  • As of now, we only support specifying the relative amount of gas to use.

  • They correspond to the values of the gas trackers at the time of calling the function

type WriteMethodCallType = ReadMethodCallType & {
callOptions?: { gasOptions?: "low" | "medium" | "high" };
payment: {
currency: "MATIC" | "ETH" | "USDC" | "SOL" | "AVAX" | "USDC.e";
value: string;
};
};