Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions components/GenericMethod/GenericMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type GenericMethodProps = {
method: string;
network: string;
cu: number;
culambda?: string;
description: string;
url?: string | string[];
useCases: string[];
Expand Down Expand Up @@ -64,6 +65,7 @@ export default function GenericMethod({
method,
network,
cu,
culambda,
description,
url,
useCases,
Expand Down Expand Up @@ -136,6 +138,15 @@ export default function GenericMethod({
</Text>
</Group>

<Group justify="start" mb={8}>
<Text fontWeight="semibold" size="md">
<Text capitalize>{network}</Text>{" "}
{culambda && (
<Text opacity={0.5}>[{culambda}]</Text>
)}
</Text>
</Group>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{culambda && <Group justify="start" mb={8}>
  <Text fontWeight="semibold" size="md">
    <Text capitalize>{network}</Text>{" "}
     <Text opacity={0.5}>[{culambda}]</Text>
  </Text>
</Group>}


<Group justify="start">
<Text size="sm" color="gray">
{description}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function WalletMethod_getevmportfolio() {
<WalletMethod
method="Get EVM Portfolio"
cu={9185}
culambda={"only tokens filter - 3674 CU, only DeFi filter - 7348 CU"}
description={"Returns comprehensive portfolio information for a wallet address, including native token balances, ERC-20 tokens, and DeFi positions across supported chains"}
url={"GET https://lb.drpc.live/{chain}/{key}/lambda/v2/wallets/{address}/balances"}
useCases={USE_CASES}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function WalletMethod_getnonevmportfolio() {
<WalletMethod
method="Get Non-EVM Portfolio"
cu={3340}
culambda={"only tokens filter - 2004 CU, only DeFi filter - 2672 CU"}
description={"Returns information about all assets in a wallet. It includes: native balance, tokens, DeFi"}
url={"GET https://lb.drpc.live/{chain}/{key}/lambda/v1/wallets/{address}/balances"}
useCases={USE_CASES}
Expand Down
Loading
Loading