IotaTransaction
@iota/iota-sdk / client / IotaTransaction
Type Alias: IotaTransaction
IotaTransaction = {
MoveCall:MoveCallIotaTransaction; } | {TransferObjects: [IotaArgument[],IotaArgument]; } | {SplitCoins: [IotaArgument,IotaArgument[]]; } | {MergeCoins: [IotaArgument,IotaArgument[]]; } | {Publish:string[]; } | {Upgrade: [string[],string,IotaArgument]; } | {MakeMoveVec: [string|null,IotaArgument[]]; }
Defined in: sdk/typescript/src/client/types/generated.ts:953
A single transaction in a programmable transaction block.
Union Members
Type Literal
{ MoveCall: MoveCallIotaTransaction; }
A call to either an entry or a public Move function
Type Literal
{ TransferObjects: [IotaArgument[], IotaArgument]; }
(Vec<forall T:key+store. T>, address) It sends n-objects to the specified address. These objects
must have store (public transfer) and either the previous owner must be an address or the object
must be newly created.
Type Literal
{ SplitCoins: [IotaArgument, IotaArgument[]]; }
(&mut Coin<T>, Vec<u64>) -> Vec<Coin<T>> It splits off some amounts into a new coins with those
amounts
Type Literal
{ MergeCoins: [IotaArgument, IotaArgument[]]; }
(&mut Coin<T>, Vec<Coin<T>>) It merges n-coins into the first coin
Type Literal
{ Publish: string[]; }
Publishes a Move package. It takes the package bytes and a list of the package's transitive dependencies to link against on-chain.
Type Literal
{ Upgrade: [string[], string, IotaArgument]; }
Upgrades a Move package
Type Literal
{ MakeMoveVec: [string | null, IotaArgument[]]; }
forall T: Vec<T> -> vector<T> Given n-values of the same type, it constructs a vector. For non
objects or an empty vector, the type tag must be specified.