button
For displaying a button, you can use the
button()
predicate:
// SYNTAX
button(BTN_LABEL, [...ACTIONS])
// EXAMPLE
prompt :-
show [
button('Mint', [
call_fn(hyperdapp, mint, [value(eth(0.1))], [])
])
].
This snippet will display a Mint button that, on click, will trigger the mint payable method from the hyperdapp smart contract. The payable amount is 0.1 ETH
Last updated