getTonTransferTxParams method
Future<SenderArguments>
getTonTransferTxParams({
- required BigInt tonAmount,
- required InternalAddress destinationAddress,
- required InternalAddress refundAddress,
- Cell? forwardPayload,
- BigInt? forwardTonAmount,
- BigInt? queryId,
override
Implementation
@override
Future<SenderArguments> getTonTransferTxParams(
{required BigInt tonAmount,
required InternalAddress destinationAddress,
required InternalAddress refundAddress,
Cell? forwardPayload,
BigInt? forwardTonAmount,
BigInt? queryId}) async {
final to = await getWalletAddress(destinationAddress);
final body = createTonTransferBody(
tonAmount: tonAmount,
refundAddress: refundAddress,
forwardPayload: forwardPayload,
queryId: queryId,
);
final value = tonAmount +
(forwardTonAmount ?? BigInt.zero) +
gasConstants.tonTransfer;
return SenderArguments(value: value, to: to, body: body);
}