default
Last updated
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.
An entrypoint doesn't accept any parameters.
Note: you need to pass positive TEZ/mutez amount to send() method (see example below).
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();An entrypoint doesn't throw any error.
Last updated