decodeTransaction
@iota/grpc / decodeTransaction
Function: decodeTransaction()
decodeTransaction(
transaction):object
Defined in: sdk/grpc/src/bcs/decode.ts:159
Parameters
transaction
Transaction
Returns
object
$kind
$kind:
"V1"
V1
V1:
object
V1.expiration
expiration:
EnumOutputShapeWithKeys<{Epoch:number;None:true; },"None"|"Epoch">
V1.gasData
gasData:
object
V1.gasData.budget
budget:
string
V1.gasData.owner
owner:
string
V1.gasData.payment
payment:
object[]
V1.gasData.price
price:
string
V1.kind
kind:
EnumOutputShapeWithKeys<{AuthenticatorStateUpdateV1Deprecated:true;ConsensusCommitPrologueV1: {commitTimestampMs:string;consensusCommitDigest:string;consensusDeterminedVersionAssignments: {$kind:"CanceledTransactions";CanceledTransactions:object[]; };epoch:string;round:string;subDagIndex:string|null; };EndOfEpoch:EnumOutputShapeWithKeys<{ChangeEpoch: {computationCharge:string;epoch:string;epochStartTimestampMs:string;nonRefundableStorageFee:string;protocolVersion:string;storageCharge:string;storageRebate:string;systemPackages:object[]; };ChangeEpochV2: {computationCharge:string;computationChargeBurned:string;epoch:string;epochStartTimestampMs:string;nonRefundableStorageFee:string;protocolVersion:string;storageCharge:string;storageRebate:string;systemPackages:object[]; };ChangeEpochV3: {computationCharge:string;computationChargeBurned:string;eligibleActiveValidators:string[];epoch:string;epochStartTimestampMs:string;nonRefundableStorageFee:string;protocolVersion:string;storageCharge:string;storageRebate:string;systemPackages:object[]; };ChangeEpochV4: {adjustRewardsByScore:boolean;computationCharge:string;computationChargeBurned:string;eligibleActiveValidators:string[];epoch:string;epochStartTimestampMs:string;nonRefundableStorageFee:string;protocolVersion:string;scores:string[];storageCharge:string;storageRebate:string;systemPackages:object[]; };TransactionDenyRulesCreate:true; },"ChangeEpoch"|"ChangeEpochV2"|"ChangeEpochV3"|"ChangeEpochV4"|"TransactionDenyRulesCreate">[];Genesis: {events:object[];objects:object[]; };ProgrammableTransaction: {commands:EnumOutputShapeWithKeys<{MakeMoveVec: {elements:EnumOutputShapeWithKeys<..., ...>[];type:string|null; };MergeCoins: {destination:EnumOutputShapeWithKeys<{GasCoin: ...;Input: ...;NestedResult: ...;Result: ...; }, ... | ... | ... | ...>;sources:EnumOutputShapeWithKeys<..., ...>[]; };MoveCall: {arguments:EnumOutputShapeWithKeys<..., ...>[];function:string;module:string;package:string;typeArguments:string[]; };Publish: {dependencies:string[];modules:string[]; };SplitCoins: {amounts:EnumOutputShapeWithKeys<..., ...>[];coin:EnumOutputShapeWithKeys<{GasCoin: ...;Input: ...;NestedResult: ...;Result: ...; }, ... | ... | ... | ...>; };TransferObjects: {address:EnumOutputShapeWithKeys<{GasCoin: ...;Input: ...;NestedResult: ...;Result: ...; }, ... | ... | ... | ...>;objects:EnumOutputShapeWithKeys<..., ...>[]; };Upgrade: {dependencies:string[];modules:string[];package:string;ticket:EnumOutputShapeWithKeys<{GasCoin: ...;Input: ...;NestedResult: ...;Result: ...; }, ... | ... | ... | ...>; }; },"MoveCall"|"TransferObjects"|"SplitCoins"|"MergeCoins"|"Publish"|"MakeMoveVec"|"Upgrade">[];inputs:EnumOutputShapeWithKeys<{Object:EnumOutputShapeWithKeys<{ImmOrOwnedObject: {digest: ...;objectId: ...;version: ...; };Receiving: {digest: ...;objectId: ...;version: ...; };SharedObject: {initialSharedVersion: ...;mutable: ...;objectId: ...; }; },"ImmOrOwnedObject"|"SharedObject"|"Receiving">;Pure: {bytes:string; }; },"Object"|"Pure">[]; };RandomnessStateUpdate: {epoch:string;randomBytes:Uint8Array<ArrayBufferLike>;randomnessObjInitialSharedVersion:string;randomnessRound:string; };TransactionDenyRulesUpdate: {addedAddresses:string[];addedObjects:string[];addedPackages:string[];denyRulesObjInitialSharedVersion:string;epoch:string;moveAuthenticatorDisabled:boolean;packagePublishDisabled:boolean;packageUpgradeDisabled:boolean;receivingObjectsDisabled:boolean;removedAddresses:string[];removedObjects:string[];removedPackages:string[];round:string;sharedObjectDisabled:boolean;userTransactionDisabled:boolean; }; },"ProgrammableTransaction"|"Genesis"|"ConsensusCommitPrologueV1"|"AuthenticatorStateUpdateV1Deprecated"|"EndOfEpoch"|"RandomnessStateUpdate"|"TransactionDenyRulesUpdate">
V1.sender
sender:
string