Implements

Constructors

  • Parameters

    • Optional clone: {
          commands: EnumOutputShapeWithKeys<{
              $Intent: {
                  data: {};
                  inputs: {};
                  name: string;
              };
              MakeMoveVec: {
                  elements: ({
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  })[];
                  type: null | string;
              };
              MergeCoins: {
                  destination: {
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  };
                  sources: ({
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  })[];
              };
              MoveCall: {
                  _argumentTypes?: null | {
                      body: OpenMoveTypeSignatureBody;
                      ref: null | "&" | "&mut";
                  }[];
                  arguments: ({
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  })[];
                  function: string;
                  module: string;
                  package: string;
                  typeArguments: string[];
              };
              Publish: {
                  dependencies: string[];
                  modules: string[];
              };
              SplitCoins: {
                  amounts: ({
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  })[];
                  coin: {
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  };
              };
              TransferObjects: {
                  address: {
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  };
                  objects: ({
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  })[];
              };
              Upgrade: {
                  dependencies: string[];
                  modules: string[];
                  package: string;
                  ticket: {
                      $kind: "GasCoin";
                      GasCoin: true;
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "pure";
                  } | {
                      $kind: "Input";
                      Input: number;
                      type?: "object";
                  } | {
                      $kind: "Result";
                      Result: number;
                  } | {
                      $kind: "NestedResult";
                      NestedResult: [number, number];
                  };
              };
          }, "MoveCall" | "TransferObjects" | "SplitCoins" | "MergeCoins" | "Publish" | "MakeMoveVec" | "Upgrade" | "$Intent">[];
          expiration: undefined | null | EnumOutputShapeWithKeys<{
              Epoch: string | number;
              None: true;
          }, "None" | "Epoch">;
          gasData: {
              budget: null | string | number;
              owner: null | string;
              payment: null | {
                  digest: string;
                  objectId: string;
                  version: string | number;
              }[];
              price: null | string | number;
          };
          inputs: EnumOutputShapeWithKeys<{
              Object: EnumOutputShapeWithKeys<{
                  ImmOrOwnedObject: {
                      digest: string;
                      objectId: string;
                      version: string | number;
                  };
                  Receiving: {
                      digest: string;
                      objectId: string;
                      version: string | number;
                  };
                  SharedObject: {
                      initialSharedVersion: string | number;
                      mutable: boolean;
                      objectId: string;
                  };
              }, "ImmOrOwnedObject" | "SharedObject" | "Receiving">;
              Pure: {
                  bytes: string;
              };
              UnresolvedObject: {
                  digest?: null | string;
                  initialSharedVersion?: null | string | number;
                  objectId: string;
                  version?: null | string | number;
              };
              UnresolvedPure: {
                  value: unknown;
              };
          }, "Pure" | "Object" | "UnresolvedPure" | "UnresolvedObject">[];
          sender: undefined | null | string;
          version: 2;
      }
      • commands: EnumOutputShapeWithKeys<{
            $Intent: {
                data: {};
                inputs: {};
                name: string;
            };
            MakeMoveVec: {
                elements: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
                type: null | string;
            };
            MergeCoins: {
                destination: {
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                };
                sources: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
            };
            MoveCall: {
                _argumentTypes?: null | {
                    body: OpenMoveTypeSignatureBody;
                    ref: null | "&" | "&mut";
                }[];
                arguments: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
                function: string;
                module: string;
                package: string;
                typeArguments: string[];
            };
            Publish: {
                dependencies: string[];
                modules: string[];
            };
            SplitCoins: {
                amounts: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
                coin: {
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                };
            };
            TransferObjects: {
                address: {
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                };
                objects: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
            };
            Upgrade: {
                dependencies: string[];
                modules: string[];
                package: string;
                ticket: {
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                };
            };
        }, "MoveCall" | "TransferObjects" | "SplitCoins" | "MergeCoins" | "Publish" | "MakeMoveVec" | "Upgrade" | "$Intent">[]
      • expiration: undefined | null | EnumOutputShapeWithKeys<{
            Epoch: string | number;
            None: true;
        }, "None" | "Epoch">
      • gasData: {
            budget: null | string | number;
            owner: null | string;
            payment: null | {
                digest: string;
                objectId: string;
                version: string | number;
            }[];
            price: null | string | number;
        }
        • budget: null | string | number
        • owner: null | string
        • payment: null | {
              digest: string;
              objectId: string;
              version: string | number;
          }[]
        • price: null | string | number
      • inputs: EnumOutputShapeWithKeys<{
            Object: EnumOutputShapeWithKeys<{
                ImmOrOwnedObject: {
                    digest: string;
                    objectId: string;
                    version: string | number;
                };
                Receiving: {
                    digest: string;
                    objectId: string;
                    version: string | number;
                };
                SharedObject: {
                    initialSharedVersion: string | number;
                    mutable: boolean;
                    objectId: string;
                };
            }, "ImmOrOwnedObject" | "SharedObject" | "Receiving">;
            Pure: {
                bytes: string;
            };
            UnresolvedObject: {
                digest?: null | string;
                initialSharedVersion?: null | string | number;
                objectId: string;
                version?: null | string | number;
            };
            UnresolvedPure: {
                value: unknown;
            };
        }, "Pure" | "Object" | "UnresolvedPure" | "UnresolvedObject">[]
      • sender: undefined | null | string
      • version: 2

    Returns TransactionDataBuilder

Properties

commands: Command[]
expiration: null | EnumOutputShapeWithKeys<{
    Epoch: string | number;
    None: true;
}, "None" | "Epoch">
gasData: {
    budget: null | string | number;
    owner: null | string;
    payment: null | {
        digest: string;
        objectId: string;
        version: string | number;
    }[];
    price: null | string | number;
}

Type declaration

  • budget: null | string | number
  • owner: null | string
  • payment: null | {
        digest: string;
        objectId: string;
        version: string | number;
    }[]
  • price: null | string | number
inputs: EnumOutputShapeWithKeys<{
    Object: EnumOutputShapeWithKeys<{
        ImmOrOwnedObject: {
            digest: string;
            objectId: string;
            version: string | number;
        };
        Receiving: {
            digest: string;
            objectId: string;
            version: string | number;
        };
        SharedObject: {
            initialSharedVersion: string | number;
            mutable: boolean;
            objectId: string;
        };
    }, "ImmOrOwnedObject" | "SharedObject" | "Receiving">;
    Pure: {
        bytes: string;
    };
    UnresolvedObject: {
        digest?: null | string;
        initialSharedVersion?: null | string | number;
        objectId: string;
        version?: null | string | number;
    };
    UnresolvedPure: {
        value: unknown;
    };
}, "Pure" | "Object" | "UnresolvedPure" | "UnresolvedObject">[]
sender: null | string
version: 2 = ...

Accessors

  • get gasConfig(): {
        budget: null | string | number;
        owner: null | string;
        payment: null | {
            digest: string;
            objectId: string;
            version: string | number;
        }[];
        price: null | string | number;
    }
  • Returns {
        budget: null | string | number;
        owner: null | string;
        payment: null | {
            digest: string;
            objectId: string;
            version: string | number;
        }[];
        price: null | string | number;
    }

    • budget: null | string | number
    • owner: null | string
    • payment: null | {
          digest: string;
          objectId: string;
          version: string | number;
      }[]
    • price: null | string | number
  • set gasConfig(value): void
  • Parameters

    • value: {
          budget: null | string | number;
          owner: null | string;
          payment: null | {
              digest: string;
              objectId: string;
              version: string | number;
          }[];
          price: null | string | number;
      }
      • budget: null | string | number
      • owner: null | string
      • payment: null | {
            digest: string;
            objectId: string;
            version: string | number;
        }[]
      • price: null | string | number

    Returns void

Methods

  • Type Parameters

    • T extends "object" | "pure"

    Parameters

    • type: T
    • arg: EnumOutputShapeWithKeys<{
          Object: EnumOutputShapeWithKeys<{
              ImmOrOwnedObject: {
                  digest: string;
                  objectId: string;
                  version: string | number;
              };
              Receiving: {
                  digest: string;
                  objectId: string;
                  version: string | number;
              };
              SharedObject: {
                  initialSharedVersion: string | number;
                  mutable: boolean;
                  objectId: string;
              };
          }, "ImmOrOwnedObject" | "SharedObject" | "Receiving">;
          Pure: {
              bytes: string;
          };
          UnresolvedObject: {
              digest?: null | string;
              initialSharedVersion?: null | string | number;
              objectId: string;
              version?: null | string | number;
          };
          UnresolvedPure: {
              value: unknown;
          };
      }, "Pure" | "Object" | "UnresolvedPure" | "UnresolvedObject">

    Returns {
        $kind: "Input";
        Input: number;
        type: T;
    }

    • $kind: "Input"
    • Input: number
    • type: T
  • Parameters

    • __namedParameters: {
          maxSizeBytes?: number;
          onlyTransactionKind?: boolean;
          overrides?: {
              expiration?: EnumOutputShapeWithKeys<{
                  Epoch: string | number;
                  None: true;
              }, "None" | "Epoch">;
              gasConfig?: Partial<{
                  budget: null | string | number;
                  owner: null | string;
                  payment: null | {
                      digest: string;
                      objectId: string;
                      version: string | number;
                  }[];
                  price: null | string | number;
              }>;
              gasData?: Partial<{
                  budget: null | string | number;
                  owner: null | string;
                  payment: null | {
                      digest: string;
                      objectId: string;
                      version: string | number;
                  }[];
                  price: null | string | number;
              }>;
              sender?: string;
          };
      } = {}
      • Optional maxSizeBytes?: number
      • Optional onlyTransactionKind?: boolean
      • Optional overrides?: {
            expiration?: EnumOutputShapeWithKeys<{
                Epoch: string | number;
                None: true;
            }, "None" | "Epoch">;
            gasConfig?: Partial<{
                budget: null | string | number;
                owner: null | string;
                payment: null | {
                    digest: string;
                    objectId: string;
                    version: string | number;
                }[];
                price: null | string | number;
            }>;
            gasData?: Partial<{
                budget: null | string | number;
                owner: null | string;
                payment: null | {
                    digest: string;
                    objectId: string;
                    version: string | number;
                }[];
                price: null | string | number;
            }>;
            sender?: string;
        }
        • Optional expiration?: EnumOutputShapeWithKeys<{
              Epoch: string | number;
              None: true;
          }, "None" | "Epoch">
        • Optional gasConfig?: Partial<{
              budget: null | string | number;
              owner: null | string;
              payment: null | {
                  digest: string;
                  objectId: string;
                  version: string | number;
              }[];
              price: null | string | number;
          }>
        • Optional gasData?: Partial<{
              budget: null | string | number;
              owner: null | string;
              payment: null | {
                  digest: string;
                  objectId: string;
                  version: string | number;
              }[];
              price: null | string | number;
          }>
        • Optional sender?: string

    Returns Uint8Array

  • Returns string

  • Parameters

    • index: number
    • fn: ((arg, command) => void)
        • (arg, command): void
        • Parameters

          • arg: {
                $kind: "GasCoin";
                GasCoin: true;
            } | {
                $kind: "Input";
                Input: number;
                type?: "pure";
            } | {
                $kind: "Input";
                Input: number;
                type?: "object";
            } | {
                $kind: "Result";
                Result: number;
            } | {
                $kind: "NestedResult";
                NestedResult: [number, number];
            }
          • command: Command

          Returns void

    Returns void

  • Parameters

    • fn: ((arg, command) => {
          $kind: "GasCoin";
          GasCoin: true;
      } | {
          $kind: "Input";
          Input: number;
          type?: "pure";
      } | {
          $kind: "Input";
          Input: number;
          type?: "object";
      } | {
          $kind: "Result";
          Result: number;
      } | {
          $kind: "NestedResult";
          NestedResult: [number, number];
      })
        • (arg, command): {
              $kind: "GasCoin";
              GasCoin: true;
          } | {
              $kind: "Input";
              Input: number;
              type?: "pure";
          } | {
              $kind: "Input";
              Input: number;
              type?: "object";
          } | {
              $kind: "Result";
              Result: number;
          } | {
              $kind: "NestedResult";
              NestedResult: [number, number];
          }
        • Parameters

          • arg: {
                $kind: "GasCoin";
                GasCoin: true;
            } | {
                $kind: "Input";
                Input: number;
                type?: "pure";
            } | {
                $kind: "Input";
                Input: number;
                type?: "object";
            } | {
                $kind: "Result";
                Result: number;
            } | {
                $kind: "NestedResult";
                NestedResult: [number, number];
            }
          • command: Command

          Returns {
              $kind: "GasCoin";
              GasCoin: true;
          } | {
              $kind: "Input";
              Input: number;
              type?: "pure";
          } | {
              $kind: "Input";
              Input: number;
              type?: "object";
          } | {
              $kind: "Result";
              Result: number;
          } | {
              $kind: "NestedResult";
              NestedResult: [number, number];
          }

    Returns void

  • Parameters

    Returns void

  • Returns {
        commands: EnumOutputShapeWithKeys<{
            $Intent: {
                data: {};
                inputs: {};
                name: string;
            };
            MakeMoveVec: {
                elements: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
                type: null | string;
            };
            MergeCoins: {
                destination: {
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                };
                sources: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
            };
            MoveCall: {
                _argumentTypes?: null | {
                    body: OpenMoveTypeSignatureBody;
                    ref: null | "&" | "&mut";
                }[];
                arguments: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
                function: string;
                module: string;
                package: string;
                typeArguments: string[];
            };
            Publish: {
                dependencies: string[];
                modules: string[];
            };
            SplitCoins: {
                amounts: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
                coin: {
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                };
            };
            TransferObjects: {
                address: {
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                };
                objects: ({
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                })[];
            };
            Upgrade: {
                dependencies: string[];
                modules: string[];
                package: string;
                ticket: {
                    $kind: "GasCoin";
                    GasCoin: true;
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "pure";
                } | {
                    $kind: "Input";
                    Input: number;
                    type?: "object";
                } | {
                    $kind: "Result";
                    Result: number;
                } | {
                    $kind: "NestedResult";
                    NestedResult: [number, number];
                };
            };
        }, "MoveCall" | "TransferObjects" | "SplitCoins" | "MergeCoins" | "Publish" | "MakeMoveVec" | "Upgrade" | "$Intent">[];
        expiration: undefined | null | EnumOutputShapeWithKeys<{
            Epoch: string | number;
            None: true;
        }, "None" | "Epoch">;
        gasData: {
            budget: null | string | number;
            owner: null | string;
            payment: null | {
                digest: string;
                objectId: string;
                version: string | number;
            }[];
            price: null | string | number;
        };
        inputs: EnumOutputShapeWithKeys<{
            Object: EnumOutputShapeWithKeys<{
                ImmOrOwnedObject: {
                    digest: string;
                    objectId: string;
                    version: string | number;
                };
                Receiving: {
                    digest: string;
                    objectId: string;
                    version: string | number;
                };
                SharedObject: {
                    initialSharedVersion: string | number;
                    mutable: boolean;
                    objectId: string;
                };
            }, "ImmOrOwnedObject" | "SharedObject" | "Receiving">;
            Pure: {
                bytes: string;
            };
            UnresolvedObject: {
                digest?: null | string;
                initialSharedVersion?: null | string | number;
                objectId: string;
                version?: null | string | number;
            };
            UnresolvedPure: {
                value: unknown;
            };
        }, "Pure" | "Object" | "UnresolvedPure" | "UnresolvedObject">[];
        sender: undefined | null | string;
        version: 2;
    }

    • commands: EnumOutputShapeWithKeys<{
          $Intent: {
              data: {};
              inputs: {};
              name: string;
          };
          MakeMoveVec: {
              elements: ({
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              })[];
              type: null | string;
          };
          MergeCoins: {
              destination: {
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              };
              sources: ({
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              })[];
          };
          MoveCall: {
              _argumentTypes?: null | {
                  body: OpenMoveTypeSignatureBody;
                  ref: null | "&" | "&mut";
              }[];
              arguments: ({
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              })[];
              function: string;
              module: string;
              package: string;
              typeArguments: string[];
          };
          Publish: {
              dependencies: string[];
              modules: string[];
          };
          SplitCoins: {
              amounts: ({
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              })[];
              coin: {
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              };
          };
          TransferObjects: {
              address: {
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              };
              objects: ({
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              })[];
          };
          Upgrade: {
              dependencies: string[];
              modules: string[];
              package: string;
              ticket: {
                  $kind: "GasCoin";
                  GasCoin: true;
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "pure";
              } | {
                  $kind: "Input";
                  Input: number;
                  type?: "object";
              } | {
                  $kind: "Result";
                  Result: number;
              } | {
                  $kind: "NestedResult";
                  NestedResult: [number, number];
              };
          };
      }, "MoveCall" | "TransferObjects" | "SplitCoins" | "MergeCoins" | "Publish" | "MakeMoveVec" | "Upgrade" | "$Intent">[]
    • expiration: undefined | null | EnumOutputShapeWithKeys<{
          Epoch: string | number;
          None: true;
      }, "None" | "Epoch">
    • gasData: {
          budget: null | string | number;
          owner: null | string;
          payment: null | {
              digest: string;
              objectId: string;
              version: string | number;
          }[];
          price: null | string | number;
      }
      • budget: null | string | number
      • owner: null | string
      • payment: null | {
            digest: string;
            objectId: string;
            version: string | number;
        }[]
      • price: null | string | number
    • inputs: EnumOutputShapeWithKeys<{
          Object: EnumOutputShapeWithKeys<{
              ImmOrOwnedObject: {
                  digest: string;
                  objectId: string;
                  version: string | number;
              };
              Receiving: {
                  digest: string;
                  objectId: string;
                  version: string | number;
              };
              SharedObject: {
                  initialSharedVersion: string | number;
                  mutable: boolean;
                  objectId: string;
              };
          }, "ImmOrOwnedObject" | "SharedObject" | "Receiving">;
          Pure: {
              bytes: string;
          };
          UnresolvedObject: {
              digest?: null | string;
              initialSharedVersion?: null | string | number;
              objectId: string;
              version?: null | string | number;
          };
          UnresolvedPure: {
              value: unknown;
          };
      }, "Pure" | "Object" | "UnresolvedPure" | "UnresolvedObject">[]
    • sender: undefined | null | string
    • version: 2
  • Generate transaction digest.

    Parameters

    • bytes: Uint8Array

      BCS serialized transaction data

    Returns string

    transaction digest.

  • Parameters

    • data: {
          expiration: undefined | null | {
              Epoch: number;
          } | {
              None: null | true;
          };
          gasConfig: {
              budget?: string | number | bigint;
              owner?: string;
              payment?: {
                  digest: string;
                  objectId: string;
                  version: string | number | bigint;
              }[];
              price?: string | number | bigint;
          };
          inputs: ({
              index: number;
              kind: "Input";
              type?: "object";
              value: unknown;
          } | {
              index: number;
              kind: "Input";
              type: "pure";
              value: unknown;
          })[];
          sender?: string;
          transactions: ({
              arguments: ({
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              })[];
              kind: "MoveCall";
              target: `${string}::${string}::${string}`;
              typeArguments: string[];
          } | {
              address: {
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              };
              kind: "TransferObjects";
              objects: ({
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              })[];
          } | {
              amounts: ({
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              })[];
              coin: {
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              };
              kind: "SplitCoins";
          } | {
              destination: {
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              };
              kind: "MergeCoins";
              sources: ({
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              })[];
          } | {
              kind: "MakeMoveVec";
              objects: ({
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              })[];
              type: {
                  Some: TypeTag;
              } | {
                  None: null | true;
              };
          } | {
              dependencies: string[];
              kind: "Publish";
              modules: number[][];
          } | {
              dependencies: string[];
              kind: "Upgrade";
              modules: number[][];
              packageId: string;
              ticket: {
                  index: number;
                  kind: "Input";
                  type?: "object";
                  value: unknown;
              } | {
                  index: number;
                  kind: "Input";
                  type: "pure";
                  value: unknown;
              } | {
                  kind: "GasCoin";
              } | {
                  index: number;
                  kind: "Result";
              } | {
                  index: number;
                  kind: "NestedResult";
                  resultIndex: number;
              };
          })[];
          version: 1;
      } | {
          commands: EnumInputShape<{
              $Intent: {
                  data: {};
                  inputs: {};
                  name: string;
              };
              MakeMoveVec: {
                  elements: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>[];
                  type: null | string;
              };
              MergeCoins: {
                  destination: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>;
                  sources: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>[];
              };
              MoveCall: {
                  arguments: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>[];
                  function: string;
                  module: string;
                  package: string;
                  typeArguments: string[];
              };
              Publish: {
                  dependencies: string[];
                  modules: string[];
              };
              SplitCoins: {
                  amounts: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>[];
                  coin: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>;
              };
              TransferObjects: {
                  address: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>;
                  objects: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>[];
              };
              Upgrade: {
                  dependencies: string[];
                  modules: string[];
                  package: string;
                  ticket: EnumInputShape<{
                      GasCoin: true;
                      Input: number;
                      NestedResult: [number, number];
                      Result: number;
                  }>;
              };
          }>[];
          expiration: undefined | null | EnumInputShape<{
              Epoch: string | number;
              None: true;
          }>;
          gasData: {
              budget: null | string | number;
              owner: null | string;
              payment: null | {
                  digest: string;
                  objectId: string;
                  version: string | number;
              }[];
              price: null | string | number;
          };
          inputs: EnumInputShape<{
              Object: EnumInputShape<{
                  ImmOrOwnedObject: {
                      digest: string;
                      objectId: string;
                      version: string | number;
                  };
                  Receiving: {
                      digest: string;
                      objectId: string;
                      version: string | number;
                  };
                  SharedObject: {
                      initialSharedVersion: string | number;
                      mutable: boolean;
                      objectId: string;
                  };
              }>;
              Pure: {
                  bytes: string;
              };
              UnresolvedObject: {
                  digest?: null | string;
                  initialSharedVersion?: null | string | number;
                  objectId: string;
                  version?: null | string | number;
              };
              UnresolvedPure: {
                  value: unknown;
              };
          }>[];
          sender: undefined | null | string;
          version: 2;
      }

    Returns TransactionDataBuilder