-
Notifications
You must be signed in to change notification settings - Fork 29
Exports
- ThirdwebProvider
- useAccount
- useAddress
- useConnect
- useDisconnect
- useEdition
- useEditionDrop
- useMarketplace
- useMetamask
- useNFTCollection
- useNFTDrop
- useNetwork
- usePackModule
- useReadonlySDK
- useSDK
- useSigner
- useToken
- useVote
Ƭ ChainRpc<TSupportedChain>: Record<TSupportedChain extends Chain ? TSupportedChain["id"] : TSupportedChain, string>
| Name | Type |
|---|---|
TSupportedChain |
extends SupportedChain
|
Ƭ InjectedConnectorType: "injected" | "metamask" | { name: "injected" | "metamask" ; options?: InjectedConnector["options"] }
Ƭ WalletConnectConnectorType: "walletConnect" | { name: "walletConnect" ; options: WalletConnectConnector["options"] }
Ƭ WalletConnector: InjectedConnectorType | WalletConnectConnectorType | WalletLinkConnectorType
Ƭ WalletLinkConnectorType: "walletLink" | "coinbase" | { name: "walletLink" | "coinbase" ; options: WalletLinkConnector["options"] }
• Const defaultChains: Chain[]
node_modules/wagmi-core/dist/declarations/src/constants/chains.d.ts:9
• Const defaultL2Chains: Chain[]
node_modules/wagmi-core/dist/declarations/src/constants/chains.d.ts:10
▸ ThirdwebProvider<TSupportedChain>(__namedParameters): Element
| Name | Type |
|---|---|
TSupportedChain |
extends SupportedChain = SupportedChain
|
| Name | Type |
|---|---|
__namedParameters |
PropsWithChildren<ThirdwebProviderProps<TSupportedChain>> |
Element
▸ useAccount(__namedParameters?): readonly [{ data: undefined | { address: string ; connector: undefined | Connector<any, any> ; ens: undefined | { avatar: undefined | null | string ; name: string } } ; error: undefined | Error ; loading: boolean }, () => void]
| Name | Type |
|---|---|
__namedParameters? |
Config |
readonly [{ data: undefined | { address: string ; connector: undefined | Connector<any, any> ; ens: undefined | { avatar: undefined | null | string ; name: string } } ; error: undefined | Error ; loading: boolean }, () => void]
node_modules/wagmi/dist/declarations/src/hooks/accounts/useAccount.d.ts:5
▸ useAddress(): string | undefined
string | undefined
▸ useConnect(): readonly [{ data: { connected: boolean ; connector: undefined | Connector<any, any> ; connectors: Connector<any, any>[] } ; error: undefined | Error ; loading: undefined | boolean }, (connector: Connector<any, any>) => Promise<{ data?: ConnectorData<any> ; error?: Error }>]
for now just re-exported
readonly [{ data: { connected: boolean ; connector: undefined | Connector<any, any> ; connectors: Connector<any, any>[] } ; error: undefined | Error ; loading: undefined | boolean }, (connector: Connector<any, any>) => Promise<{ data?: ConnectorData<any> ; error?: Error }>]
▸ useDisconnect(): () => void
fn
▸ (): void
void
▸ useEdition(moduleAddress?): Edition | undefined
| Name | Type |
|---|---|
moduleAddress? |
string |
Edition | undefined
src/hooks/modules/useEdition.ts:4
▸ useEditionDrop(moduleAddress?): EditionDrop | undefined
| Name | Type |
|---|---|
moduleAddress? |
string |
EditionDrop | undefined
src/hooks/modules/useEditionDrop.ts:4
▸ useMarketplace(moduleAddress?): Marketplace | undefined
| Name | Type |
|---|---|
moduleAddress? |
string |
Marketplace | undefined
src/hooks/modules/useMarketplace.ts:4
▸ useMetamask(): () => Promise<{ data?: ConnectorData<any> ; error?: Error }>
fn
▸ (): Promise<{ data?: ConnectorData<any> ; error?: Error }>
Promise<{ data?: ConnectorData<any> ; error?: Error }>
src/hooks/connectors/useMetamask.ts:4
▸ useNFTCollection(moduleAddress?): NFTCollection | undefined
| Name | Type |
|---|---|
moduleAddress? |
string |
NFTCollection | undefined
src/hooks/modules/useNFTCollection.ts:4
▸ useNFTDrop(moduleAddress?): NFTDrop | undefined
| Name | Type |
|---|---|
moduleAddress? |
string |
NFTDrop | undefined
src/hooks/modules/useNFTDrop.ts:4
▸ useNetwork(): readonly [{ data: { chain: undefined | { blockExplorers?: { name: string ; url: string }[] ; id: number ; name?: string ; nativeCurrency?: { decimals: 18 ; name: string ; symbol: string } ; rpcUrls?: string[] ; testnet?: boolean ; unsupported: undefined | boolean } ; chains: Chain[] } ; error: undefined | Error ; loading: undefined | boolean }, undefined | (chainId: number) => Promise<{ data: undefined ; error: SwitchChainError } | { data: undefined | Chain ; error: undefined }>]
readonly [{ data: { chain: undefined | { blockExplorers?: { name: string ; url: string }[] ; id: number ; name?: string ; nativeCurrency?: { decimals: 18 ; name: string ; symbol: string } ; rpcUrls?: string[] ; testnet?: boolean ; unsupported: undefined | boolean } ; chains: Chain[] } ; error: undefined | Error ; loading: undefined | boolean }, undefined | (chainId: number) => Promise<{ data: undefined ; error: SwitchChainError } | { data: undefined | Chain ; error: undefined }>]
node_modules/wagmi/dist/declarations/src/hooks/accounts/useNetwork.d.ts:2
▸ usePackModule(moduleAddress?): Pack | undefined
| Name | Type |
|---|---|
moduleAddress? |
string |
Pack | undefined
src/hooks/modules/usePack.ts:4
▸ useReadonlySDK(readonlyRpcUrl, sdkOptions, storageInterface?): ThirdwebSDK
| Name | Type |
|---|---|
readonlyRpcUrl |
string |
sdkOptions |
undefined | { gasSettings?: { maxPriceInGwei?: number ; speed?: "standard" | "fast" | "fastest" } ; gasless?: { openzeppelin: { relayerForwarderAddress?: string ; relayerUrl: string } } | { biconomy: { apiId: string ; apiKey: string ; deadlineSeconds?: number } } ; readonlySettings?: { chainId?: number ; rpcUrl: string } } |
storageInterface? |
IStorage |
ThirdwebSDK
▸ useSDK(): ThirdwebSDK | undefined
ThirdwebSDK | undefined
▸ useSigner(): undefined | Signer
undefined | Signer
▸ useToken(moduleAddress?): Token | undefined
| Name | Type |
|---|---|
moduleAddress? |
string |
Token | undefined
src/hooks/modules/useTokenModule.ts:4
▸ useVote(moduleAddress?): Vote | undefined
| Name | Type |
|---|---|
moduleAddress? |
string |
Vote | undefined