
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
@requestnetwork/create-invoice-form
Advanced tools
[](https://badge.fury.io/js/%40requestnetwork%2Fcreate-invoice-form)
A web component for integrating the Request Network's Create Invoice Form into a web application.
The Create Invoice Form component allows users to create a request using the Request Network. It is built using Svelte but compiled to a Web Component, making it usable in any web environment, regardless of the framework.
To install the component, use npm:
npm install @requestnetwork/create-invoice-form
You can directly pass props into the create-invoice-form web component without needing to create references or use workarounds.
import Head from "next/head";
import { config } from "@/utils/config";
import { useAppContext } from "@/utils/context";
import { currencies } from "@/utils/currencies";
import { rainbowKitConfig as wagmiConfig } from "@/utils/wagmiConfig";
import CreateInvoiceForm from "@requestnetwork/create-invoice-form/react";
export default function CreateInvoice() {
const { requestNetwork } = useAppContext();
return (
<>
<Head>
<title>Request Invoicing - Create an Invoice</title>
</Head>
<div className="container m-auto w-[100%]">
<CreateInvoiceForm
config={config}
currencies={currencies}
wagmiConfig={wagmiConfig}
requestNetwork={requestNetwork}
/>
</div>
</>
);
}
Initialize the RequestNetwork
object using an Ethers Signer
or Viem WalletClient
.
import { RequestNetwork } from "@requestnetwork/request-client.js";
import { Web3SignatureProvider } from "@requestnetwork/web3-signature";
export const initializeRequestNetwork = (setter: any, walletClient: any) => {
try {
const web3SignatureProvider = new Web3SignatureProvider(walletClient);
const requestNetwork = new RequestNetwork({
nodeConnectionConfig: {
baseURL: "https://gnosis.gateway.request.network/",
},
signatureProvider: web3SignatureProvider,
});
setter(requestNetwork);
} catch (error) {
console.error("Failed to initialize the Request Network:", error);
setter(null);
}
};
The wagmiConfig file configures wallet connections for the InvoiceDashboard component, using RainbowKit and supporting various wallets and blockchains.
For more details see Wagmi Docs
Use the config object to pass additional configuration options to the create invoice form component.
Please replace the builderId
with your own, arbitrarily chosen ID. This is used to track how many invoices are created by your application.
import { IConfig } from "@requestnetwork/shared";
export const config: IConfig = {
builderId: "request-network", // Replace with your builder ID, arbitrarily chosen, used for metrics
dashboardLink: "/",
logo: "/assets/logo-sm.svg",
colors: {
main: "#0BB489",
secondary: "#58E1A5",
},
};
Feature | Status |
---|---|
ERC20 Request | ✅ |
rnf_invoice format 0.3.0 | ✅ |
Configure Logo and Colors | ✅ |
Minimal Chains and Currencies | ✅ |
Compatible with all Wagmi connectors | ✅ |
Native Request | ❌ |
Conversion Request | ❌ |
Swap-to-Pay Request | ❌ |
Swap-to-Conversion Request | ❌ |
Escrow Request | ❌ |
Improved UI and UX | ❌ |
Auto-increment Invoice Number | ❌ |
Client Address List | ❌ |
Payment Recipient Address List | ❌ |
More Chains and Currencies | ❌ |
More Configuration Options | ❌ |
Attachments | ❌ |
Chain | Currencies |
---|---|
Ethereum | USDC, USDT, DAI |
Polygon | USDC, USDT, DAI, USDCe |
Sepolia | USDC, FAU |
For more information, see the Request Network documentation.
FAQs
[](https://badge.fury.io/js/%40requestnetwork%2Fcreate-invoice-form)
The npm package @requestnetwork/create-invoice-form receives a total of 0 weekly downloads. As such, @requestnetwork/create-invoice-form popularity was classified as not popular.
We found that @requestnetwork/create-invoice-form demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.