useUniversalDeployerContract
Get a typed contract for the Universal Deployer contract.
This hook internally calls useContract with the Universal Deployer contract address and its ABI.
Usage
import { } from "@starknetfoundation/starknet-start-react";
const { } = ();Data
udc
- Type:
StarknetTypedContract
Typed contract with abi-wan-kanabi types.
Arguments
address
- Type:
0x${string}
The contract address.
provider
- Type:
ProviderInterface | null | undefined
ProviderInterface is from starknet.js. by default it will be the current one
Returns
udc
- Type:
StarknetTypedContract | undefined
Typed contract for the Universal Deployer contract.