decodeTransactionEffects
@iota/grpc / decodeTransactionEffects
Function: decodeTransactionEffects()
decodeTransactionEffects(
effects):object
Defined in: sdk/grpc/src/bcs/decode.ts:163
Parameters
effects
TransactionEffects
Returns
object
$kind
$kind:
"V1"
V1
V1:
object
V1.auxDataDigest
auxDataDigest:
string|null
V1.changedObjects
changedObjects: [
string, {idOperation:EnumOutputShapeWithKeys<{Created:true;Deleted:true;None:true; },"None"|"Created"|"Deleted">;inputState:EnumOutputShapeWithKeys<{Exist: [[string,string],EnumOutputShapeWithKeys<{AddressOwner:string;Immutable:true;ObjectOwner:string;Shared: {initialSharedVersion: ...; }; },"AddressOwner"|"ObjectOwner"|"Shared"|"Immutable">];NotExist:true; },"NotExist"|"Exist">;outputState:EnumOutputShapeWithKeys<{NotExist:true;ObjectWrite: [string,EnumOutputShapeWithKeys<{AddressOwner:string;Immutable:true;ObjectOwner:string;Shared: {initialSharedVersion: ...; }; },"AddressOwner"|"ObjectOwner"|"Shared"|"Immutable">];PackageWrite: [string,string]; },"NotExist"|"ObjectWrite"|"PackageWrite">; }][]
V1.dependencies
dependencies:
string[]
V1.eventsDigest
eventsDigest:
string|null
V1.executedEpoch
executedEpoch:
string
V1.gasObjectIndex
gasObjectIndex:
number|null
V1.gasUsed
gasUsed:
object
V1.gasUsed.computationCost
computationCost:
string
V1.gasUsed.computationCostBurned
computationCostBurned:
string
V1.gasUsed.nonRefundableStorageFee
nonRefundableStorageFee:
string
V1.gasUsed.storageCost
storageCost:
string
V1.gasUsed.storageRebate
storageRebate:
string
V1.lamportVersion
lamportVersion:
string
V1.status
status:
EnumOutputShapeWithKeys<{Failed: {command:string|null;error:EnumOutputShapeWithKeys<{AccountNotSharedObject: {objectId:string; };AddressDeniedForCoin: {address:string;coinType:string; };ArityMismatch:true;AuthenticatorFunctionNotFound: {objectId:string; };CertificateDenied:true;CircularObjectOwnership: {object:string; };CoinBalanceOverflow:true;CoinTypeGlobalPause: {coinType:string; };CommandArgumentError: {argIdx:number;kind:EnumOutputShapeWithKeys<{IndexOutOfBounds: {idx: ...; };InvalidArgumentArity:true;InvalidArgumentToPrivateEntryFunction:true;InvalidBCSBytes:true;InvalidGasCoinUsage:true;InvalidObjectByMutRef:true;InvalidObjectByValue:true;InvalidResultArity: {resultIdx: ...; };InvalidUsageOfPureArg:true;InvalidValueUsage:true;SecondaryIndexOutOfBounds: {resultIdx: ...;secondaryIdx: ...; };SharedObjectOperationNotAllowed:true;TypeMismatch:true; },"TypeMismatch"|"InvalidArgumentToPrivateEntryFunction"|"IndexOutOfBounds"|"SecondaryIndexOutOfBounds"|"InvalidResultArity"|"InvalidGasCoinUsage"|"InvalidValueUsage"|"InvalidObjectByValue"|"InvalidObjectByMutRef"|"SharedObjectOperationNotAllowed"|"InvalidArgumentArity"|"InvalidBCSBytes"|"InvalidUsageOfPureArg">; };EffectsTooLarge: {currentSize:string;maxSize:string; };ExecutionCancelledDueToExecutionWorkerCongestion: {suggestedGasPrice:string; };ExecutionCancelledDueToRandomnessUnavailable:true;ExecutionCancelledDueToSharedObjectCongestion: {congestedObjects:string[]; };ExecutionCancelledDueToSharedObjectCongestionV2: {congestedObjects:string[];suggestedGasPrice:string; };FeatureNotYetSupported:true;FunctionNotFound:true;InputObjectDeleted:true;InsufficientCoinBalance:true;InsufficientGas:true;InvalidGasObject:true;InvalidLinkage:true;InvalidPublicFunctionReturnType: {idx:number; };InvalidTransferObject:true;InvariantViolation:true;IotaMoveVerificationError:true;IotaMoveVerificationTimedout:true;MoveAbort: [{function:number;functionName:string|null;instruction:number;module: {address:string;name:string; }; },string];MoveAuthentication: {error:unknown; };MoveObjectTooBig: {maxObjectSize:string;objectSize:string; };MovePackageTooBig: {maxObjectSize:string;objectSize:string; };MovePrimitiveRuntimeError: {function:number;functionName:string|null;instruction:number;module: {address:string;name:string; }; } |null;MoveRawValueTooBig: {maxScaledSize:string;valueSize:string; };MoveVectorElemTooBig: {maxScaledSize:string;valueSize:string; };NonEntryFunctionInvoked:true;PackageUpgradeError: {upgradeError:EnumOutputShapeWithKeys<{DigestDoesNotMatch: {digest: ...; };IncompatibleUpgrade:true;NotAPackage: {objectId: ...; };PackageIDDoesNotMatch: {packageId: ...;ticketId: ...; };UnableToFetchPackage: {packageId: ...; };UnknownUpgradePolicy: {policy: ...; }; },"UnableToFetchPackage"|"NotAPackage"|"IncompatibleUpgrade"|"DigestDoesNotMatch"|"UnknownUpgradePolicy"|"PackageIDDoesNotMatch">; };PublishErrorNonZeroAddress:true;PublishUpgradeDependencyDowngrade:true;PublishUpgradeMissingDependency:true;SharedObjectOperationNotAllowed:true;TypeArgumentError: {argumentIdx:number;kind:EnumOutputShapeWithKeys<{ConstraintNotSatisfied:true;TypeNotFound:true; },"TypeNotFound"|"ConstraintNotSatisfied">; };TypeArityMismatch:true;UnusedValueWithoutDrop: {resultIdx:number;secondaryIdx:number; };VMInvariantViolation:true;VMVerificationOrDeserializationError:true;WrittenObjectsTooLarge: {currentSize:string;maxSize:string; }; },"CommandArgumentError"|"SharedObjectOperationNotAllowed"|"TypeArgumentError"|"PackageUpgradeError"|"InsufficientGas"|"InvalidGasObject"|"InvariantViolation"|"FeatureNotYetSupported"|"CircularObjectOwnership"|"InsufficientCoinBalance"|"CoinBalanceOverflow"|"PublishErrorNonZeroAddress"|"IotaMoveVerificationError"|"MovePrimitiveRuntimeError"|"MoveAbort"|"FunctionNotFound"|"ArityMismatch"|"TypeArityMismatch"|"NonEntryFunctionInvoked"|"UnusedValueWithoutDrop"|"InvalidPublicFunctionReturnType"|"InvalidTransferObject"|"EffectsTooLarge"|"PublishUpgradeMissingDependency"|"PublishUpgradeDependencyDowngrade"|"WrittenObjectsTooLarge"|"CertificateDenied"|"InputObjectDeleted"|"AddressDeniedForCoin"|"CoinTypeGlobalPause"|"InvalidLinkage"|"MoveAuthentication"|"MoveVectorElemTooBig"|"MoveRawValueTooBig"|"MoveObjectTooBig"|"MovePackageTooBig"|"VMVerificationOrDeserializationError"|"VMInvariantViolation"|"IotaMoveVerificationTimedout"|"ExecutionCancelledDueToSharedObjectCongestion"|"ExecutionCancelledDueToRandomnessUnavailable"|"ExecutionCancelledDueToSharedObjectCongestionV2"|"ExecutionCancelledDueToExecutionWorkerCongestion"|"AuthenticatorFunctionNotFound"|"AccountNotSharedObject">; };Success:true; },"Success"|"Failed">
V1.transactionDigest
transactionDigest:
string
V1.unchangedSharedObjects
unchangedSharedObjects: [
string,EnumOutputShapeWithKeys<{Cancelled:string;MutateDeleted:string;PerEpochConfig:true;ReadDeleted:string;ReadOnlyRoot: [string,string]; },"ReadOnlyRoot"|"MutateDeleted"|"ReadDeleted"|"Cancelled"|"PerEpochConfig">][]