Function: getBalanceAfterTransfer()
Returns the post balance after a transfer of x(amountToTransfer numRecipients) from startTokenId to endTokenId
getBalanceAfterTransfer<
T>(balance,startTokenId,endTokenId,ownershipTimeStart,ownershipTimeEnd,amountToTransfer,numRecipients,allowUnderflow?):BalanceArray<T>
Defined in: packages/bitbadgesjs-sdk/src/core/transfers.ts:409
Returns the post balance after a transfer of x(amountToTransfer * numRecipients) from startTokenId to endTokenId
Type Parameters
T
T extends NumberType
Parameters
balance
iBalance<T>[]
The balance to subtract from.
startTokenId
T
The start token ID to subtract from.
endTokenId
T
The end token ID to subtract from.
ownershipTimeStart
T
ownershipTimeEnd
T
amountToTransfer
T
The amount to subtract.
numRecipients
T
The number of recipients to subtract from.
allowUnderflow?
boolean
Returns
BalanceArray<T>