Function makeCep18TransferDeploy

  • 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

    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);

    Parameters

    Returns Deploy

Generated using TypeDoc