Constructors
constructor
- new Api(__namedParameters): Api
-
Returns Api
Methods
saveSingleNftOffer
- saveSingleNftOffer(offerInput): Promise<{
aprBps: bigint;
borrowerAddress: `0x${string}`;
capacity: bigint;
contractAddress: `0x${string}`;
duration: bigint;
expirationTime: bigint;
fee: bigint;
lenderAddress: `0x${string}`;
maxSeniorRepayment?: InputMaybe<bigint>;
maxTrancheFloor?: InputMaybe<bigint>;
nftId: number;
offerHash: `0x${string}`;
offerId: bigint;
offerValidators: OfferValidatorInput[];
principalAddress: `0x${string}`;
principalAmount: bigint;
requiresLiquidation?: InputMaybe<boolean>;
signature: `0x${string}`;
signerAddress?: InputMaybe<`0x${string}`>;
id: string;
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
}>
-
Returns Promise<{
aprBps: bigint;
borrowerAddress: `0x${string}`;
capacity: bigint;
contractAddress: `0x${string}`;
duration: bigint;
expirationTime: bigint;
fee: bigint;
lenderAddress: `0x${string}`;
maxSeniorRepayment?: InputMaybe<bigint>;
maxTrancheFloor?: InputMaybe<bigint>;
nftId: number;
offerHash: `0x${string}`;
offerId: bigint;
offerValidators: OfferValidatorInput[];
principalAddress: `0x${string}`;
principalAmount: bigint;
requiresLiquidation?: InputMaybe<boolean>;
signature: `0x${string}`;
signerAddress?: InputMaybe<`0x${string}`>;
id: string;
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
}>
saveCollectionOffer
- saveCollectionOffer(offerInput): Promise<{
aprBps: bigint;
borrowerAddress: `0x${string}`;
capacity: bigint;
collectionId: number;
contractAddress: `0x${string}`;
duration: bigint;
expirationTime: bigint;
fee: bigint;
lenderAddress: `0x${string}`;
maxSeniorRepayment?: InputMaybe<bigint>;
maxTrancheFloor?: InputMaybe<bigint>;
offerHash: `0x${string}`;
offerId: bigint;
offerValidators: OfferValidatorInput[];
principalAddress: `0x${string}`;
principalAmount: bigint;
requiresLiquidation?: InputMaybe<boolean>;
signature: `0x${string}`;
signerAddress?: InputMaybe<`0x${string}`>;
id: string;
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
}>
-
Returns Promise<{
aprBps: bigint;
borrowerAddress: `0x${string}`;
capacity: bigint;
collectionId: number;
contractAddress: `0x${string}`;
duration: bigint;
expirationTime: bigint;
fee: bigint;
lenderAddress: `0x${string}`;
maxSeniorRepayment?: InputMaybe<bigint>;
maxTrancheFloor?: InputMaybe<bigint>;
offerHash: `0x${string}`;
offerId: bigint;
offerValidators: OfferValidatorInput[];
principalAddress: `0x${string}`;
principalAmount: bigint;
requiresLiquidation?: InputMaybe<boolean>;
signature: `0x${string}`;
signerAddress?: InputMaybe<`0x${string}`>;
id: string;
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
}>
saveRefinanceOffer
- saveRefinanceOffer(offerInput): Promise<{
loanId: string;
duration: bigint;
principalAmount: bigint;
renegotiationId: bigint;
requiresLiquidation?: InputMaybe<boolean>;
aprBps: bigint;
expirationTime: bigint;
targetPrincipal?: InputMaybe<bigint[]>;
strictImprovement?: InputMaybe<boolean>;
trancheIndex?: InputMaybe<bigint[]>;
lenderAddress: `0x${string}`;
signerAddress?: InputMaybe<`0x${string}`>;
offerHash: `0x${string}`;
feeAmount: bigint;
isAddNewTranche?: InputMaybe<boolean>;
signature: `0x${string}`;
id: string;
}>
-
Returns Promise<{
loanId: string;
duration: bigint;
principalAmount: bigint;
renegotiationId: bigint;
requiresLiquidation?: InputMaybe<boolean>;
aprBps: bigint;
expirationTime: bigint;
targetPrincipal?: InputMaybe<bigint[]>;
strictImprovement?: InputMaybe<boolean>;
trancheIndex?: InputMaybe<bigint[]>;
lenderAddress: `0x${string}`;
signerAddress?: InputMaybe<`0x${string}`>;
offerHash: `0x${string}`;
feeAmount: bigint;
isAddNewTranche?: InputMaybe<boolean>;
signature: `0x${string}`;
id: string;
}>
listOffers
- listOffers(props): Promise<{
offers: ({
type: undefined | "CollectionOffer" | "SingleNFTOffer";
lender: undefined | null | `0x${string}`;
borrower: undefined | null | `0x${string}`;
signer: undefined | null | `0x${string}`;
offerValidators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[] | {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
id: string;
offerId: bigint;
lenderAddress?: null | `0x${string}`;
borrowerAddress?: null | `0x${string}`;
signerAddress?: null | `0x${string}`;
contractAddress: `0x${string}`;
requiresLiquidation?: null | boolean;
principalAddress: `0x${string}`;
principalAmount: bigint;
aprBps: bigint;
fee: bigint;
capacity: bigint;
expirationTime: bigint;
duration: bigint;
status: string;
offerHash?: null | `0x${string}`;
signature?: null | `0x${string}`;
createdDate?: null | Date;
repayment: bigint;
hidden?: null | boolean;
maxSeniorRepayment: bigint;
collection: {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
validators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
} | {
type: undefined | "CollectionOffer" | "SingleNFTOffer";
lender: undefined | null | `0x${string}`;
borrower: undefined | null | `0x${string}`;
signer: undefined | null | `0x${string}`;
offerValidators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[] | {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
id: string;
offerId: bigint;
lenderAddress?: null | `0x${string}`;
borrowerAddress?: null | `0x${string}`;
signerAddress?: null | `0x${string}`;
contractAddress: `0x${string}`;
requiresLiquidation?: null | boolean;
principalAddress: `0x${string}`;
principalAmount: bigint;
aprBps: bigint;
fee: bigint;
capacity: bigint;
expirationTime: bigint;
duration: bigint;
status: string;
offerHash?: null | `0x${string}`;
signature?: null | `0x${string}`;
createdDate?: null | Date;
repayment: bigint;
hidden?: null | boolean;
maxSeniorRepayment: bigint;
nft: {
__typename?: "NFT";
id: string;
tokenId: bigint;
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
validators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
})[];
hasNextPage: true;
cursor: string;
} | {
offers: ({
type: undefined | "CollectionOffer" | "SingleNFTOffer";
lender: undefined | null | `0x${string}`;
borrower: undefined | null | `0x${string}`;
signer: undefined | null | `0x${string}`;
offerValidators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[] | {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
id: string;
offerId: bigint;
lenderAddress?: null | `0x${string}`;
borrowerAddress?: null | `0x${string}`;
signerAddress?: null | `0x${string}`;
contractAddress: `0x${string}`;
requiresLiquidation?: null | boolean;
principalAddress: `0x${string}`;
principalAmount: bigint;
aprBps: bigint;
fee: bigint;
capacity: bigint;
expirationTime: bigint;
duration: bigint;
status: string;
offerHash?: null | `0x${string}`;
signature?: null | `0x${string}`;
createdDate?: null | Date;
repayment: bigint;
hidden?: null | boolean;
maxSeniorRepayment: bigint;
collection: {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
validators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
} | {
type: undefined | "CollectionOffer" | "SingleNFTOffer";
lender: undefined | null | `0x${string}`;
borrower: undefined | null | `0x${string}`;
signer: undefined | null | `0x${string}`;
offerValidators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[] | {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
id: string;
offerId: bigint;
lenderAddress?: null | `0x${string}`;
borrowerAddress?: null | `0x${string}`;
signerAddress?: null | `0x${string}`;
contractAddress: `0x${string}`;
requiresLiquidation?: null | boolean;
principalAddress: `0x${string}`;
principalAmount: bigint;
aprBps: bigint;
fee: bigint;
capacity: bigint;
expirationTime: bigint;
duration: bigint;
status: string;
offerHash?: null | `0x${string}`;
signature?: null | `0x${string}`;
createdDate?: null | Date;
repayment: bigint;
hidden?: null | boolean;
maxSeniorRepayment: bigint;
nft: {
__typename?: "NFT";
id: string;
tokenId: bigint;
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
validators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
})[];
hasNextPage: false;
cursor: null;
}>
-
Returns Promise<{
offers: ({
type: undefined | "CollectionOffer" | "SingleNFTOffer";
lender: undefined | null | `0x${string}`;
borrower: undefined | null | `0x${string}`;
signer: undefined | null | `0x${string}`;
offerValidators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[] | {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
id: string;
offerId: bigint;
lenderAddress?: null | `0x${string}`;
borrowerAddress?: null | `0x${string}`;
signerAddress?: null | `0x${string}`;
contractAddress: `0x${string}`;
requiresLiquidation?: null | boolean;
principalAddress: `0x${string}`;
principalAmount: bigint;
aprBps: bigint;
fee: bigint;
capacity: bigint;
expirationTime: bigint;
duration: bigint;
status: string;
offerHash?: null | `0x${string}`;
signature?: null | `0x${string}`;
createdDate?: null | Date;
repayment: bigint;
hidden?: null | boolean;
maxSeniorRepayment: bigint;
collection: {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
validators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
} | {
type: undefined | "CollectionOffer" | "SingleNFTOffer";
lender: undefined | null | `0x${string}`;
borrower: undefined | null | `0x${string}`;
signer: undefined | null | `0x${string}`;
offerValidators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[] | {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
id: string;
offerId: bigint;
lenderAddress?: null | `0x${string}`;
borrowerAddress?: null | `0x${string}`;
signerAddress?: null | `0x${string}`;
contractAddress: `0x${string}`;
requiresLiquidation?: null | boolean;
principalAddress: `0x${string}`;
principalAmount: bigint;
aprBps: bigint;
fee: bigint;
capacity: bigint;
expirationTime: bigint;
duration: bigint;
status: string;
offerHash?: null | `0x${string}`;
signature?: null | `0x${string}`;
createdDate?: null | Date;
repayment: bigint;
hidden?: null | boolean;
maxSeniorRepayment: bigint;
nft: {
__typename?: "NFT";
id: string;
tokenId: bigint;
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
validators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
})[];
hasNextPage: true;
cursor: string;
} | {
offers: ({
type: undefined | "CollectionOffer" | "SingleNFTOffer";
lender: undefined | null | `0x${string}`;
borrower: undefined | null | `0x${string}`;
signer: undefined | null | `0x${string}`;
offerValidators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[] | {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
id: string;
offerId: bigint;
lenderAddress?: null | `0x${string}`;
borrowerAddress?: null | `0x${string}`;
signerAddress?: null | `0x${string}`;
contractAddress: `0x${string}`;
requiresLiquidation?: null | boolean;
principalAddress: `0x${string}`;
principalAmount: bigint;
aprBps: bigint;
fee: bigint;
capacity: bigint;
expirationTime: bigint;
duration: bigint;
status: string;
offerHash?: null | `0x${string}`;
signature?: null | `0x${string}`;
createdDate?: null | Date;
repayment: bigint;
hidden?: null | boolean;
maxSeniorRepayment: bigint;
collection: {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
validators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
} | {
type: undefined | "CollectionOffer" | "SingleNFTOffer";
lender: undefined | null | `0x${string}`;
borrower: undefined | null | `0x${string}`;
signer: undefined | null | `0x${string}`;
offerValidators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[] | {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
nftCollateralAddress: `0x${string}`;
nftCollateralTokenId: bigint;
id: string;
offerId: bigint;
lenderAddress?: null | `0x${string}`;
borrowerAddress?: null | `0x${string}`;
signerAddress?: null | `0x${string}`;
contractAddress: `0x${string}`;
requiresLiquidation?: null | boolean;
principalAddress: `0x${string}`;
principalAmount: bigint;
aprBps: bigint;
fee: bigint;
capacity: bigint;
expirationTime: bigint;
duration: bigint;
status: string;
offerHash?: null | `0x${string}`;
signature?: null | `0x${string}`;
createdDate?: null | Date;
repayment: bigint;
hidden?: null | boolean;
maxSeniorRepayment: bigint;
nft: {
__typename?: "NFT";
id: string;
tokenId: bigint;
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
validators: {
__typename?: "OfferValidator";
arguments: `0x${string}`;
validator: `0x${string}`;
}[];
})[];
hasNextPage: false;
cursor: null;
}>
listLoans
- listLoans(props): Promise<{
loans: {
type: undefined | "MultiSourceLoan";
contractAddress: `0x${string}`;
nftCollateralTokenId: bigint;
nftCollateralAddress: undefined | `0x${string}`;
borrower: `0x${string}`;
startTime: bigint;
source: {
lender: `0x${string}`;
loanId: bigint;
startTime: bigint;
__typename?: "Source";
id: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
}[];
id: string;
address: `0x${string}`;
loanId: number;
timestamp: Date;
txHash: `0x${string}`;
indexInBlock: number;
borrowerAddress: `0x${string}`;
principalAddress: `0x${string}`;
duration: bigint;
status: string;
principalAmount: bigint;
blendedAprBps: number;
totalOriginationFee: bigint;
protocolFee: bigint;
offer: {
__typename?: "CollectionOffer";
offerId: bigint;
signerAddress?: null | `0x${string}`;
} | {
__typename?: "SingleNFTOffer";
offerId: bigint;
signerAddress?: null | `0x${string}`;
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
repaidActivity?: null | {
__typename?: "LoanRepaid";
totalInterest: bigint;
timestamp: Date;
};
nft: {
__typename?: "NFT";
id: string;
name?: null | string;
tokenId: bigint;
nftId: string;
owner?: null | `0x${string}`;
image?: null | {
__typename?: "Asset";
data: string;
cacheUrl?: null | string;
contentTypeMime: string;
accessTypeName: string;
};
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
name?: null | string;
nftsCount?: null | number;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
sources: {
__typename?: "Source";
id: string;
loanId: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
startTime: Date;
}[];
}[];
hasNextPage: true;
cursor: string;
} | {
loans: {
type: undefined | "MultiSourceLoan";
contractAddress: `0x${string}`;
nftCollateralTokenId: bigint;
nftCollateralAddress: undefined | `0x${string}`;
borrower: `0x${string}`;
startTime: bigint;
source: {
lender: `0x${string}`;
loanId: bigint;
startTime: bigint;
__typename?: "Source";
id: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
}[];
id: string;
address: `0x${string}`;
loanId: number;
timestamp: Date;
txHash: `0x${string}`;
indexInBlock: number;
borrowerAddress: `0x${string}`;
principalAddress: `0x${string}`;
duration: bigint;
status: string;
principalAmount: bigint;
blendedAprBps: number;
totalOriginationFee: bigint;
protocolFee: bigint;
offer: {
__typename?: "CollectionOffer";
offerId: bigint;
signerAddress?: null | `0x${string}`;
} | {
__typename?: "SingleNFTOffer";
offerId: bigint;
signerAddress?: null | `0x${string}`;
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
repaidActivity?: null | {
__typename?: "LoanRepaid";
totalInterest: bigint;
timestamp: Date;
};
nft: {
__typename?: "NFT";
id: string;
name?: null | string;
tokenId: bigint;
nftId: string;
owner?: null | `0x${string}`;
image?: null | {
__typename?: "Asset";
data: string;
cacheUrl?: null | string;
contentTypeMime: string;
accessTypeName: string;
};
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
name?: null | string;
nftsCount?: null | number;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
sources: {
__typename?: "Source";
id: string;
loanId: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
startTime: Date;
}[];
}[];
hasNextPage: false;
cursor: null;
}>
-
Returns Promise<{
loans: {
type: undefined | "MultiSourceLoan";
contractAddress: `0x${string}`;
nftCollateralTokenId: bigint;
nftCollateralAddress: undefined | `0x${string}`;
borrower: `0x${string}`;
startTime: bigint;
source: {
lender: `0x${string}`;
loanId: bigint;
startTime: bigint;
__typename?: "Source";
id: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
}[];
id: string;
address: `0x${string}`;
loanId: number;
timestamp: Date;
txHash: `0x${string}`;
indexInBlock: number;
borrowerAddress: `0x${string}`;
principalAddress: `0x${string}`;
duration: bigint;
status: string;
principalAmount: bigint;
blendedAprBps: number;
totalOriginationFee: bigint;
protocolFee: bigint;
offer: {
__typename?: "CollectionOffer";
offerId: bigint;
signerAddress?: null | `0x${string}`;
} | {
__typename?: "SingleNFTOffer";
offerId: bigint;
signerAddress?: null | `0x${string}`;
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
repaidActivity?: null | {
__typename?: "LoanRepaid";
totalInterest: bigint;
timestamp: Date;
};
nft: {
__typename?: "NFT";
id: string;
name?: null | string;
tokenId: bigint;
nftId: string;
owner?: null | `0x${string}`;
image?: null | {
__typename?: "Asset";
data: string;
cacheUrl?: null | string;
contentTypeMime: string;
accessTypeName: string;
};
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
name?: null | string;
nftsCount?: null | number;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
sources: {
__typename?: "Source";
id: string;
loanId: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
startTime: Date;
}[];
}[];
hasNextPage: true;
cursor: string;
} | {
loans: {
type: undefined | "MultiSourceLoan";
contractAddress: `0x${string}`;
nftCollateralTokenId: bigint;
nftCollateralAddress: undefined | `0x${string}`;
borrower: `0x${string}`;
startTime: bigint;
source: {
lender: `0x${string}`;
loanId: bigint;
startTime: bigint;
__typename?: "Source";
id: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
}[];
id: string;
address: `0x${string}`;
loanId: number;
timestamp: Date;
txHash: `0x${string}`;
indexInBlock: number;
borrowerAddress: `0x${string}`;
principalAddress: `0x${string}`;
duration: bigint;
status: string;
principalAmount: bigint;
blendedAprBps: number;
totalOriginationFee: bigint;
protocolFee: bigint;
offer: {
__typename?: "CollectionOffer";
offerId: bigint;
signerAddress?: null | `0x${string}`;
} | {
__typename?: "SingleNFTOffer";
offerId: bigint;
signerAddress?: null | `0x${string}`;
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: `0x${string}`;
};
repaidActivity?: null | {
__typename?: "LoanRepaid";
totalInterest: bigint;
timestamp: Date;
};
nft: {
__typename?: "NFT";
id: string;
name?: null | string;
tokenId: bigint;
nftId: string;
owner?: null | `0x${string}`;
image?: null | {
__typename?: "Asset";
data: string;
cacheUrl?: null | string;
contentTypeMime: string;
accessTypeName: string;
};
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
name?: null | string;
nftsCount?: null | number;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
sources: {
__typename?: "Source";
id: string;
loanId: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
startTime: Date;
}[];
}[];
hasNextPage: false;
cursor: null;
}>
listListings
- listListings(props): Promise<{
listings: {
__typename?: "Listing";
id: string;
marketplaceName: MarketplaceEnum;
createdDate: Date;
desiredDuration?: null | number;
desiredPrincipalAddress?: null | `0x${string}`;
user: {
__typename?: "User";
walletAddress: `0x${string}`;
};
nft: {
__typename?: "NFT";
id: string;
tokenId: bigint;
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
}[];
hasNextPage: true;
cursor: string;
} | {
listings: {
__typename?: "Listing";
id: string;
marketplaceName: MarketplaceEnum;
createdDate: Date;
desiredDuration?: null | number;
desiredPrincipalAddress?: null | `0x${string}`;
user: {
__typename?: "User";
walletAddress: `0x${string}`;
};
nft: {
__typename?: "NFT";
id: string;
tokenId: bigint;
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
}[];
hasNextPage: false;
cursor: null;
}>
-
Returns Promise<{
listings: {
__typename?: "Listing";
id: string;
marketplaceName: MarketplaceEnum;
createdDate: Date;
desiredDuration?: null | number;
desiredPrincipalAddress?: null | `0x${string}`;
user: {
__typename?: "User";
walletAddress: `0x${string}`;
};
nft: {
__typename?: "NFT";
id: string;
tokenId: bigint;
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
}[];
hasNextPage: true;
cursor: string;
} | {
listings: {
__typename?: "Listing";
id: string;
marketplaceName: MarketplaceEnum;
createdDate: Date;
desiredDuration?: null | number;
desiredPrincipalAddress?: null | `0x${string}`;
user: {
__typename?: "User";
walletAddress: `0x${string}`;
};
nft: {
__typename?: "NFT";
id: string;
tokenId: bigint;
collection?: null | {
__typename?: "Collection";
id: string;
slug: string;
contractData: {
__typename?: "ContractData";
contractAddress: `0x${string}`;
};
};
};
}[];
hasNextPage: false;
cursor: null;
}>
getWrapperAddress
- getWrapperAddress(collection): Promise<`0x${string}`>
-
Parameters
-
collection: {
contractData: {
contractAddress: `0x${string}`;
};
wrapperCollections?: {
contractData: {
contractAddress: `0x${string}`;
};
}[];
}
-
contractData: {
contractAddress: `0x${string}`;
}
-
contractAddress: `0x${string}`
-
Optional
wrapperCollections?: {
contractData: {
contractAddress: `0x${string}`;
};
}[]
Returns Promise<`0x${string}`>
Properties
api
api: { listNft(variables,
options?) => Promise<ListNftMutation>; unlistNft(variables,
options?) => Promise<UnlistNftMutation>; generateCollectionOfferHash(variables,
options?) => Promise<GenerateCollectionOfferHashMutation>; saveCollectionOffer(variables,
options?) => Promise<SaveCollectionOfferMutation>; hideOffer(variables,
options?) => Promise<HideOfferMutation>; generateSingleNftOfferHash(variables,
options?) => Promise<GenerateSingleNftOfferHashMutation>; saveSingleNftOffer(variables,
options?) => Promise<SaveSingleNftOfferMutation>; unhideOffer(variables,
options?) => Promise<UnhideOfferMutation>; generateRenegotiationOfferHash(variables,
options?) => Promise<GenerateRenegotiationOfferHashMutation>; hideRenegotiationOffer(variables,
options?) => Promise<HideRenegotiationOfferMutation>; saveRenegotiationOffer(variables,
options?) => Promise<SaveRenegotiationOfferMutation>; unhideRenegotiationOffer(variables,
options?) => Promise<UnhideRenegotiationOfferMutation>; hideSaleOffer(variables,
options?) => Promise<HideSaleOfferMutation>; listBestBidsForNft(variables,
options?) => Promise<ListBestBidsForNftQuery>; saveSignedSaleOffer(variables,
options?) => Promise<SaveSignedSaleOfferMutation>; unhideSaleOffer(variables,
options?) => Promise<UnhideSaleOfferMutation>; collections(variables,
options?) => Promise<CollectionsQuery>; collectionByContractAddress(variables,
options?) => Promise<CollectionByContractAddressQuery>; collectionsIdByContractAddress(variables,
options?) => Promise<CollectionsIdByContractAddressQuery>; collectionIdBySlug(variables,
options?) => Promise<CollectionIdBySlugQuery>; listListings(variables?,
options?) => Promise<ListListingsQuery>; listLoans(variables?,
options?) => Promise<ListLoansQuery>; nftIdByContractAddressAndTokenId(variables,
options?) => Promise<NftIdByContractAddressAndTokenIdQuery>; nftIdBySlugTokenId(variables,
options?) => Promise<NftIdBySlugTokenIdQuery>; ownedNfts(variables?,
options?) => Promise<OwnedNftsQuery>; listOffers(variables,
options?) => Promise<ListOffersQuery>; }
Type declaration
-
listNft:function
- listNft(variables, options?): Promise<ListNftMutation>
-
Parameters
-
variables: Exact<{
nftId: number;
}>
-
Optional
options: {}
-
unlistNft:function
- unlistNft(variables, options?): Promise<UnlistNftMutation>
-
Parameters
-
variables: Exact<{
nftId: number;
}>
-
Optional
options: {}
-
generateCollectionOfferHash:function
-
saveCollectionOffer:function
-
hideOffer:function
- hideOffer(variables, options?): Promise<HideOfferMutation>
-
Parameters
-
variables: Exact<{
contract: `0x${string}`;
id: string;
}>
-
Optional
options: {}
-
generateSingleNftOfferHash:function
-
saveSingleNftOffer:function
-
unhideOffer:function
- unhideOffer(variables, options?): Promise<UnhideOfferMutation>
-
Parameters
-
variables: Exact<{
contract: `0x${string}`;
id: string;
}>
-
Optional
options: {}
-
generateRenegotiationOfferHash:function
-
hideRenegotiationOffer:function
- hideRenegotiationOffer(variables, options?): Promise<HideRenegotiationOfferMutation>
-
Parameters
-
variables: Exact<{
id: string;
contractAddress: `0x${string}`;
}>
-
Optional
options: {}
-
saveRenegotiationOffer:function
-
unhideRenegotiationOffer:function
- unhideRenegotiationOffer(variables, options?): Promise<UnhideRenegotiationOfferMutation>
-
Parameters
-
variables: Exact<{
id: string;
contractAddress: `0x${string}`;
}>
-
Optional
options: {}
-
hideSaleOffer:function
- hideSaleOffer(variables, options?): Promise<HideSaleOfferMutation>
-
Parameters
-
variables: Exact<{
id: string;
}>
-
Optional
options: {}
-
listBestBidsForNft:function
- listBestBidsForNft(variables, options?): Promise<ListBestBidsForNftQuery>
-
Parameters
-
variables: Exact<{
nftId: number;
currencyAddress: string;
}>
-
Optional
options: {}
-
saveSignedSaleOffer:function
-
unhideSaleOffer:function
-
collections:function
-
collectionByContractAddress:function
-
collectionsIdByContractAddress:function
-
collectionIdBySlug:function
- collectionIdBySlug(variables, options?): Promise<CollectionIdBySlugQuery>
-
Parameters
-
variables: Exact<{
slug: string;
}>
-
Optional
options: {}
-
listListings:function
-
listLoans:function
-
nftIdByContractAddressAndTokenId:function
-
nftIdBySlugTokenId:function
- nftIdBySlugTokenId(variables, options?): Promise<NftIdBySlugTokenIdQuery>
-
Parameters
-
variables: Exact<{
slug: string;
tokenId: bigint;
}>
-
Optional
options: {}
-
ownedNfts:function
-
listOffers:function
generateSingleNftOfferHash
generateCollectionOfferHash
generateRenegotiationOfferHash
nftIdBySlugTokenId
Type declaration
-
- (variables, options?): Promise<NftIdBySlugTokenIdQuery>
-
Parameters
-
variables: Exact<{
slug: string;
tokenId: bigint;
}>
-
Optional
options: {}
nftIdByContractAddressAndTokenId
collectionsIdByContractAddress
collectionByContractAddress
listNft
Type declaration
-
- (variables, options?): Promise<ListNftMutation>
-
Parameters
-
variables: Exact<{
nftId: number;
}>
-
Optional
options: {}
unlistNft
Type declaration
-
- (variables, options?): Promise<UnlistNftMutation>
-
Parameters
-
variables: Exact<{
nftId: number;
}>
-
Optional
options: {}
hideOffer
Type declaration
-
- (variables, options?): Promise<HideOfferMutation>
-
Parameters
-
variables: Exact<{
contract: `0x${string}`;
id: string;
}>
-
Optional
options: {}
unhideOffer
Type declaration
-
- (variables, options?): Promise<UnhideOfferMutation>
-
Parameters
-
variables: Exact<{
contract: `0x${string}`;
id: string;
}>
-
Optional
options: {}
listBestBidsForNft
Type declaration
-
- (variables, options?): Promise<ListBestBidsForNftQuery>
-
Parameters
-
variables: Exact<{
nftId: number;
currencyAddress: string;
}>
-
Optional
options: {}