@sentio/sdk
    Preparing search index...

    Interface ERC721

    interface ERC721 {
        "[internal]": any;
        fallback: null | WrappedFallback;
        filters: Record<string, ContractEvent>;
        interface: ERC721Interface;
        runner: null | ContractRunner;
        target: string | Addressable;
        addListener(event: ContractEventName, listener: Listener): Promise<ERC721>;
        attach(target: string | Addressable): BaseContract;
        connect(runner: null | ContractRunner): this;
        deploymentTransaction(): null | ContractTransactionResponse;
        emit(event: ContractEventName, ...args: any[]): Promise<boolean>;
        getAddress(): Promise<string>;
        getDeployedCode(): Promise<null | string>;
        getEvent(key: string | EventFragment): ContractEvent;
        getFunction<
            T extends
                ContractMethod<any[], any, any> = ContractMethod<any[], any, any>,
        >(
            key: string | FunctionFragment,
        ): T;
        listenerCount(event?: ContractEventName): Promise<number>;
        listeners(event?: ContractEventName): Promise<Listener[]>;
        off(event: ContractEventName, listener?: Listener): Promise<ERC721>;
        on(event: ContractEventName, listener: Listener): Promise<ERC721>;
        once(event: ContractEventName, listener: Listener): Promise<ERC721>;
        queryFilter(
            event: ContractEventName,
            fromBlock?: BlockTag,
            toBlock?: BlockTag,
        ): Promise<(Log | EventLog)[]>;
        queryTransaction(hash: string): Promise<EventLog[]>;
        removeAllListeners(event?: ContractEventName): Promise<ERC721>;
        removeListener(
            event: ContractEventName,
            listener: Listener,
        ): Promise<ERC721>;
        waitForDeployment(): Promise<ERC721>;
    }

    Hierarchy

    • BaseContract
      • ERC721
    Index

    Properties

    "[internal]": any

    @_ignore:

    fallback: null | WrappedFallback

    The fallback or receive function if any.

    filters: Record<string, ContractEvent>

    All the Events available on this contract.

    interface: ERC721Interface

    The contract Interface.

    runner: null | ContractRunner

    The connected runner. This is generally a [[Provider]] or a [[Signer]], which dictates what operations are supported.

    For example, a Contract connected to a [[Provider]] may only execute read-only operations.

    target: string | Addressable

    The target to connect to.

    This can be an address, ENS name or any [[Addressable]], such as another contract. To get the resovled address, use the getAddress method.

    Methods

    • Alias for [on].

      Parameters

      • event: ContractEventName
      • listener: Listener

      Returns Promise<ERC721>

    • Return a new Contract instance with the same ABI and runner, but a different %%target%%.

      Parameters

      • target: string | Addressable

      Returns BaseContract

    • Return a new Contract instance with the same target and ABI, but a different %%runner%%.

      Parameters

      • runner: null | ContractRunner

      Returns this

    • Return the transaction used to deploy this contract.

      This is only available if this instance was returned from a [[ContractFactory]].

      Returns null | ContractTransactionResponse

    • Emit an %%event%% calling all listeners with %%args%%.

      Resolves to true if any listeners were called.

      Parameters

      • event: ContractEventName
      • ...args: any[]

      Returns Promise<boolean>

    • Return the resolved address of this Contract.

      Returns Promise<string>

    • Return the deployed bytecode or null if no bytecode is found.

      Returns Promise<null | string>

    • Return the event for a given name. This is useful when a contract event name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

      Parameters

      • key: string | EventFragment

      Returns ContractEvent

    • Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

      Type Parameters

      • T extends ContractMethod<any[], any, any> = ContractMethod<any[], any, any>

      Parameters

      • key: string | FunctionFragment

      Returns T

    • Resolves to the number of listeners of %%event%% or the total number of listeners if unspecified.

      Parameters

      • Optionalevent: ContractEventName

      Returns Promise<number>

    • Resolves to the listeners subscribed to %%event%% or all listeners if unspecified.

      Parameters

      • Optionalevent: ContractEventName

      Returns Promise<Listener[]>

    • Remove the %%listener%% from the listeners for %%event%% or remove all listeners if unspecified.

      Parameters

      • event: ContractEventName
      • Optionallistener: Listener

      Returns Promise<ERC721>

    • Add an event %%listener%% for the %%event%%.

      Parameters

      • event: ContractEventName
      • listener: Listener

      Returns Promise<ERC721>

    • Add an event %%listener%% for the %%event%%, but remove the listener after it is fired once.

      Parameters

      • event: ContractEventName
      • listener: Listener

      Returns Promise<ERC721>

    • Provide historic access to event data for %%event%% in the range %%fromBlock%% (default: 0) to %%toBlock%% (default: "latest") inclusive.

      Parameters

      • event: ContractEventName
      • OptionalfromBlock: BlockTag
      • OptionaltoBlock: BlockTag

      Returns Promise<(Log | EventLog)[]>

    • @_ignore:

      Parameters

      • hash: string

      Returns Promise<EventLog[]>

    • Remove all the listeners for %%event%% or remove all listeners if unspecified.

      Parameters

      • Optionalevent: ContractEventName

      Returns Promise<ERC721>

    • Alias for [off].

      Parameters

      • event: ContractEventName
      • listener: Listener

      Returns Promise<ERC721>

    • Resolve to this Contract once the bytecode has been deployed, or resolve immediately if already deployed.

      Returns Promise<ERC721>