default
An entrypoint for TEZ tokens receiving. After receiving, the contract swaps them for QUIPU tokens on QuipuSwap DEX and generates the transaction for getting QUIPU tokens balance on this contract.
Call parameters
An entrypoint doesn't accept any parameters.
Note: you need to pass positive TEZ/mutez amount to send() method (see example below).
Usage
const burnerAddress = "KT1...";
const mutezAmount = 100;
const burner = await tezos.contract.at(burnerAddress);
const operation = await burner.methods.default([]).send({ amount: mutezAmount, mutez: true });
await operation.confirmation();
Errors
An entrypoint doesn't throw any error.
Last updated