burn(contract, sender, currency, amount)
Feature
Returns raw operation to burn point of sender. Note : Now only point owner can execute.
Parameters
string
contract address,
string
sender,
string
currency ID,
string
| int
amount
Return Value
object
burn point operation
example
const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
const sender = "0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca";
const currencyID = "MCC"
const amount = 40;
const Operation = mitum.point.burn(contractAddress, sender, currencyID, amount);
console.log(Operation);
// output
Operation {
id: 'mitum',
fact: BurnFact {
hint: Hint { s: 'mitum-point-burn-operation-fact' },
token: Token { s: '2024-06-27 06:39:31.835 +0000 UTC' },
_hash: <Buffer 98 18 e7 0a 57 67 ad 10 ac 41 7f 7a 53 3a 21 c2 86 af a2 88 be c9 4e 33 08 1b b5 d0 03 82 5b 54>,
sender: Address {
s: '0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca',
type: 'mitum'
},
contract: Address {
s: '0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca',
type: 'mitum'
},
currency: CurrencyID { s: 'MCC' },
target: Address {
s: '0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca',
type: 'mitum'
},
amount: Big { big: 40n }
},
hint: Hint { s: 'mitum-point-burn-operation' },
_factSigns: [],
_hash: <Buffer >
}
Last updated