Skip to main content

Consume Miles

Miles are consumed on the DApp user interface. Click the button below to open the DApp:

Connect to the Dapp

Connect to the DApp by clicking the "Connect" button:

Docusaurus with Keytar

Then select the user account. If you don't have a dedicated user account, go to the Presentation page.

Once connected, the number of valid miles (ie. with expiration date in the future) is displayed:

Docusaurus with Keytar

If the Thanos wallet is not installed (as a browser extension), then the "Install Thanos" button is displayed.

Pick reward item

When the connected account has enough miles, the "Get it!" button of the reward item is enabled. Clicking this button generates the miles's consumption transaction to the smart contract.

For example, clicking the "Get it!" button on the 'Tezos phone case' item generates the transaction popup issued by the Thanos wallet.

Docusaurus with Keytar

You may check the transaction parameters in the "Operations" section:

[
{
"kind":"transaction"
"to":"KT1XpM1f6cq8cy8m8WV9xSsE5nBix2DzTYmx"
"amount":0
"mutez":true
"parameter":{
"entrypoint":"consume"
"value":{
"int":"5"
}
}
}
]

Once the transaction is confirmed, you can verify the transaction online with the "Better Call Dev" indexer: