This function generates a Deploy for transferring CEP-18 from one account to another.
Deploy
A promise that resolves to the created Deploy instance, ready to be sent to the Casper network.
import { makeCsprTransferDeploy } from 'casper-js-sdk';const deploy = await makeCep18TransferDeploy({ contractHash: '0123456789asdfbcdef...', senderPublicKeyHex: '0123456789asdfbcdef...', recipientPublicKeyHex: '0123456789abcdef...', transferAmount: '25000000000', // 25 CEP-18 with 9 decimals paymentAmount: '3000000000', // 3 CSPR});console.log('Created Deploy:', deploy);
The parameters required to create the CEP-18 transfer deploy.
Generated using TypeDoc
This function generates a
Deploy
for transferring CEP-18 from one account to another.Returns
A promise that resolves to the created Deploy instance, ready to be sent to the Casper network.
Example