Skip to main content

useCGPrice

Callable

  • useCGPrice(__namedParameters: { tokenId: string; vsCurrency?: usd }): { loading: boolean; price: number }

  • Gets the currency value of a token from coin gecko


    Parameters

    • __namedParameters: { tokenId: string; vsCurrency?: usd }

    Returns { loading: boolean; price: number }

    • loading: boolean
    • price: number