diff --git a/src/components/ParserOpenRPC/DetailsBox/index.tsx b/src/components/ParserOpenRPC/DetailsBox/index.tsx index 8f2afb5dafd..5ecc95eb3f0 100644 --- a/src/components/ParserOpenRPC/DetailsBox/index.tsx +++ b/src/components/ParserOpenRPC/DetailsBox/index.tsx @@ -22,6 +22,7 @@ interface DetailsBoxProps { components: SchemaComponents; result: any; tags: TagItem[]; + extraContent?: JSX.Element; } export default function DetailsBox({ @@ -31,6 +32,7 @@ export default function DetailsBox({ components, result, tags, + extraContent, }: DetailsBoxProps) { return ( <> @@ -45,6 +47,7 @@ export default function DetailsBox({ )} {method} + {extraContent &&
{extraContent}
} (null); -export default function ParserOpenRPC({ network, method }: ParserProps) { +export default function ParserOpenRPC({ network, method, extraContent }: ParserProps) { if (!method || !network) return null; const [isModalOpen, setModalOpen] = useState(false); const [reqResult, setReqResult] = useState(undefined); @@ -178,6 +179,7 @@ export default function ParserOpenRPC({ network, method }: ParserProps) { components={currentMethodData.components.schemas} result={currentMethodData.result} tags={currentMethodData.tags} + extraContent={extraContent} /> diff --git a/wallet/reference/new-reference.mdx b/wallet/reference/new-reference.mdx index c7ac519c3d1..1af851b5a63 100644 --- a/wallet/reference/new-reference.mdx +++ b/wallet/reference/new-reference.mdx @@ -7,5 +7,10 @@ sidebar_class_name: "hidden" import ParserOpenRPC from "@site/src/components/ParserOpenRPC" import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc" +import Description from "@site/services/reference/_partials/_eth_sendtransaction-description.mdx" - +} +/>