DOCS

useContract

Signature #1

Parameters

Returns

Signature #2

Use this resolve a contract address to a smart contract instance.

Example

const { contract, isLoading, error } = useContract(
  "{{contract_address}}",
);

Parameters

Returns

a response object that includes the contract once it is resolved

Signature #3

Use this resolve a contract address to a smart contract instance.

Example

const { contract, isLoading, error } = useContract(
  "{{contract_address}}",
  "nft-drop",
);

Parameters

Returns

a response object that includes the contract once it is resolved

Signature #4

Use this resolve a contract address to a smart contract instance.

Example

const { contract, isLoading, error } = useContract(
  "{{contract_address}}",
  ABI,
);

Parameters

Returns

a response object that includes the contract once it is resolved