Transfers¶
Read operations¶
Validate Transfer compliance¶
This set of methods verifies if a Transfer is possible according to the compliance of a Token. It calls the .isVerified
and the .canTransfer
methods on the Identity Registry to verify the Identity and
on the Compliance contract.
const valid = await token.getTransferCompliance({
senderWallet: 'SENDER WALLET ADDRESS',
recipientWallet: 'RECEIVER WALLET ADDRESS',
amount: AMOUNT,
});
Write operations¶
Force Transfer tokens¶
const tx = await token.forceTransfer({
from: 'SENDER WALLET ADDRESS',
to: 'RECEIVER WALLET ADDRESS',
amount: AMOUNT
});
Transfer¶
const tx = await token.transfer({
wallet: 'WALLET ADDRESS',
amount: AMOUNT
});
Mint tokens¶
const tx = await token.mintToWallet({
wallet: 'WALLET ADDRESS',
amount: AMOUNT,
});
Burn tokens¶
const tx = await token.burnFromWallet({
wallet: 'WALLET ADDRESS',
amount: AMOUNT,
});