Button.Transaction
Import
import { Button } from 'frog'
Usage
import { Button, Frog } from 'frog'
export const app = new Frog()
app.frame('/', (c) => {
return c.res({
image: (
<div style={{ color: 'white', display: 'flex', fontSize: 60 }}>
Perform a transaction
</div>
),
intents: [
<TextInput placeholder="Value (ETH)" />,
<Button.Transaction target="/mint">Mint</Button.Transaction>,
]
})
})
Props
action (optional)
- Type:
string
Path of the next frame to perform a POST
request.
target
- Type:
string
The target .transaction
endpoint.