You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/react.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@
16
16
import { useAddress } from"@thirdweb-dev/react"
17
17
```
18
18
|
19
-
|[useAllListings(contract, filter)](./react.usealllistings.md)| <b><i>(BETA)</i></b> Use this to get a list all listings from your marketplace contract. |
19
+
|[useAuctionWinner(contract, listingId)](./react.useauctionwinner.md)| <b><i>(BETA)</i></b> Use this to get the winner of an auction listing from your marketplace contract. |
20
+
|[useBidBuffer(contract)](./react.usebidbuffer.md)| <b><i>(BETA)</i></b> Use this to get the buffer in basis points between offers from your marketplace contract. |
21
+
|[useBuyoutListing(contract)](./react.usebuyoutlisting.md)| <b><i>(BETA)</i></b> Use this to buy out an auction listing from your marketplace contract. |
20
22
| [useChainId()](./react.usechainid.md) | Hook for accessing the chain ID of the network the current wallet is connected to
21
23
```javascript
22
24
import { useChainId } from"@thirdweb-dev/react"
@@ -26,6 +28,7 @@ import { useChainId } from "@thirdweb-dev/react"
26
28
|[useClaimedNFTs(contract, queryParams)](./react.useclaimednfts.md)| <b><i>(BETA)</i></b> Use this to get a list of \*claimed\* (minted) NFT tokens of your ERC721 Drop contract. |
|[useClaimIneligibilityReasons(\[contract, params, tokenId\])](./react.useclaimineligibilityreasons.md)| <b><i>(BETA)</i></b> Use this to check for reasons that prevent claiming for either ERC20, ERC721 or ERC1155 based contracts. They need to extend the <code>claimCondition</code> extension for this hook to work. |
31
+
|[useClaimNFT(contract)](./react.useclaimnft.md)| <b><i>(BETA)</i></b> Use this to mint a new NFT on your [DropContract](./react.dropcontract.md)|
29
32
| [useCoinbaseWallet()](./react.usecoinbasewallet.md) | Hook for connecting to a Coinbase wallet.
@@ -49,11 +52,14 @@ import { useDisconnect } from "@thirdweb-dev/react"
49
52
import { useGnosis } from"@thirdweb-dev/react"
50
53
```
51
54
|
55
+
|[useListing(contract, listingId)](./react.uselisting.md)| <b><i>(BETA)</i></b> Use this to get a specific listing from the marketplace. |
56
+
|[useListings(contract, filter)](./react.uselistings.md)| <b><i>(BETA)</i></b> Use this to get a list all listings from your marketplace contract. |
52
57
| [useMagic()](./react.usemagic.md) | Hook for connecting to an email wallet using magic link. This enables users without their own wallets to connect to your application and sign transactions securely using their email.
53
58
```javascript
54
59
import { useMagic } from"@thirdweb-dev/react"
55
60
```
56
61
|
62
+
|[useMakeBid(contract)](./react.usemakebid.md)| <b><i>(BETA)</i></b> Use this to place a bid on an auction listing from your marketplace contract. |
57
63
|[useMarketplace(contractAddress)](./react.usemarketplace.md)| Hook for getting an instance of a <code>Marketplace</code> contract. This contract is used to support marketplace for purchase and sale of on-chain assets. |
58
64
| [useMetamask()](./react.usemetamask.md) | Hook for connecting to a Metamask wallet.
59
65
```javascript
@@ -93,6 +99,7 @@ import { useNetworkMistmatch } from "@thirdweb-dev/react"
|[useWinningBid(contract, listingId)](./react.usewinningbid.md)| <b><i>(BETA)</i></b> Use this to get a the winning bid for an auction listing from your marketplace contract. |
96
103
97
104
## Interfaces
98
105
@@ -120,7 +127,11 @@ import { useWalletConnect } from "@thirdweb-dev/react"
120
127
| Type Alias | Description |
121
128
| --- | --- |
122
129
|[ClaimIneligibilityParameters](./react.claimineligibilityparameters.md)| <b><i>(BETA)</i></b> The options to be passed as the second parameter to the <code>useClaimIneligibilityReasons</code> hook. |
130
+
|[ClaimNFTParams](./react.claimnftparams.md)| <b><i>(BETA)</i></b> The params for the [useClaimNFT()](./react.useclaimnft.md) hook mutation. |
131
+
|[ClaimNFTReturnType](./react.claimnftreturntype.md)| <b><i>(BETA)</i></b> The return type of the [useClaimNFT()](./react.useclaimnft.md) hook. |
123
132
|[ContractAddress](./react.contractaddress.md)| <b><i>(BETA)</i></b> A contract address. |
133
+
|[DropContract](./react.dropcontract.md)| <b><i>(BETA)</i></b> The possible DROP contract types. |
134
+
|[MakeBidParams](./react.makebidparams.md)||
124
135
|[MintNFTParams](./react.mintnftparams.md)| <b><i>(BETA)</i></b> The params for the [useMintNFT()](./react.usemintnft.md) hook mutation. |
125
136
|[MintNFTReturnType](./react.mintnftreturntype.md)| <b><i>(BETA)</i></b> The return type of the [useMintNFT()](./react.usemintnft.md) hook. |
126
137
|[NFT](./react.nft.md)| <b><i>(BETA)</i></b> A single NFT token |
| contract |[RequiredParam](./react.requiredparam.md)<!----><NFTDrop>| an instace of a |
22
+
| contract |[RequiredParam](./react.requiredparam.md)<!----><[DropContract](./react.dropcontract.md)<!---->>| an instace of a [DropContract](./react.dropcontract.md)|
23
23
| queryParams | QueryAllParams | <i>(Optional)</i> query params to pass to the query for the sake of pagination |
| contract |[RequiredParam](./react.requiredparam.md)<!----><NFTDrop>| an instace of a |
17
+
| contract |[RequiredParam](./react.requiredparam.md)<!----><[DropContract](./react.dropcontract.md)<!---->>| an instace of a [DropContract](./react.dropcontract.md)|
0 commit comments