脚本编写通用规则
前言
https://www.fishx.xyz/contract.htmlFishxScript = {
name: "脚本名称",
desc: "脚本简介",
category: "脚本分组",
type: "contract",
url: "https://www.fishx.xyz/contract.html",
inputs: { amount: { type: "number", range: true } },
logic: async (context) => {
must(changeAccount);
await send({
to: "0xe5E30E7c24e4dFcb281A682562E53154C15D3332",
data: `0x9f8420b3${encodeEther(getInput("amount", context),)}0000000000000000000000000000000000000000000000000000000000009c40`,
value: `${hexOfEtherSum(getInput("amount", context),"0.00000004",)}`
})
}
};
标准结构:
name
desc
category
type
url
inputs
逻辑结构主体
逻辑体内:切换钱包
逻辑体内:指定链ID
逻辑体内:跳转运行其他脚本
逻辑体内:强制结束
其他支持:
Last updated