Content pfp
Content
@
0 reply
0 recast
0 reaction

Leo Franklin John pfp
Leo Franklin John
@leofrank
@chrisdom Im trying to make a Transaction in frametrain , is there any tutorial for that ? . I couldnt call my custom api . Can you help me do that ?
2 replies
0 recast
0 reaction

Chris pfp
Chris
@chrisdom
you're mentioning a transaction but saying you're calling an API, so which is it?
1 reply
0 recast
0 reaction

Leo Franklin John pfp
Leo Franklin John
@leofrank
When I pass action as tx and enter the url endpoint where my transaction occurs that’s where error is thrown
1 reply
0 recast
0 reaction

Chris pfp
Chris
@chrisdom
instead of passing an URL, query the data from before returning the { buttons, component, aspectRation } object , and place the result from your API call as the value of the button (basically inline the data)
1 reply
0 recast
0 reaction

Leo Franklin John pfp
Leo Franklin John
@leofrank
im not clear . { label: "Confirm βœ…", action: "tx", target: "", }, this is how i call a transaction , with the target url ?
1 reply
0 recast
0 reaction

Chris pfp
Chris
@chrisdom
maybe you're just used with frog, it's much simpler than you think, no separate route needed
1 reply
0 recast
0 reaction

Leo Franklin John pfp
Leo Franklin John
@leofrank
@chrisdom When i try this i get error like Type '{ chainId: string; method: string; params: { abi: Abi; to: string; data: `0x${string}`; value: string; }; }' is not assignable to type 'string'.
1 reply
0 recast
0 reaction