Docs

DirectListingV3

Represents a marketplace direct listing.

type DirectListingV3 = {
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;
creatorAddress: string;
currencyContractAddress: string;
currencyValuePerToken: {
decimals: number;
displayValue: string;
name: string;
symbol: string;
value: BigNumber;
};
endTimeInSeconds: number;
id: string;
isReservedListing: boolean;
pricePerToken: string;
quantity: string;
startTimeInSeconds: number;
status: Status;
tokenId: string;
};