Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • IERC721Metadata

Index

Constructors

constructor

  • new IERC721Metadata(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): IERC721Metadata
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns IERC721Metadata

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

_runningEvents

_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent

_wrappedEmits

_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: any[]) => void
      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

Readonly address

address: string

callStatic

callStatic: { approve: any; balanceOf: any; getApproved: any; isApprovedForAll: any; name: any; ownerOf: any; safeTransferFrom(address,address,uint256): any; safeTransferFrom(address,address,uint256,bytes): any; setApprovalForAll: any; supportsInterface: any; symbol: any; tokenURI: any; transferFrom: any }

Type declaration

  • approve: function
    • approve(to: string, tokenId: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Gives permission to to to transfer tokenId token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - tokenId must exist. Emits an {Approval} event.

      Parameters

      • to: string
      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • balanceOf: function
    • balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>
    • Returns the number of tokens in owner's account.

      Parameters

      • owner: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getApproved: function
    • getApproved(tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>
    • Returns the account approved for tokenId token. Requirements: - tokenId must exist.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<string>

  • isApprovedForAll: function
    • isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides): Promise<boolean>
    • Returns if the operator is allowed to manage all of the assets of owner. See {setApprovalForAll}

      Parameters

      • owner: string
      • operator: string
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • name: function
    • name(overrides?: CallOverrides): Promise<string>
    • Returns the token collection name.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • ownerOf: function
    • ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>
    • Returns the owner of the tokenId token. Requirements: - tokenId must exist.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<string>

  • safeTransferFrom(address,address,uint256): function
    • safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Safely transfers tokenId token from from to to, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • safeTransferFrom(address,address,uint256,bytes): function
    • safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: CallOverrides): Promise<void>
    • Safely transfers tokenId token from from to to. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • data: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • setApprovalForAll: function
    • setApprovalForAll(operator: string, _approved: boolean, overrides?: CallOverrides): Promise<void>
    • Approve or remove operator as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The operator cannot be the caller. Emits an {ApprovalForAll} event.

      Parameters

      • operator: string
      • _approved: boolean
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • supportsInterface: function
    • supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<boolean>
    • Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

      Parameters

      • interfaceId: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<boolean>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<string>
    • Returns the token collection symbol.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • tokenURI: function
    • tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>
    • Returns the Uniform Resource Identifier (URI) for tokenId token.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<string>

  • transferFrom: function
    • transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Transfers tokenId token from from to to. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { approve: any; balanceOf: any; getApproved: any; isApprovedForAll: any; name: any; ownerOf: any; safeTransferFrom(address,address,uint256): any; safeTransferFrom(address,address,uint256,bytes): any; setApprovalForAll: any; supportsInterface: any; symbol: any; tokenURI: any; transferFrom: any }

Type declaration

  • approve: function
    • approve(to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Gives permission to to to transfer tokenId token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - tokenId must exist. Emits an {Approval} event.

      Parameters

      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • balanceOf: function
    • balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>
    • Returns the number of tokens in owner's account.

      Parameters

      • owner: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getApproved: function
    • getApproved(tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Returns the account approved for tokenId token. Requirements: - tokenId must exist.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • isApprovedForAll: function
    • isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides): Promise<BigNumber>
    • Returns if the operator is allowed to manage all of the assets of owner. See {setApprovalForAll}

      Parameters

      • owner: string
      • operator: string
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • name: function
    • name(overrides?: CallOverrides): Promise<BigNumber>
    • Returns the token collection name.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • ownerOf: function
    • ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Returns the owner of the tokenId token. Requirements: - tokenId must exist.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • safeTransferFrom(address,address,uint256): function
    • safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Safely transfers tokenId token from from to to, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • safeTransferFrom(address,address,uint256,bytes): function
    • safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Safely transfers tokenId token from from to to. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • data: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • setApprovalForAll: function
    • setApprovalForAll(operator: string, _approved: boolean, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Approve or remove operator as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The operator cannot be the caller. Emits an {ApprovalForAll} event.

      Parameters

      • operator: string
      • _approved: boolean
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • supportsInterface: function
    • supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
    • Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

      Parameters

      • interfaceId: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<BigNumber>
    • Returns the token collection symbol.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • tokenURI: function
    • tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Returns the Uniform Resource Identifier (URI) for tokenId token.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • transferFrom: function
    • transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Transfers tokenId token from from to to. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters

filters: { Approval: any; ApprovalForAll: any; Transfer: any }

Type declaration

  • Approval: function
    • Approval(owner?: null | string, approved?: null | string, tokenId?: null | BigNumberish): TypedEventFilter<[string, string, BigNumber], { approved: string; owner: string; tokenId: BigNumber }>
    • Parameters

      • Optional owner: null | string
      • Optional approved: null | string
      • Optional tokenId: null | BigNumberish

      Returns TypedEventFilter<[string, string, BigNumber], { approved: string; owner: string; tokenId: BigNumber }>

  • ApprovalForAll: function
    • ApprovalForAll(owner?: null | string, operator?: null | string, approved?: null): TypedEventFilter<[string, string, boolean], { approved: boolean; operator: string; owner: string }>
    • Parameters

      • Optional owner: null | string
      • Optional operator: null | string
      • Optional approved: null

      Returns TypedEventFilter<[string, string, boolean], { approved: boolean; operator: string; owner: string }>

  • Transfer: function
    • Transfer(from?: null | string, to?: null | string, tokenId?: null | BigNumberish): TypedEventFilter<[string, string, BigNumber], { from: string; to: string; tokenId: BigNumber }>
    • Parameters

      • Optional from: null | string
      • Optional to: null | string
      • Optional tokenId: null | BigNumberish

      Returns TypedEventFilter<[string, string, BigNumber], { from: string; to: string; tokenId: BigNumber }>

functions

functions: { approve: any; balanceOf: any; getApproved: any; isApprovedForAll: any; name: any; ownerOf: any; safeTransferFrom(address,address,uint256): any; safeTransferFrom(address,address,uint256,bytes): any; setApprovalForAll: any; supportsInterface: any; symbol: any; tokenURI: any; transferFrom: any }

Type declaration

  • approve: function
    • approve(to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Gives permission to to to transfer tokenId token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - tokenId must exist. Emits an {Approval} event.

      Parameters

      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • balanceOf: function
    • balanceOf(owner: string, overrides?: CallOverrides): Promise<[BigNumber] & { balance: BigNumber }>
    • Returns the number of tokens in owner's account.

      Parameters

      • owner: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber] & { balance: BigNumber }>

  • getApproved: function
    • getApproved(tokenId: BigNumberish, overrides?: CallOverrides): Promise<[string] & { operator: string }>
    • Returns the account approved for tokenId token. Requirements: - tokenId must exist.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string] & { operator: string }>

  • isApprovedForAll: function
    • isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides): Promise<[boolean]>
    • Returns if the operator is allowed to manage all of the assets of owner. See {setApprovalForAll}

      Parameters

      • owner: string
      • operator: string
      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • name: function
    • name(overrides?: CallOverrides): Promise<[string]>
    • Returns the token collection name.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • ownerOf: function
    • ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise<[string] & { owner: string }>
    • Returns the owner of the tokenId token. Requirements: - tokenId must exist.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string] & { owner: string }>

  • safeTransferFrom(address,address,uint256): function
    • safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Safely transfers tokenId token from from to to, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • safeTransferFrom(address,address,uint256,bytes): function
    • safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Safely transfers tokenId token from from to to. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • data: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • setApprovalForAll: function
    • setApprovalForAll(operator: string, _approved: boolean, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Approve or remove operator as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The operator cannot be the caller. Emits an {ApprovalForAll} event.

      Parameters

      • operator: string
      • _approved: boolean
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

  • supportsInterface: function
    • supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<[boolean]>
    • Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

      Parameters

      • interfaceId: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<[boolean]>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<[string]>
    • Returns the token collection symbol.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • tokenURI: function
    • tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise<[string]>
    • Returns the Uniform Resource Identifier (URI) for tokenId token.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string]>

  • transferFrom: function
    • transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Transfers tokenId token from from to to. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

interface

interface: IERC721MetadataInterface

populateTransaction

populateTransaction: { approve: any; balanceOf: any; getApproved: any; isApprovedForAll: any; name: any; ownerOf: any; safeTransferFrom(address,address,uint256): any; safeTransferFrom(address,address,uint256,bytes): any; setApprovalForAll: any; supportsInterface: any; symbol: any; tokenURI: any; transferFrom: any }

Type declaration

  • approve: function
    • approve(to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Gives permission to to to transfer tokenId token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - tokenId must exist. Emits an {Approval} event.

      Parameters

      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • balanceOf: function
    • balanceOf(owner: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the number of tokens in owner's account.

      Parameters

      • owner: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • getApproved: function
    • getApproved(tokenId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the account approved for tokenId token. Requirements: - tokenId must exist.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • isApprovedForAll: function
    • isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns if the operator is allowed to manage all of the assets of owner. See {setApprovalForAll}

      Parameters

      • owner: string
      • operator: string
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • name: function
    • name(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the token collection name.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • ownerOf: function
    • ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the owner of the tokenId token. Requirements: - tokenId must exist.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • safeTransferFrom(address,address,uint256): function
    • safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Safely transfers tokenId token from from to to, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • safeTransferFrom(address,address,uint256,bytes): function
    • safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Safely transfers tokenId token from from to to. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • data: BytesLike
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • setApprovalForAll: function
    • setApprovalForAll(operator: string, _approved: boolean, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Approve or remove operator as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The operator cannot be the caller. Emits an {ApprovalForAll} event.

      Parameters

      • operator: string
      • _approved: boolean
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

  • supportsInterface: function
    • supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

      Parameters

      • interfaceId: BytesLike
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • symbol: function
    • symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the token collection symbol.

      Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • tokenURI: function
    • tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Returns the Uniform Resource Identifier (URI) for tokenId token.

      Parameters

      • tokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • transferFrom: function
    • transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Transfers tokenId token from from to to. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.

      Parameters

      • from: string
      • to: string
      • tokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

Readonly provider

provider: Provider

Readonly resolvedAddress

resolvedAddress: Promise<string>

Readonly signer

signer: Signer

Methods

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void
  • Parameters

    • runningEvent: RunningEvent

    Returns void

_deployed

  • _deployed(blockTag?: BlockTag): Promise<Contract>
  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

_wrapEvent

  • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

approve

  • approve(to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Gives permission to to to transfer tokenId token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - tokenId must exist. Emits an {Approval} event.

    Parameters

    • to: string
    • tokenId: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

attach

  • Parameters

    • addressOrName: string

    Returns IERC721Metadata

balanceOf

  • balanceOf(owner: string, overrides?: CallOverrides): Promise<BigNumber>
  • Returns the number of tokens in owner's account.

    Parameters

    • owner: string
    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

connect

  • Parameters

    • signerOrProvider: string | Signer | Provider

    Returns IERC721Metadata

deployed

  • Returns Promise<IERC721Metadata>

emit

  • emit(eventName: string | EventFilter, ...args: any[]): boolean
  • Parameters

    • eventName: string | EventFilter
    • Rest ...args: any[]

    Returns boolean

fallback

  • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

getApproved

  • getApproved(tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>
  • Returns the account approved for tokenId token. Requirements: - tokenId must exist.

    Parameters

    • tokenId: BigNumberish
    • Optional overrides: CallOverrides

    Returns Promise<string>

isApprovedForAll

  • isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides): Promise<boolean>
  • Returns if the operator is allowed to manage all of the assets of owner. See {setApprovalForAll}

    Parameters

    • owner: string
    • operator: string
    • Optional overrides: CallOverrides

    Returns Promise<boolean>

listenerCount

  • listenerCount(eventName?: string | EventFilter): number
  • Parameters

    • Optional eventName: string | EventFilter

    Returns number

listeners

  • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
  • listeners(eventName?: string): Listener[]
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns TypedListener<EventArgsArray, EventArgsObject>[]

  • Parameters

    • Optional eventName: string

    Returns Listener[]

name

  • name(overrides?: CallOverrides): Promise<string>
  • Returns the token collection name.

    Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

off

  • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IERC721Metadata
  • off(eventName: string, listener: Listener): IERC721Metadata
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns IERC721Metadata

  • Parameters

    • eventName: string
    • listener: Listener

    Returns IERC721Metadata

on

  • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IERC721Metadata
  • on(eventName: string, listener: Listener): IERC721Metadata
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns IERC721Metadata

  • Parameters

    • eventName: string
    • listener: Listener

    Returns IERC721Metadata

once

  • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IERC721Metadata
  • once(eventName: string, listener: Listener): IERC721Metadata
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns IERC721Metadata

  • Parameters

    • eventName: string
    • listener: Listener

    Returns IERC721Metadata

ownerOf

  • ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>
  • Returns the owner of the tokenId token. Requirements: - tokenId must exist.

    Parameters

    • tokenId: BigNumberish
    • Optional overrides: CallOverrides

    Returns Promise<string>

queryFilter

  • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • event: TypedEventFilter<EventArgsArray, EventArgsObject>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

removeAllListeners

  • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): IERC721Metadata
  • removeAllListeners(eventName?: string): IERC721Metadata
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns IERC721Metadata

  • Parameters

    • Optional eventName: string

    Returns IERC721Metadata

removeListener

  • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IERC721Metadata
  • removeListener(eventName: string, listener: Listener): IERC721Metadata
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns IERC721Metadata

  • Parameters

    • eventName: string
    • listener: Listener

    Returns IERC721Metadata

safeTransferFrom(address,address,uint256)

  • safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Safely transfers tokenId token from from to to, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

    Parameters

    • from: string
    • to: string
    • tokenId: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

safeTransferFrom(address,address,uint256,bytes)

  • safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Safely transfers tokenId token from from to to. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must exist and be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If to refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.

    Parameters

    • from: string
    • to: string
    • tokenId: BigNumberish
    • data: BytesLike
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

setApprovalForAll

  • setApprovalForAll(operator: string, _approved: boolean, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Approve or remove operator as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The operator cannot be the caller. Emits an {ApprovalForAll} event.

    Parameters

    • operator: string
    • _approved: boolean
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

supportsInterface

  • supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<boolean>
  • Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

    Parameters

    • interfaceId: BytesLike
    • Optional overrides: CallOverrides

    Returns Promise<boolean>

symbol

  • symbol(overrides?: CallOverrides): Promise<string>
  • Returns the token collection symbol.

    Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

tokenURI

  • tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise<string>
  • Returns the Uniform Resource Identifier (URI) for tokenId token.

    Parameters

    • tokenId: BigNumberish
    • Optional overrides: CallOverrides

    Returns Promise<string>

transferFrom

  • transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Transfers tokenId token from from to to. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - from cannot be the zero address. - to cannot be the zero address. - tokenId token must be owned by from. - If the caller is not from, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.

    Parameters

    • from: string
    • to: string
    • tokenId: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    Returns Promise<ContractTransaction>

Static getContractAddress

  • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
  • Parameters

    • transaction: { from: string; nonce: BigNumberish }
      • from: string
      • nonce: BigNumberish

    Returns string

Static getInterface

  • getInterface(contractInterface: ContractInterface): Interface
  • Parameters

    • contractInterface: ContractInterface

    Returns Interface

Static isIndexed

  • isIndexed(value: any): value is Indexed
  • Parameters

    • value: any

    Returns value is Indexed

Generated using TypeDoc