Class: TransactionDataBuilder
Implements
Constructors
new TransactionDataBuilder()
new TransactionDataBuilder(
clone
?):TransactionDataBuilder
Parameters
• clone?
• clone.version?: 2
= ...
• clone.sender?: null
| string
= ...
• clone.expiration?: null
| EnumOutputShapeWithKeys
<object
, "None"
| "Epoch"
> = ...
• clone.gasData? = GasData
• clone.gasData.budget?: null
| string
| number
= ...
• clone.gasData.price?: null
| string
| number
= ...
• clone.gasData.owner?: null
| string
= ...
• clone.gasData.payment?: null
| object
[] = ...
• clone.inputs?: EnumOutputShapeWithKeys
<object
, "Pure"
| "Object"
| "UnresolvedPure"
| "UnresolvedObject"
>[] = ...
• clone.commands?: EnumOutputShapeWithKeys
<object
, "MoveCall"
| "TransferObjects"
| "SplitCoins"
| "MergeCoins"
| "Publish"
| "MakeMoveVec"
| "Upgrade"
| "$Intent"
>[] = ...
Returns
Properties
version
version:
2
Implementation of
TransactionData.version
sender
sender:
null
|string
Implementation of
TransactionData.sender
expiration
expiration:
null
|EnumOutputShapeWithKeys
<object
,"None"
|"Epoch"
>
Implementation of
TransactionData.expiration
gasData
gasData:
object
budget
budget:
null
|string
|number
price
price:
null
|string
|number
owner
owner:
null
|string
payment
payment:
null
|object
[]
Implementation of
TransactionData.gasData
inputs
inputs:
EnumOutputShapeWithKeys
<object
,"Pure"
|"Object"
|"UnresolvedPure"
|"UnresolvedObject"
>[]
Implementation of
TransactionData.inputs
commands
commands:
Command
[]
Implementation of
TransactionData.commands
Accessors
gasConfig
Get Signature
get gasConfig():
object
Returns
object
budget
budget:
null
|string
|number
price
price:
null
|string
|number
owner
owner:
null
|string
payment
payment:
null
|object
[]
Set Signature
set gasConfig(
value
):void
Parameters
• value
• value.budget: null
| string
| number
= ...
• value.price: null
| string
| number
= ...
• value.owner: null
| string
= ...
• value.payment: null
| object
[] = ...
Returns
void
Methods
fromKindBytes()
static
fromKindBytes(bytes
):TransactionDataBuilder
Parameters
• bytes: Uint8Array
Returns
fromBytes()
static
fromBytes(bytes
):TransactionDataBuilder
Parameters
• bytes: Uint8Array
Returns
restore()
static
restore(data
):TransactionDataBuilder
Parameters
• data: object
| object
Returns
getDigestFromBytes()
static
getDigestFromBytes(bytes
):string
Generate transaction digest.
Parameters
• bytes: Uint8Array
BCS serialized transaction data
Returns
string
transaction digest.
build()
build(
__namedParameters
):Uint8Array
Parameters
• __namedParameters = {}
• __namedParameters.maxSizeBytes?: number
= Infinity
• __namedParameters.overrides?
• __namedParameters.overrides.expiration?: EnumOutputShapeWithKeys
<object
, "None"
| "Epoch"
>
• __namedParameters.overrides.sender?: string
• __namedParameters.overrides.gasConfig?: Partial
<object
>
• __namedParameters.overrides.gasData?: Partial
<object
>
• __namedParameters.onlyTransactionKind?: boolean
Returns
Uint8Array
addInput()
addInput<
T
>(type
,arg
):object
Type Parameters
• T extends "object"
| "pure"
Parameters
• type: T
• arg: EnumOutputShapeWithKeys
<object
, "Pure"
| "Object"
| "UnresolvedPure"
| "UnresolvedObject"
>
Returns
object
Input
Input:
number
=index
type
type:
T