Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions content/docs/guide/backup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ author: "gpBlockchain"
authorUrl: "https://github.com/gpBlockchain"
dependencies:
- name: Fiber Node
minVersion: "0.5.1"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.5.1"
minVersion: "0.6.0"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.6.0"
---

This guide explains how to securely back up Fiber node data to safeguard funds, maintain node identity, and ensure smooth migration or upgrades. **Never store plaintext private keys**, as they risk theft if exposed.
Expand Down
19 changes: 11 additions & 8 deletions content/docs/quick-start/basic-transfer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Learn how to set up and execute transfers between two nodes
date: 2025-06-25
dependencies:
- name: Fiber Node
minVersion: "0.5.1"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.5.1"
minVersion: "0.6.0"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.6.0"
---

## Overview
Expand Down Expand Up @@ -34,7 +34,7 @@ cd fiber
cargo build --release
```

This document used the [v0.5.1 binary](https://github.com/nervosnetwork/fiber/releases/tag/v0.5.1) throughout the guide.
This document used the [v0.6.0 binary](https://github.com/nervosnetwork/fiber/releases/tag/v0.6.0) throughout the guide.

### 2. Create Data Directories

Expand Down Expand Up @@ -106,7 +106,7 @@ fiber:
args: 0x3cb7c0304fe53f75bb5727e2484d0beae4bd99d979813c6fc97c3cca569f10f6
- cell_dep:
out_point:
tx_hash: 0x5a5288769cecde6451cb5d301416c297a6da43dc3ac2f3253542b4082478b19b # ckb_auth
tx_hash: 0x12c569a258dd9c5bd99f632bb8314b1263b90921ba31496467580d6b79dd14a7 # ckb_auth
index: 0x0
dep_type: code
- name: CommitmentLock
Expand All @@ -121,7 +121,7 @@ fiber:
args: 0xf7e458887495cf70dd30d1543cad47dc1dfe9d874177bf19291e4db478d5751b
- cell_dep:
out_point:
tx_hash: 0x5a5288769cecde6451cb5d301416c297a6da43dc3ac2f3253542b4082478b19b #ckb_auth
tx_hash: 0x12c569a258dd9c5bd99f632bb8314b1263b90921ba31496467580d6b79dd14a7 #ckb_auth
index: 0x0
dep_type: code

Expand Down Expand Up @@ -201,7 +201,7 @@ curl -s -X POST \
"params": [{
"peer_id": "QmcFpUnjRvMyqbFBTn94wwF8LZodvPWpK39Wg9pYr2i4TQ",
"funding_amount": "0xba43b7400",
"commitment_delay_epoch": "0x20001000003"
"public": true
}]
}' http://localhost:8227
```
Expand Down Expand Up @@ -259,11 +259,14 @@ payment_preimage="0x$(openssl rand -hex 32)"

Once the request is sent, you can get the invoice ID from the response:

```sh
```json
{
"id": "42",
"jsonrpc": "2.0",
"result": "fibt100000000001p..."
"result": {
"invoice_address": "fibt100000000001p...",
"invoice": { ... }
}
}
```

Expand Down
6 changes: 2 additions & 4 deletions content/docs/quick-start/connect-nodes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ author: "sunchengzhu"
authorUrl: "https://github.com/sunchengzhu"
dependencies:
- name: Fiber Node
minVersion: "0.5.1"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.5.1"
minVersion: "0.6.0"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.6.0"
---

## Overview
Expand Down Expand Up @@ -201,7 +201,6 @@ This document provides a user manual for connecting to the public Testnet nodes
"currency": "Fibt",
"description": "test invoice generated by node2",
"expiry": "0xe10",
"final_cltv": "0x28",
"payment_preimage": "0xbc03e507befb33cfd5953a2e7046428e69cb8f0ade65c05d3661128aa4b4fff9",
"hash_algorithm": "sha256"
}
Expand Down Expand Up @@ -428,7 +427,6 @@ This document provides a user manual for connecting to the public Testnet nodes
"currency": "Fibt",
"description": "test invoice generated by node2",
"expiry": "0xe10",
"final_cltv": "0x28",
"payment_preimage": "0xf7d121b132b4f53bb8301591028b34fccc065f92161bb6e7d41cf6d32ad32a22",
"hash_algorithm": "sha256",
"udt_type_script": {
Expand Down
7 changes: 4 additions & 3 deletions content/docs/quick-start/run-a-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: "Learn how to run a Testnet node on your local machine"
date: 2025-06-25
dependencies:
- name: Fiber Node
minVersion: "0.5.1"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.5.1"
minVersion: "0.6.0"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.6.0"
---

## Overview
Expand All @@ -31,7 +31,7 @@ cd fiber
cargo build --release
```

This document used the [v0.5.1 binary](https://github.com/nervosnetwork/fiber/releases/tag/v0.5.1) throughout the guide.
This document used the [v0.6.0 binary](https://github.com/nervosnetwork/fiber/releases/tag/v0.6.0) throughout the guide.

### 2. Create Node Directory

Expand Down Expand Up @@ -123,6 +123,7 @@ cp -r /folder-to/my-fnn/fiber/store /folder-to/my-fnn/fiber/store.backup
```sh
fnn-migrate -p /folder-to/my-fnn/fiber/store
```
( If compiling from source code locally, need `cd` to the [`./migrate`](https://github.com/nervosnetwork/fiber/tree/v0.6.0/migrate). )

4. Update and restart:
- Replace the FNN binary
Expand Down
57 changes: 28 additions & 29 deletions content/docs/quick-start/transfer-stablecoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Learn how to transfer stablecoins between nodes
date: 2025-06-25
dependencies:
- name: Fiber Node
minVersion: "0.5.1"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.5.1"
minVersion: "0.6.0"
link: "https://github.com/nervosnetwork/fiber/releases/tag/v0.6.0"
---

## Overview
Expand Down Expand Up @@ -35,7 +35,7 @@ cargo build --release
cp target/release/fnn ./
```

This document used the [v0.5.1 binary](https://github.com/nervosnetwork/fiber/releases/tag/v0.5.1) throughout the guide.
This document used the [v0.6.0 binary](https://github.com/nervosnetwork/fiber/releases/tag/v0.6.0) throughout the guide.

### 2. Configure Fiber Nodes

Expand Down Expand Up @@ -66,8 +66,6 @@ mkdir ckb
# Use ckb-cli to export or generate keys
ckb-cli account export --lock-arg <lock_arg> --extended-privkey-path ./ckb/exported-key
head -n 1 ./ckb/exported-key > ./ckb/key
# Modify key permissions
chmod 600 ./ckb/key
```

Each node requires a different key. You can get Testnet funds from Faucets.
Expand Down Expand Up @@ -117,7 +115,7 @@ fiber:
args: 0x3cb7c0304fe53f75bb5727e2484d0beae4bd99d979813c6fc97c3cca569f10f6
- cell_dep:
out_point:
tx_hash: 0x5a5288769cecde6451cb5d301416c297a6da43dc3ac2f3253542b4082478b19b # ckb_auth
tx_hash: 0x12c569a258dd9c5bd99f632bb8314b1263b90921ba31496467580d6b79dd14a7 # ckb_auth
index: 0x0
dep_type: code
- name: CommitmentLock
Expand All @@ -132,7 +130,7 @@ fiber:
args: 0xf7e458887495cf70dd30d1543cad47dc1dfe9d874177bf19291e4db478d5751b
- cell_dep:
out_point:
tx_hash: 0x5a5288769cecde6451cb5d301416c297a6da43dc3ac2f3253542b4082478b19b #ckb_auth
tx_hash: 0x12c569a258dd9c5bd99f632bb8314b1263b90921ba31496467580d6b79dd14a7 #ckb_auth
index: 0x0
dep_type: code

Expand Down Expand Up @@ -276,7 +274,6 @@ curl --location 'http://127.0.0.1:8237' \
"amount": "0x3b9aca00",
"currency": "Fibt",
"description": "test invoice generated by node2",
"final_cltv": "0x28",
"payment_preimage": "0x5d3baba4cc5355dbecd27d558a2849604df15d7474144a5dfedb669cb8039cbd",
"expiry": "0xe10",
"hash_algorithm": "sha256",
Expand All @@ -296,28 +293,29 @@ The response will include an invoice address that can be used for payment:

```json
{
"jsonrpc": "2.0",
"result": {
"invoice_address": "fibt10000000001p98tjdhf7emczxzat8lhtag2ulnd9vthgash247nujysgazu2zqd7ava6w7t7e5fj0l3rl34zuhjfjsqp7tcemg83rkpxztpv0qrtmxtjua5uxsqp34tnjq4uvyh0zc9s9pp4hyxuauelxfgwh8sfwhs7q5aan9kk9ujy0s08j22eu3gzya3dusksyqfs64kswc7v77wcfp2wuql0f2z754ecxsglw2fnsdc2cs38p7p9q7r7grm5389sdnw25c9v04ks3t34f04j6t7tgps7nnm9vr3tf5x5mk73lsx3zgaz3jl7a2h25gerjhht99ucc9a9tw6dmlyzy2uqjuhh5kehzsevjp8qym5vxuzamd9vm9jpvlhacjep4pawls5czkuq39xfgqqz8f99e0xlhf9kdauvhqcpxep0f3lv8vmqkrc0uu955l2jy5907cxlxrqncg7cz9ekryflhwqxlzj5h7fmf4s5vlyy8rhk5vgptqsw67",
"invoice": {
"currency": "Fibt",
"amount": "0x3b9aca00",
"signature": "110506090800000207090505190f061f170905160d1d1c0c170018010619010f09111f0c070c1b001603180f1c1c0514141f0a120414050f1e18061f0603001318081e18020519160304091f170e00061f021214171e091b091510140c1f040407031716140c0801",
"data": {
"timestamp": "0x19662411ac8",
"payment_hash": "0x98eed206ca5637624796212d29017aaec97700708d5b08f031ab21b3708a1d1f",
"attrs": [
{"description": "test invoice generated by node2"},
{"expiry_time": "0xe10"},
{"udt_script": "0x550000001000000030000000310000001142755a044bf2ee358cba9f2da187ce928c91cd4dc8692ded0337efa677d21a0120000000878fcc6f1f08d48e87bb1c3b3d5083f23f8a39c5d5c764f253b55b998526439b"},
{"hash_algorithm": "sha256"},
{"payee_public_key": "028b461870f297399c0a24d78abc169669e81db958008748ae879efbbe1f2b2d85"}
]
}
"jsonrpc": "2.0",
"id": 42,
"result": {
"invoice_address": "fibt10000000001p98tjdhf7emczxzat8lhtacrwqgzl9yjnq9ym97kp9kzetyuelpz0ttu98cusyr4z66wf3xxwxwa4ue5h9h63xgeg2j524c8vrct09wu9pqr9uk3hypg5388kw3tpdanz0k4muask0yaaczeunm7cdqvw5ek460v88phxw2nrx46p885l6xvcz3cge6ucnqn28e4zg4r2tqygdzh3v3rg3aqtzwrcjg33gz6v63gjgqn3vrhhftm5mcmme5vfzfxzzdn99500hnetluexzj05nzu3ehye005aed5qdkkmkwamny4c0675zuaq07fqxyakjhxve8g0xdhau67j7ejpp6pm8j7rc98qqg4k5nu9t4fnfl3xyyncrsqxlq85q7h8w0t37qhqx8nxvdxq4pm7aka7kdn0vsdtrf38m8g2dcakz9s3wrexute2uw9z9a4z249x220xnqaeyd3urwgurlugqhckzg7quxzn30he20q4d3cp8fa4vy",
"invoice": {
"currency": "Fibt",
"amount": "0x3b9aca00",
"signature": "060713060c0d060015011b1e1d161d1e160d130f0c100d0b030911071b07080a0d181d16020510110e0319061c0b190a1c0e0502051d15020a1505060a0a0f0613001d19040d111c030e081c031f1c080017181602081e001c060213110f17190a0f00150d111801",
"data": {
"timestamp": "0x19b887faff7",
"payment_hash": "0xfd2e39468311062410470be7af3e973b42e4e027ed5c9a41039125a2e4a8c113",
"attrs": [
{"description": "test invoice generated by node2"},
{"expiry_time": "0xe10"},
{"udt_script": "0x550000001000000030000000310000001142755a044bf2ee358cba9f2da187ce928c91cd4dc8692ded0337efa677d21a0120000000878fcc6f1f08d48e87bb1c3b3d5083f23f8a39c5d5c764f253b55b998526439b"},
{"hash_algorithm": "sha256"},
{"payee_public_key": "026015474b61e66a7ec4a1004d00b175ca687f31e01e3d1d2f11d3a7ae47cf2794"}
]
}
}
}
},
"id": 42
}

```

### 2. Send a Stablecoin Payment
Expand All @@ -333,7 +331,7 @@ curl --location 'http://127.0.0.1:8227' \
"method": "send_payment",
"params": [
{
"invoice": "fibt10000000001p98tjdhf7emczxzat8lhtag2ulnd9vthgash247nujysgazu2zqd7ava6w7t7e5fj0l3rl34zuhjfjsqp7tcemg83rkpxztpv0qrtmxtjua5uxsqp34tnjq4uvyh0zc9s9pp4hyxuauelxfgwh8sfwhs7q5aan9kk9ujy0s08j22eu3gzya3dusksyqfs64kswc7v77wcfp2wuql0f2z754ecxsglw2fnsdc2cs38p7p9q7r7grm5389sdnw25c9v04ks3t34f04j6t7tgps7nnm9vr3tf5x5mk73lsx3zgaz3jl7a2h25gerjhht99ucc9a9tw6dmlyzy2uqjuhh5kehzsevjp8qym5vxuzamd9vm9jpvlhacjep4pawls5czkuq39xfgqqz8f99e0xlhf9kdauvhqcpxep0f3lv8vmqkrc0uu955l2jy5907cxlxrqncg7cz9ekryflhwqxlzj5h7fmf4s5vlyy8rhk5vgptqsw67"
"invoice": "fibt10000000001p98tjdhf7emczxzat8lhtacrwqgzl9yjnq9ym97kp9kzetyuelpz0ttu98cusyr4z66wf3xxwxwa4ue5h9h63xgeg2j524c8vrct09wu9pqr9uk3hypg5388kw3tpdanz0k4muask0yaaczeunm7cdqvw5ek460v88phxw2nrx46p885l6xvcz3cge6ucnqn28e4zg4r2tqygdzh3v3rg3aqtzwrcjg33gz6v63gjgqn3vrhhftm5mcmme5vfzfxzzdn99500hnetluexzj05nzu3ehye005aed5qdkkmkwamny4c0675zuaq07fqxyakjhxve8g0xdhau67j7ejpp6pm8j7rc98qqg4k5nu9t4fnfl3xyyncrsqxlq85q7h8w0t37qhqx8nxvdxq4pm7aka7kdn0vsdtrf38m8g2dcakz9s3wrexute2uw9z9a4z249x220xnqaeyd3urwgurlugqhckzg7quxzn30he20q4d3cp8fa4vy"
}
]
}'
Expand Down Expand Up @@ -415,3 +413,4 @@ curl --location 'http://127.0.0.1:8227' \
- Keep track of your channel IDs and peer IDs
- Monitor your node logs for any errors or important messages
- Make sure to properly close channels when they're no longer needed
- When connecting Node 2 and Node 3, the `address` needs to use the address of Node 3.
2 changes: 1 addition & 1 deletion lib/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const LatestVersions = {
"Fiber Node": "0.5.1",
"Fiber Node": "0.6.0",
};