Skip to main content

UnsafeSplitCoinParams

@iota/iota-sdk


@iota/iota-sdk / client / UnsafeSplitCoinParams

Interface: UnsafeSplitCoinParams

Defined in: sdk/typescript/src/client/types/params.ts:712

Create an unsigned transaction to split a coin object into multiple coins.

Properties​

coinObjectId​

coinObjectId: string

Defined in: sdk/typescript/src/client/types/params.ts:716

the coin object to be spilt


gas?​

optional gas?: string | null

Defined in: sdk/typescript/src/client/types/params.ts:723

gas object to be used in this transaction, node will pick one from the signer's possession if not provided


gasBudget​

gasBudget: string

Defined in: sdk/typescript/src/client/types/params.ts:725

the gas budget, the transaction will fail if the gas cost exceed the budget


signal?​

optional signal?: AbortSignal

Defined in: sdk/typescript/src/client/types/params.ts:726


signer​

signer: string

Defined in: sdk/typescript/src/client/types/params.ts:714

the transaction signer's IOTA address


splitAmounts​

splitAmounts: string[]

Defined in: sdk/typescript/src/client/types/params.ts:718

the amounts to split out from the coin