forked from ton-core/ton
-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
`const internalMessage = internal({
value: amount,
to: toAddress,
body: memo,
bounce
});
const transfer = await wallet.createTransfer({
authType: AUTH_TYPE.external,
seqno: nonce,
messages: [internalMessage],
sendMode: SendMode.PAY_GAS_SEPARATELY,
timeout: Math.floor(Date.now() / 1e3) + timeout,
signer: () => {
return Promise.resolve(Buffer.from(''));
}
});
console.log('estimate:', await this.tonClient.estimateExternalMessageFee(wallet.address, {
body: transfer,
ignoreSignature: true,
initCode: null,
initData: null,
}));`
estimate: {
'@type': 'query.fees',
source_fees: {
'@type': 'fees',
in_fwd_fee: 731200,
storage_fee: 209505,
gas_fee: 0,
fwd_fee: 0
}
}
Why I am unable to estimate the gas fee (computation fee)
Metadata
Metadata
Assignees
Labels
No labels