Skip to content

Commit 587d6ba

Browse files
committed
brought back example
1 parent f02ff43 commit 587d6ba

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/server/routes/backend-wallet/sendTransaction.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ const requestBodySchema = Type.Object({
3030
...txOverridesWithoutValue.properties,
3131
});
3232

33+
requestBodySchema.examples = [
34+
{
35+
toAddress: "0x7a0ce8524bea337f0bee853b68fabde145dac0a0",
36+
data: "0x449a52f800000000000000000000000043cae0d7fe86c713530e679ce02574743b2ee9fc0000000000000000000000000000000000000000000000000de0b6b3a7640000",
37+
value: "0x00",
38+
txOverrides: {
39+
gas: "50000",
40+
},
41+
},
42+
];
43+
3344
export async function sendTransaction(fastify: FastifyInstance) {
3445
fastify.route<{
3546
Params: Static<typeof ParamsSchema>;

0 commit comments

Comments
 (0)