Skip to main content

singleSendStep1

cat-sdk v1.0.3


cat-sdk / singleSendStep1

Function: singleSendStep1()

singleSendStep1(provider, feeUtxos, inputTokenUtxos, receivers, feeChangeAddress, tokenChangeAddress, feeRate): Promise\<{ changeTokenOutputIndex: number; guard: CAT20Guard; guardPsbt: ExtPsbt; outputTokenStates: CAT20State[]; }>

Defined in: packages/cat-sdk/src/features/cat20/send/singleSend.ts:128

Helper function for singleSend, create the send psbt but do not sign it

Parameters

provider

UtxoProvider & ChainProvider

the provider for the blockchain and UTXO operations

feeUtxos

UTXO[]

the UTXOs for the fee

inputTokenUtxos

UTXO[]

the UTXOs of the input tokens

receivers

object[]

the receivers of the tokens and the amounts

feeChangeAddress

ByteString

the address for the change output

tokenChangeAddress

ByteString

the address for the change output

feeRate

number

the fee rate for the transaction

Returns

Promise\<{ changeTokenOutputIndex: number; guard: CAT20Guard; guardPsbt: ExtPsbt; outputTokenStates: CAT20State[]; }>

the guard and the output token states