Creates a CSPR transfer Deploy.
Deploy
This function generates a Deploy for transferring CSPR from one account to another.
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 makeCsprTransferDeploy({ senderPublicKeyHex: '0123456789asdfbcdef...', recipientPublicKeyHex: '0123456789abcdef...', transferAmount: '2500000000', // 2.5 CSPR});console.log('Created Deploy:', deploy);
The parameters required to create the transfer deploy.
Generated using TypeDoc
Creates a CSPR transfer
Deploy
.This function generates a
Deploy
for transferring CSPR from one account to another.Returns
A promise that resolves to the created Deploy instance, ready to be sent to the Casper network.
Example