From 7ac6e660504080a5988b12d63eb83076fce870be Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 15:03:05 -0400 Subject: [PATCH 01/12] docs: add NEAR blockchain support documentation with smart contracts and technical details --- docs.json | 1 + resources/supported-chains-and-currencies.mdx | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs.json b/docs.json index 6e2b9d3..054640c 100644 --- a/docs.json +++ b/docs.json @@ -96,6 +96,7 @@ "group": "🌐 Developer Resources", "pages": [ "resources/supported-chains-and-currencies", + "resources/near-blockchain", "resources/smart-contracts", "resources/community" ] diff --git a/resources/supported-chains-and-currencies.mdx b/resources/supported-chains-and-currencies.mdx index fa4e9d1..5a1bcb8 100644 --- a/resources/supported-chains-and-currencies.mdx +++ b/resources/supported-chains-and-currencies.mdx @@ -380,4 +380,12 @@ Request Network uses multiple price feed sources for accurate conversions: > Start building with your preferred currencies and networks + + + Learn about NEAR blockchain support and unique features + From e2201ae0eb48c3f3f65220ba199ef68790138b17 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 15:30:40 -0400 Subject: [PATCH 02/12] docs: add NEAR blockchain documentation file --- resources/near-blockchain.mdx | 182 ++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 resources/near-blockchain.mdx diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx new file mode 100644 index 0000000..f0c4919 --- /dev/null +++ b/resources/near-blockchain.mdx @@ -0,0 +1,182 @@ +--- +title: "NEAR Blockchain" +description: "Request Network's support for NEAR Protocol including native and fungible token payments" +--- + +## Overview + +Request Network supports payments on NEAR Protocol, a sharded, proof-of-stake blockchain that offers unique capabilities compared to EVM-compatible chains. NEAR's architecture enables more complex smart contract interactions through asynchronous callbacks and cross-contract calls. + + +NEAR support is currently available through the **Request Network SDK only**. The Request Network API does not support NEAR blockchain interactions. + + +## Key Differences from EVM Chains + +NEAR Protocol has several important architectural differences that affect how payments work: + + + + Unlike EVM chains where transactions are atomic, NEAR supports **asynchronous callbacks** that can span multiple transactions or blocks. This enables more complex payment flows but requires different handling. + + + + NEAR uses human-readable account names (like `alice.near`) instead of hex addresses. Smart contracts are deployed to named accounts and can be upgraded by their owners. + + + + + + To receive NEP-141 fungible tokens, accounts must first register with the token contract and pay a small storage deposit (~0.00125 NEAR) to cover storage costs. + + + + NEAR uses a different gas model with TGas (TeraGas) units. Payment transactions typically require 50-400 TGas depending on complexity. + + + +## Supported Payment Types + +### Native NEAR Payments + +Direct payments using NEAR's native token through the payment proxy smart contract. + +**Features:** +- ✅ Direct NEAR token transfers with payment references +- ✅ Fee collection support +- ✅ Payment detection and indexing +- ⚠️ Contract is locked (non-upgradable) per NEAR Foundation requirements + +### Fungible Token Payments (NEP-141) + +Payments using NEAR's fungible token standard (NEP-141) equivalent to ERC-20 on Ethereum. + +**Features:** +- ✅ Support for all NEP-141 compliant tokens +- ✅ Fee collection in the same token +- ✅ Upgradable proxy contract +- ⚠️ Requires storage deposit registration + +### Native Token Conversion Payments + +Convert from fiat currencies or other tokens to NEAR native tokens during payment. + +**Features:** +- ✅ Fiat-to-NEAR conversion payments +- ✅ Oracle-based price feeds +- ✅ Maximum slippage protection +- ⚠️ Higher gas costs due to cross-contract calls + +## Smart Contract Addresses + +### Mainnet (near) + +| Payment Type | Contract Address | Status | Description | +|--------------|------------------|---------|-------------| +| **Native NEAR Payments** | `requestnetwork.near` | 🔒 Locked | Direct NEAR token payments with references | +| **Fungible Token Payments** | `pay.reqnetwork.near` | 🔄 Upgradable | NEP-141 token payments with fees | +| **Native Conversion Payments** | `native.conversion.reqnetwork.near` | 🔄 Upgradable | Fiat/token to NEAR conversions | + +### Testnet (near-testnet) + +| Payment Type | Contract Address | Status | Description | +|--------------|------------------|---------|-------------| +| **Fungible Token Payments** | `pay.reqnetwork.testnet` | 🔄 Upgradable | NEP-141 token payments with fees | +| **Native Conversion Payments** | `native.conversion.reqnetwork.testnet` | 🔄 Upgradable | Fiat/token to NEAR conversions | + + +**Contract Ownership**: Upgradable contracts are owned by `reqnetwork.near` with private keys secured in the team's credential management system. + + +## Technical Considerations + +### Asynchronous Callbacks + +NEAR's asynchronous architecture means payment transactions may require multiple blockchain interactions: + +```javascript +// Example: Fungible token payment flow +1. Call ft_transfer_call on token contract +2. Token contract calls proxy contract +3. Proxy processes payment and logs event +4. Callback confirms or reverts transaction +``` + +This differs from EVM chains where the entire payment happens in a single atomic transaction. + +### Storage Deposits + +Before receiving NEP-141 tokens, accounts must register with the token contract: + + +**Important**: Payment addresses must have sufficient storage deposit registered with the token contract. The SDK automatically checks for this requirement and will throw an error if the recipient is not properly registered. + + +**Minimum Storage Deposit**: ~0.00125 NEAR per token contract + +### Gas Considerations + +NEAR payment transactions have different gas requirements: + +| Payment Type | Typical Gas Cost | Description | +|--------------|------------------|-------------| +| **Native NEAR** | 50 TGas | Simple transfer with reference | +| **Fungible Token** | 200 TGas | Cross-contract call to token | +| **Conversion Payment** | 300-400 TGas | Multiple contract interactions | + + +Gas costs are predictable and much lower than Ethereum mainnet, typically costing fractions of a cent in USD terms. + + +## Integration Guide + +### Prerequisites + +1. **NEAR Wallet Connection**: Applications need to integrate with NEAR wallet providers +2. **SDK Installation**: Use `@requestnetwork/request-client.js` with NEAR support +3. **Account Registration**: Ensure payment recipients are registered for token contracts + +### Basic Payment Flow + +```javascript +import { RequestNetwork } from '@requestnetwork/request-client.js'; + +// Create request for NEAR native payment +const request = await requestNetwork.createRequest({ + currency: { + type: 'ETH', // NEAR native uses ETH type + value: 'NEAR', + network: 'near' + }, + expectedAmount: '1000000000000000000000000', // 1 NEAR in yoctoNEAR + paymentAddress: 'recipient.near' +}); +``` + + +For complete integration examples and SDK usage, see the [Request Network SDK Documentation](/sdk-legacy/migration-guide). + + +## Network Information + +| Network | Chain ID | Native Currency | Explorer | +|---------|----------|-----------------|----------| +| **NEAR Mainnet** | N/A | NEAR | [nearblocks.io](https://nearblocks.io) | +| **NEAR Testnet** | N/A | NEAR | [testnet.nearblocks.io](https://testnet.nearblocks.io) | + +## Limitations + + +**Current Limitations:** +- NEAR support is SDK-only (not available in Request Network API) +- Li.Fi bridge integrations do not support NEAR +- Some advanced features like batch payments are not yet implemented +- Cross-chain payments to/from NEAR require manual coordination + + +## Developer Resources + +- [NEAR Protocol Documentation](https://docs.near.org/) +- [NEP-141 Fungible Token Standard](https://nomicon.io/Standards/Tokens/FungibleToken/Core) +- [NEAR Smart Contract Source Code](https://github.com/RequestNetwork/near-contracts) +- [Request Network SDK Documentation](/sdk-legacy/migration-guide) \ No newline at end of file From b4f81037d34d99bf6a15836cfcb7bce4386c2e97 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 15:39:46 -0400 Subject: [PATCH 03/12] refactor: Rename NEAR Blockchain, from NEAR Protocol --- resources/near-blockchain.mdx | 10 +++++----- resources/supported-chains-and-currencies.mdx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx index f0c4919..78e73a1 100644 --- a/resources/near-blockchain.mdx +++ b/resources/near-blockchain.mdx @@ -1,11 +1,11 @@ --- -title: "NEAR Blockchain" -description: "Request Network's support for NEAR Protocol including native and fungible token payments" +title: "NEAR" +description: "Request Network's support for NEAR including native and fungible token payments" --- ## Overview -Request Network supports payments on NEAR Protocol, a sharded, proof-of-stake blockchain that offers unique capabilities compared to EVM-compatible chains. NEAR's architecture enables more complex smart contract interactions through asynchronous callbacks and cross-contract calls. +Request Network supports payments on NEAR, a sharded, proof-of-stake blockchain that offers unique capabilities compared to EVM-compatible chains. NEAR's architecture enables more complex smart contract interactions through asynchronous callbacks and cross-contract calls. NEAR support is currently available through the **Request Network SDK only**. The Request Network API does not support NEAR blockchain interactions. @@ -13,7 +13,7 @@ NEAR support is currently available through the **Request Network SDK only**. Th ## Key Differences from EVM Chains -NEAR Protocol has several important architectural differences that affect how payments work: +NEAR has several important architectural differences that affect how payments work: @@ -176,7 +176,7 @@ For complete integration examples and SDK usage, see the [Request Network SDK Do ## Developer Resources -- [NEAR Protocol Documentation](https://docs.near.org/) +- [NEAR Documentation](https://docs.near.org/) - [NEP-141 Fungible Token Standard](https://nomicon.io/Standards/Tokens/FungibleToken/Core) - [NEAR Smart Contract Source Code](https://github.com/RequestNetwork/near-contracts) - [Request Network SDK Documentation](/sdk-legacy/migration-guide) \ No newline at end of file diff --git a/resources/supported-chains-and-currencies.mdx b/resources/supported-chains-and-currencies.mdx index 5a1bcb8..8b29c51 100644 --- a/resources/supported-chains-and-currencies.mdx +++ b/resources/supported-chains-and-currencies.mdx @@ -382,7 +382,7 @@ Request Network uses multiple price feed sources for accurate conversions: From f82c6cf5bf094c6b5502d77ee0fe0298c4743bf7 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 16:10:19 -0400 Subject: [PATCH 04/12] docs: refine NEAR blockchain documentation with improved conversion descriptions, interactive contract tables, and payment detection info --- resources/near-blockchain.mdx | 64 +++++++++++++---------------------- 1 file changed, 24 insertions(+), 40 deletions(-) diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx index 78e73a1..5fd8302 100644 --- a/resources/near-blockchain.mdx +++ b/resources/near-blockchain.mdx @@ -31,7 +31,7 @@ NEAR has several important architectural differences that affect how payments wo - NEAR uses a different gas model with TGas (TeraGas) units. Payment transactions typically require 50-400 TGas depending on complexity. + NEAR uses a different gas model with TGas (TeraGas) units. Gas costs are predictable and much lower than Ethereum mainnet. @@ -45,7 +45,6 @@ Direct payments using NEAR's native token through the payment proxy smart contra - ✅ Direct NEAR token transfers with payment references - ✅ Fee collection support - ✅ Payment detection and indexing -- ⚠️ Contract is locked (non-upgradable) per NEAR Foundation requirements ### Fungible Token Payments (NEP-141) @@ -54,39 +53,44 @@ Payments using NEAR's fungible token standard (NEP-141) equivalent to ERC-20 on **Features:** - ✅ Support for all NEP-141 compliant tokens - ✅ Fee collection in the same token -- ✅ Upgradable proxy contract +- ✅ Payment detection and indexing - ⚠️ Requires storage deposit registration ### Native Token Conversion Payments -Convert from fiat currencies or other tokens to NEAR native tokens during payment. +Payments for requests denominated in one currency (typically fiat like USD) but paid in NEAR native tokens. On-chain oracles provide real-time price feeds to calculate the correct NEAR amount. **Features:** -- ✅ Fiat-to-NEAR conversion payments -- ✅ Oracle-based price feeds -- ✅ Maximum slippage protection -- ⚠️ Higher gas costs due to cross-contract calls +- ✅ Conversion payments denominated in USD, settled in NEAR, using oracle price feeds +- ✅ Price conversion at the moment of payment +- ✅ Payment detection and indexing ## Smart Contract Addresses ### Mainnet (near) -| Payment Type | Contract Address | Status | Description | +| Payment Type | Contract Address | Actions | Description | |--------------|------------------|---------|-------------| -| **Native NEAR Payments** | `requestnetwork.near` | 🔒 Locked | Direct NEAR token payments with references | -| **Fungible Token Payments** | `pay.reqnetwork.near` | 🔄 Upgradable | NEP-141 token payments with fees | -| **Native Conversion Payments** | `native.conversion.reqnetwork.near` | 🔄 Upgradable | Fiat/token to NEAR conversions | +| **Native NEAR Payments** | `requestnetwork.near` | [🔗](https://nearblocks.io/address/requestnetwork.near) | Direct NEAR token payments with references | +| **Fungible Token Payments** | `pay.reqnetwork.near` | [🔗](https://nearblocks.io/address/pay.reqnetwork.near) | NEP-141 token payments with fees | +| **Native Conversion Payments** | `native.conversion.reqnetwork.near` | [🔗](https://nearblocks.io/address/native.conversion.reqnetwork.near) | Fiat/token to NEAR conversions | ### Testnet (near-testnet) -| Payment Type | Contract Address | Status | Description | +| Payment Type | Contract Address | Actions | Description | |--------------|------------------|---------|-------------| -| **Fungible Token Payments** | `pay.reqnetwork.testnet` | 🔄 Upgradable | NEP-141 token payments with fees | -| **Native Conversion Payments** | `native.conversion.reqnetwork.testnet` | 🔄 Upgradable | Fiat/token to NEAR conversions | +| **Native NEAR Payments** | `dev-1631521265288-35171138540673` | [🔗](https://testnet.nearblocks.io/address/dev-1631521265288-35171138540673) | Direct NEAR token payments with references | +| **Fungible Token Payments** | `pay.reqnetwork.testnet` | [🔗](https://testnet.nearblocks.io/address/pay.reqnetwork.testnet) | NEP-141 token payments with fees | +| **Native Conversion Payments** | `native.conversion.reqnetwork.testnet` | [🔗](https://testnet.nearblocks.io/address/native.conversion.reqnetwork.testnet) | Fiat/token to NEAR conversions | + +## Payment Detection - -**Contract Ownership**: Upgradable contracts are owned by `reqnetwork.near` with private keys secured in the team's credential management system. - +Payment detection for NEAR transactions is handled through dedicated subgraphs: + +- **NEAR Mainnet**: [Request Payments Near Subgraph](https://thegraph.com/explorer/subgraphs/9yEg3h46CZiv4VuSqo1erMMBx5sHxRuW5Ai2V8goSpQL?view=Query&chain=arbitrum-one) +- **NEAR Testnet**: [Request Payments Near Testnet Subgraph](https://thegraph.com/explorer/subgraphs/AusVyfndonsMVFrVzckuENLqx8t6kcXuxn6C6VbSGd7M?view=Query&chain=arbitrum-one) + +These subgraphs index payment events and transaction data to enable efficient payment detection and status tracking. ## Technical Considerations @@ -116,16 +120,8 @@ Before receiving NEP-141 tokens, accounts must register with the token contract: ### Gas Considerations -NEAR payment transactions have different gas requirements: - -| Payment Type | Typical Gas Cost | Description | -|--------------|------------------|-------------| -| **Native NEAR** | 50 TGas | Simple transfer with reference | -| **Fungible Token** | 200 TGas | Cross-contract call to token | -| **Conversion Payment** | 300-400 TGas | Multiple contract interactions | - -Gas costs are predictable and much lower than Ethereum mainnet, typically costing fractions of a cent in USD terms. +NEAR uses a TGas (TeraGas) unit system and gas costs are predictable and much lower than Ethereum mainnet, typically costing fractions of a cent in USD terms. ## Integration Guide @@ -153,25 +149,13 @@ const request = await requestNetwork.createRequest({ }); ``` - -For complete integration examples and SDK usage, see the [Request Network SDK Documentation](/sdk-legacy/migration-guide). - - -## Network Information - -| Network | Chain ID | Native Currency | Explorer | -|---------|----------|-----------------|----------| -| **NEAR Mainnet** | N/A | NEAR | [nearblocks.io](https://nearblocks.io) | -| **NEAR Testnet** | N/A | NEAR | [testnet.nearblocks.io](https://testnet.nearblocks.io) | - ## Limitations **Current Limitations:** - NEAR support is SDK-only (not available in Request Network API) -- Li.Fi bridge integrations do not support NEAR +- Cross-chain payments to/from NEAR are not supported - Some advanced features like batch payments are not yet implemented -- Cross-chain payments to/from NEAR require manual coordination ## Developer Resources From 0bb578a92a8cfbbaabfbbfb96beb3cb1c1c75730 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 16:13:22 -0400 Subject: [PATCH 05/12] refactor: tweak wording --- resources/near-blockchain.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx index 5fd8302..f1cc91f 100644 --- a/resources/near-blockchain.mdx +++ b/resources/near-blockchain.mdx @@ -61,8 +61,8 @@ Payments using NEAR's fungible token standard (NEP-141) equivalent to ERC-20 on Payments for requests denominated in one currency (typically fiat like USD) but paid in NEAR native tokens. On-chain oracles provide real-time price feeds to calculate the correct NEAR amount. **Features:** -- ✅ Conversion payments denominated in USD, settled in NEAR, using oracle price feeds -- ✅ Price conversion at the moment of payment +- ✅ Conversion payments denominated in USD, settled in NEAR +- ✅ Price conversion at the moment of payment, using onchain price feeds - ✅ Payment detection and indexing ## Smart Contract Addresses From b8d6c41dace98d56bbc43a7fc8feed3385226142 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 16:30:33 -0400 Subject: [PATCH 06/12] feat: add interactive copy and explorer buttons to NEAR contract addresses using reusable React components --- resources/near-blockchain.mdx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx index f1cc91f..cbd9372 100644 --- a/resources/near-blockchain.mdx +++ b/resources/near-blockchain.mdx @@ -3,6 +3,8 @@ title: "NEAR" description: "Request Network's support for NEAR including native and fungible token payments" --- +import { CopyButton, ExternalLinkButton } from "/snippets/contract-buttons.jsx" + ## Overview Request Network supports payments on NEAR, a sharded, proof-of-stake blockchain that offers unique capabilities compared to EVM-compatible chains. NEAR's architecture enables more complex smart contract interactions through asynchronous callbacks and cross-contract calls. @@ -71,17 +73,17 @@ Payments for requests denominated in one currency (typically fiat like USD) but | Payment Type | Contract Address | Actions | Description | |--------------|------------------|---------|-------------| -| **Native NEAR Payments** | `requestnetwork.near` | [🔗](https://nearblocks.io/address/requestnetwork.near) | Direct NEAR token payments with references | -| **Fungible Token Payments** | `pay.reqnetwork.near` | [🔗](https://nearblocks.io/address/pay.reqnetwork.near) | NEP-141 token payments with fees | -| **Native Conversion Payments** | `native.conversion.reqnetwork.near` | [🔗](https://nearblocks.io/address/native.conversion.reqnetwork.near) | Fiat/token to NEAR conversions | +| **Native NEAR Payments** | `requestnetwork.near` | | Direct NEAR token payments with references | +| **Fungible Token Payments** | `pay.reqnetwork.near` | | NEP-141 token payments with fees | +| **Native Conversion Payments** | `native.conversion.reqnetwork.near` | | Fiat/token to NEAR conversions | ### Testnet (near-testnet) | Payment Type | Contract Address | Actions | Description | |--------------|------------------|---------|-------------| -| **Native NEAR Payments** | `dev-1631521265288-35171138540673` | [🔗](https://testnet.nearblocks.io/address/dev-1631521265288-35171138540673) | Direct NEAR token payments with references | -| **Fungible Token Payments** | `pay.reqnetwork.testnet` | [🔗](https://testnet.nearblocks.io/address/pay.reqnetwork.testnet) | NEP-141 token payments with fees | -| **Native Conversion Payments** | `native.conversion.reqnetwork.testnet` | [🔗](https://testnet.nearblocks.io/address/native.conversion.reqnetwork.testnet) | Fiat/token to NEAR conversions | +| **Native NEAR Payments** | `dev-1631521265288-35171138540673` | | Direct NEAR token payments with references | +| **Fungible Token Payments** | `pay.reqnetwork.testnet` | | NEP-141 token payments with fees | +| **Native Conversion Payments** | `native.conversion.reqnetwork.testnet` | | Fiat/token to NEAR conversions | ## Payment Detection From 72073f7ce8178ee7dc4c27af7b479abbcbc06468 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 16:33:01 -0400 Subject: [PATCH 07/12] fixup! feat: add interactive copy and explorer buttons to NEAR contract addresses using reusable React components --- snippets/contract-buttons.jsx | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 snippets/contract-buttons.jsx diff --git a/snippets/contract-buttons.jsx b/snippets/contract-buttons.jsx new file mode 100644 index 0000000..850738b --- /dev/null +++ b/snippets/contract-buttons.jsx @@ -0,0 +1,40 @@ +export const CopyButton = ({ text, title = "Copy Address" }) => { + const copyToClipboard = () => { + navigator.clipboard.writeText(text).then(() => { + console.log(`Copied ${text} to clipboard!`); + }).catch(err => { + console.error("Failed to copy: ", err); + }); + }; + + return ( + + ); +}; + +export const ExternalLinkButton = ({ href, title = "View on Block Explorer" }) => { + return ( + + + + + + + + ); +}; \ No newline at end of file From 819e213eb3b9b441f5c3f58f7c5262259f490abc Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 16:49:54 -0400 Subject: [PATCH 08/12] feat: implement working interactive copy and explorer buttons with Request Network brand colors - Add functional copy-to-clipboard and external link buttons for NEAR contract addresses - Use CSS-based hover/focus/active states with Request Network teal (#01B089) - Horizontal button layout with proper spacing using flexbox - Simplified React components without hooks for better Mintlify compatibility - Enhanced user experience with smooth transitions and visual feedback --- resources/near-blockchain.mdx | 12 +++++----- snippets/contract-buttons.jsx | 42 +++++++++++++++++++++++++++++------ 2 files changed, 41 insertions(+), 13 deletions(-) diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx index cbd9372..62ecf1b 100644 --- a/resources/near-blockchain.mdx +++ b/resources/near-blockchain.mdx @@ -73,17 +73,17 @@ Payments for requests denominated in one currency (typically fiat like USD) but | Payment Type | Contract Address | Actions | Description | |--------------|------------------|---------|-------------| -| **Native NEAR Payments** | `requestnetwork.near` | | Direct NEAR token payments with references | -| **Fungible Token Payments** | `pay.reqnetwork.near` | | NEP-141 token payments with fees | -| **Native Conversion Payments** | `native.conversion.reqnetwork.near` | | Fiat/token to NEAR conversions | +| **Native NEAR Payments** | `requestnetwork.near` |
| Direct NEAR token payments with references | +| **Fungible Token Payments** | `pay.reqnetwork.near` |
| NEP-141 token payments with fees | +| **Native Conversion Payments** | `native.conversion.reqnetwork.near` |
| Fiat/token to NEAR conversions | ### Testnet (near-testnet) | Payment Type | Contract Address | Actions | Description | |--------------|------------------|---------|-------------| -| **Native NEAR Payments** | `dev-1631521265288-35171138540673` | | Direct NEAR token payments with references | -| **Fungible Token Payments** | `pay.reqnetwork.testnet` | | NEP-141 token payments with fees | -| **Native Conversion Payments** | `native.conversion.reqnetwork.testnet` | | Fiat/token to NEAR conversions | +| **Native NEAR Payments** | `dev-1631521265288-35171138540673` |
| Direct NEAR token payments with references | +| **Fungible Token Payments** | `pay.reqnetwork.testnet` |
| NEP-141 token payments with fees | +| **Native Conversion Payments** | `native.conversion.reqnetwork.testnet` |
| Fiat/token to NEAR conversions | ## Payment Detection diff --git a/snippets/contract-buttons.jsx b/snippets/contract-buttons.jsx index 850738b..61c2539 100644 --- a/snippets/contract-buttons.jsx +++ b/snippets/contract-buttons.jsx @@ -11,30 +11,58 @@ export const CopyButton = ({ text, title = "Copy Address" }) => { ); }; export const ExternalLinkButton = ({ href, title = "View on Block Explorer" }) => { return ( - window.open(href, '_blank', 'noopener,noreferrer')} title={title} - className="inline-flex items-center justify-center w-8 h-8 text-gray-600 hover:text-blue-600 dark:text-gray-400 dark:hover:text-blue-400 transition-colors rounded hover:bg-gray-100 dark:hover:bg-gray-700" + className="inline-flex items-center justify-center w-8 h-8 text-gray-600 dark:text-gray-400 transition-all duration-300 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 active:scale-95 focus:outline-none focus:ring-2 focus:ring-opacity-50 no-underline contract-button" + style={{ + '--primary-color': '#01B089' + }} > - + + ); }; \ No newline at end of file From 1aa2f355ae212b34adc768031f30d5d227ab87d8 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 16:56:07 -0400 Subject: [PATCH 09/12] refactor: Crosschain and remove SDK link --- resources/near-blockchain.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx index 62ecf1b..c6dcf12 100644 --- a/resources/near-blockchain.mdx +++ b/resources/near-blockchain.mdx @@ -156,8 +156,8 @@ const request = await requestNetwork.createRequest({ **Current Limitations:** - NEAR support is SDK-only (not available in Request Network API) -- Cross-chain payments to/from NEAR are not supported -- Some advanced features like batch payments are not yet implemented +- Crosschain payments to/from NEAR are not supported +- Advanced payment types like batch payments are not implemented ## Developer Resources @@ -165,4 +165,4 @@ const request = await requestNetwork.createRequest({ - [NEAR Documentation](https://docs.near.org/) - [NEP-141 Fungible Token Standard](https://nomicon.io/Standards/Tokens/FungibleToken/Core) - [NEAR Smart Contract Source Code](https://github.com/RequestNetwork/near-contracts) -- [Request Network SDK Documentation](/sdk-legacy/migration-guide) \ No newline at end of file +- [Request Network SDK Documentation]() \ No newline at end of file From 2319195b831e4bbdc634c8fb475a262827b5dca9 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 17:14:44 -0400 Subject: [PATCH 10/12] chore: empty commit to rerun CI From c2048667610ab6efa3bee4fd97cc77a27b5783ee Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 17:24:38 -0400 Subject: [PATCH 11/12] Update resources/near-blockchain.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- resources/near-blockchain.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx index c6dcf12..b37061d 100644 --- a/resources/near-blockchain.mdx +++ b/resources/near-blockchain.mdx @@ -165,4 +165,4 @@ const request = await requestNetwork.createRequest({ - [NEAR Documentation](https://docs.near.org/) - [NEP-141 Fungible Token Standard](https://nomicon.io/Standards/Tokens/FungibleToken/Core) - [NEAR Smart Contract Source Code](https://github.com/RequestNetwork/near-contracts) -- [Request Network SDK Documentation]() \ No newline at end of file +- [Request Network SDK Documentation](https://docs.request.network/docs/SDK/introduction/) \ No newline at end of file From 2b52911b51cec2c275673968276c063f3c5eddf5 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 29 Sep 2025 17:26:04 -0400 Subject: [PATCH 12/12] fix: link --- resources/near-blockchain.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/near-blockchain.mdx b/resources/near-blockchain.mdx index b37061d..f15bcac 100644 --- a/resources/near-blockchain.mdx +++ b/resources/near-blockchain.mdx @@ -165,4 +165,4 @@ const request = await requestNetwork.createRequest({ - [NEAR Documentation](https://docs.near.org/) - [NEP-141 Fungible Token Standard](https://nomicon.io/Standards/Tokens/FungibleToken/Core) - [NEAR Smart Contract Source Code](https://github.com/RequestNetwork/near-contracts) -- [Request Network SDK Documentation](https://docs.request.network/docs/SDK/introduction/) \ No newline at end of file +- [Request Network SDK Documentation](https://docs.request.network/advanced/request-network-sdk) \ No newline at end of file