Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 1 #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all 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
10 changes: 5 additions & 5 deletions pages/developer-docs/irys-sdk/api/fund.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { Callout } from "nextra-theme-docs";

# `irys.fund(amount)`

Funds the [Irys network](/overview/networks) you connected to with the specified number of tokens.
Funds the [Irys network](https://github.com/Irys-xyz/Irys-docs/blob/352323abeb1d6e64bbb1cdbb7d0e6fd55363d1d4/pages/overview/networks.mdx#L12) you connected to with the specified number of tokens.

For more information on how funding and withdrawing are handled, [see our docs](/learn/funding-withdrawing).
For more information on how funding and withdrawing are handled, [see our docs](https://github.com/Irys-xyz/Irys-docs/blob/352323abeb1d6e64bbb1cdbb7d0e6fd55363d1d4/pages/learn/funding-withdrawing.mdx#L4).

**Parameters**

Expand All @@ -33,7 +33,7 @@ response = {

## Upfront funding

You can up-front fund a node, where you send over enough funds to cover all of a project’s uploads. When upfront funding, you may want to [write a script to monitor your stored balance, topping up when needed.](/hands-on/tutorials/monitor-node-balance)
You can up-front fund a node, where you send over enough funds to cover all of a project’s uploads. When upfront funding, you may want to [write a script to monitor your stored balance, topping up when needed.](https://github.com/Irys-xyz/Irys-docs/blob/352323abeb1d6e64bbb1cdbb7d0e6fd55363d1d4/pages/hands-on/tutorials/monitor-node-balance.mdx#L9

```js
try {
Expand Down Expand Up @@ -87,7 +87,7 @@ try {

## Paid RPCs

When [transferring tokens](/learn/funding-withdrawing) we use public RPCs. Sometimes these can be slow to confirm transactions. If you're experiencing an error when funding, consider using a paid RPC.
When [transferring tokens](https://github.com/Irys-xyz/Irys-docs/blob/352323abeb1d6e64bbb1cdbb7d0e6fd55363d1d4/pages/learn/funding-withdrawing.mdx#L4) we use public RPCs. Sometimes these can be slow to confirm transactions. If you're experiencing an error when funding, consider using a paid RPC.

```js
const network = "devnet;
Expand All @@ -101,4 +101,4 @@ const irys = new Irys({
key: privateKey, // ETH or SOL private key
config: { providerUrl },
});
```
```