MCPcopy Create free account
hub / github.com/NoteProtocol/NoteWallet / sendTokenEstimate

Function sendTokenEstimate

src/wallet.ts:354–369  ·  view source on GitHub ↗
(
    toAddress: string,
    tick: string,
    amt: bigint,
    feePerKb?: number
  )

Source from the content-addressed store, hash-verified

352 }
353
354 async sendTokenEstimate(
355 toAddress: string,
356 tick: string,
357 amt: bigint,
358 feePerKb?: number
359 ) {
360 const common = await this.sendTokenCommon(toAddress, tick, amt);
361 const tx = await this.buildNoteTransaction(
362 common.payload,
363 common.toAddresses,
364 common.tokenUtxos,
365 common.payUtxos,
366 feePerKb
367 );
368 return tx.realFee;
369 }
370
371 async sendToken(
372 toAddress: string,

Callers

nothing calls this directly

Calls 1

buildNoteTransactionMethod · 0.80

Tested by

no test coverage detected