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

Function sendToken

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

Source from the content-addressed store, hash-verified

369 }
370
371 async sendToken(
372 toAddress: string,
373 tick: string,
374 amt: bigint,
375 feePerKb?: number
376 ) {
377 const common = await this.sendTokenCommon(toAddress, tick, amt);
378 const tx = await this.buildNoteTransaction(
379 common.payload,
380 common.toAddresses,
381 common.tokenUtxos,
382 common.payUtxos,
383 feePerKb
384 );
385 return await this.broadcastTransaction(tx);
386 }
387
388 // Transfer N20 contract Token
389 async sendTokenToMultiAddresses(tick: string, toAddresses: ISendToAddress[]) {

Callers

nothing calls this directly

Calls 1

buildNoteTransactionMethod · 0.80

Tested by

no test coverage detected