Docs

OfferV3

Represents a marketplace offer.

type OfferV3 = {
  asset: objectOutputType<
    {
      animation_url: ZodOptional<ZodNullable<ZodString>>;
      attributes: ZodNullable<
        ZodOptional<
          ZodUnion<
            [
              ZodArray<
                ZodObject<
                  {},
                  "strip",
                  ZodUnion<
                    [
                      ZodEffects<
                        ZodUnion<
                          [
                            ZodBigInt,
                            ZodType<BigNumber, ZodTypeDef, BigNumber>,
                            ZodType<BN, ZodTypeDef, BN>,
                          ]
                        >,
                        string,
                        bigint | BN | BigNumber
                      >,
                      ZodUnknown,
                    ]
                  >,
                  objectOutputType<
                    {},
                    ZodUnion<
                      [
                        ZodEffects<
                          ZodUnion<
                            [
                              ZodBigInt,
                              ZodType<BigNumber, ZodTypeDef, BigNumber>,
                              ZodType<BN, ZodTypeDef, BN>,
                            ]
                          >,
                          string,
                          bigint | BN | BigNumber
                        >,
                        ZodUnknown,
                      ]
                    >,
                    "strip"
                  >,
                  objectInputType<
                    {},
                    ZodUnion<
                      [
                        ZodEffects<
                          ZodUnion<
                            [
                              ZodBigInt,
                              ZodType<BigNumber, ZodTypeDef, BigNumber>,
                              ZodType<BN, ZodTypeDef, BN>,
                            ]
                          >,
                          string,
                          bigint | BN | BigNumber
                        >,
                        ZodUnknown,
                      ]
                    >,
                    "strip"
                  >
                >,
                "many"
              >,
              ZodObject<
                {},
                "strip",
                ZodUnion<
                  [
                    ZodEffects<
                      ZodUnion<
                        [
                          ZodBigInt,
                          ZodType<BigNumber, ZodTypeDef, BigNumber>,
                          ZodType<BN, ZodTypeDef, BN>,
                        ]
                      >,
                      string,
                      bigint | BN | BigNumber
                    >,
                    ZodUnknown,
                  ]
                >,
                objectOutputType<
                  {},
                  ZodUnion<
                    [
                      ZodEffects<
                        ZodUnion<
                          [
                            ZodBigInt,
                            ZodType<BigNumber, ZodTypeDef, BigNumber>,
                            ZodType<BN, ZodTypeDef, BN>,
                          ]
                        >,
                        string,
                        bigint | BN | BigNumber
                      >,
                      ZodUnknown,
                    ]
                  >,
                  "strip"
                >,
                objectInputType<
                  {},
                  ZodUnion<
                    [
                      ZodEffects<
                        ZodUnion<
                          [
                            ZodBigInt,
                            ZodType<BigNumber, ZodTypeDef, BigNumber>,
                            ZodType<BN, ZodTypeDef, BN>,
                          ]
                        >,
                        string,
                        bigint | BN | BigNumber
                      >,
                      ZodUnknown,
                    ]
                  >,
                  "strip"
                >
              >,
            ]
          >
        >
      >;
      background_color: ZodNullable<
        ZodOptional<
          ZodUnion<
            [ZodString, ZodEffects<ZodString, string, string>, ZodString]
          >
        >
      >;
      description: ZodNullable<ZodOptional<ZodNullable<ZodString>>>;
      external_url: ZodOptional<ZodNullable<ZodString>>;
      id: ZodString;
      image: ZodOptional<ZodNullable<ZodString>>;
      name: ZodNullable<ZodOptional<ZodUnion<[ZodString, ZodNumber]>>>;
      properties: ZodNullable<
        ZodOptional<
          ZodUnion<
            [
              ZodArray<
                ZodObject<
                  {},
                  "strip",
                  ZodUnion<
                    [
                      ZodEffects<
                        ZodUnion<
                          [
                            ZodBigInt,
                            ZodType<BigNumber, ZodTypeDef, BigNumber>,
                            ZodType<BN, ZodTypeDef, BN>,
                          ]
                        >,
                        string,
                        bigint | BN | BigNumber
                      >,
                      ZodUnknown,
                    ]
                  >,
                  objectOutputType<
                    {},
                    ZodUnion<
                      [
                        ZodEffects<
                          ZodUnion<
                            [
                              ZodBigInt,
                              ZodType<BigNumber, ZodTypeDef, BigNumber>,
                              ZodType<BN, ZodTypeDef, BN>,
                            ]
                          >,
                          string,
                          bigint | BN | BigNumber
                        >,
                        ZodUnknown,
                      ]
                    >,
                    "strip"
                  >,
                  objectInputType<
                    {},
                    ZodUnion<
                      [
                        ZodEffects<
                          ZodUnion<
                            [
                              ZodBigInt,
                              ZodType<BigNumber, ZodTypeDef, BigNumber>,
                              ZodType<BN, ZodTypeDef, BN>,
                            ]
                          >,
                          string,
                          bigint | BN | BigNumber
                        >,
                        ZodUnknown,
                      ]
                    >,
                    "strip"
                  >
                >,
                "many"
              >,
              ZodObject<
                {},
                "strip",
                ZodUnion<
                  [
                    ZodEffects<
                      ZodUnion<
                        [
                          ZodBigInt,
                          ZodType<BigNumber, ZodTypeDef, BigNumber>,
                          ZodType<BN, ZodTypeDef, BN>,
                        ]
                      >,
                      string,
                      bigint | BN | BigNumber
                    >,
                    ZodUnknown,
                  ]
                >,
                objectOutputType<
                  {},
                  ZodUnion<
                    [
                      ZodEffects<
                        ZodUnion<
                          [
                            ZodBigInt,
                            ZodType<BigNumber, ZodTypeDef, BigNumber>,
                            ZodType<BN, ZodTypeDef, BN>,
                          ]
                        >,
                        string,
                        bigint | BN | BigNumber
                      >,
                      ZodUnknown,
                    ]
                  >,
                  "strip"
                >,
                objectInputType<
                  {},
                  ZodUnion<
                    [
                      ZodEffects<
                        ZodUnion<
                          [
                            ZodBigInt,
                            ZodType<BigNumber, ZodTypeDef, BigNumber>,
                            ZodType<BN, ZodTypeDef, BN>,
                          ]
                        >,
                        string,
                        bigint | BN | BigNumber
                      >,
                      ZodUnknown,
                    ]
                  >,
                  "strip"
                >
              >,
            ]
          >
        >
      >;
      uri: ZodString;
    },
    ZodUnion<
      [
        ZodEffects<
          ZodUnion<
            [
              ZodBigInt,
              ZodType<BigNumber, ZodTypeDef, BigNumber>,
              ZodType<BN, ZodTypeDef, BN>,
            ]
          >,
          string,
          bigint | BN | BigNumber
        >,
        ZodUnknown,
      ]
    >,
    "strip"
  >;
  assetContractAddress: string;
  currencyContractAddress: string;
  currencyValue: {
    decimals: number;
    displayValue: string;
    name: string;
    symbol: string;
    value: BigNumber;
  };
  endTimeInSeconds: number;
  id: string;
  offerorAddress: string;
  quantity: string;
  status: Status;
  tokenId: string;
  totalPrice: string;
};