{
"data": {
"reder.near": {
"widget": {
"UnrealEnginePlugin": "return (\r\n <div>\r\n <h1>Unreal Engine 5 Plugin for NEAR Protocol</h1>\r\n <br></br>\r\n <p>\r\n Unreal Engine Near Plugin is a plugin that contains the basic\r\n functionality for interaction of Unreal Engine games with the Near\r\n Protocol blockchain (mainnet and testnet). To use the plugin, place it in\r\n the Plugins folder of your project and start the integration server. You\r\n can read more about the launch in the README.MD of the project.\r\n <a href=\"https://github.com/Red-Pirates/near-plugin-ue\">{`Project link`}</a>\r\n </p>\r\n <p>The project consists of two parts:</p>\r\n <ul>\r\n <li>\r\n An integration backend code (server) written in Node.js that interacts\r\n with the Near blockchain using near-api-js library.\r\n </li>\r\n <li>\r\n A UE5 plugin that sends HTTP requests to the server and receives\r\n responses from it. Below is a diagram illustrating the interaction\r\n between project layers.\r\n </li>\r\n </ul>\r\n\r\n <br></br>\r\n <h2>NEAR NODE.JS API</h2>\r\n <p>NEAR NODE.JS API contains the following functions:</p>\r\n <table cellpadding=\"7\" border=\"2\" width=\"100%\">\r\n <tr>\r\n <th>URL</th>\r\n <th>Description</th>\r\n </tr>\r\n <tr>\r\n <td>POST /accounts</td>\r\n <td>Create a new child account</td>\r\n </tr>\r\n <tr>\r\n <td>GET /accounts/:accountId/balance</td>\r\n <td>Get wallet balance by accountId</td>\r\n </tr>\r\n <tr>\r\n <td>GET /accounts/:accountId/state</td>\r\n <td>Get account state</td>\r\n </tr>\r\n <tr>\r\n <td>GET /accounts/:accountId/details</td>\r\n <td>Get account details</td>\r\n </tr>\r\n <tr>\r\n <td>GET /accounts/:accountId/transactions/:txHash</td>\r\n <td>Get transaction details</td>\r\n </tr>\r\n <tr>\r\n <td>GET /ft-contracts/:contractId/accounts/:accountId/balance</td>\r\n <td>\r\n Get the balance of all the fungible tokens owned by the account and\r\n the contract\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>GET /ft-contracts/:contractId/meta</td>\r\n <td>Get fungible token contract metadata</td>\r\n </tr>\r\n <tr>\r\n <td>GET /ft-contracts/:contractId/total-supply</td>\r\n <td>Get the total supply of fungible tokens</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/list</td>\r\n <td>Get list of NFTs in a given contract</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/total-supply</td>\r\n <td>Get the total supply of non-fungible tokens</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/metadata</td>\r\n <td>Get non-fungible token contract metadata</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/tokens/:tokenId</td>\r\n <td>Get info about nft token</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/accounts/:accountId/list</td>\r\n <td>Get list of NFTs in a given contract for owner</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/accounts/:accountId/supply</td>\r\n <td>Get the number of NFTs owned by an account and a given contract</td>\r\n </tr>\r\n <tr>\r\n <td>GET /contracts/:contractId/login-url</td>\r\n <td>Generate a link to get restricted access to an account </td>\r\n </tr>\r\n <tr>\r\n <td>POST /contracts/transaction-url</td>\r\n <td>Generate a link to confirm a transaction</td>\r\n </tr>\r\n <tr>\r\n <td>POST /contracts/deploy</td>\r\n <td>Deploy the specified contract</td>\r\n </tr>\r\n <tr>\r\n <td>POST /contracts/view</td>\r\n <td>Get list of NFTs in a given contract for owner</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/accounts/:accountId/list</td>\r\n <td>Call the “view” method of a specific contract</td>\r\n </tr>\r\n <tr>\r\n <td>POST /contracts/call</td>\r\n <td>Call the “call” method of a specific contract</td>\r\n </tr>\r\n <tr>\r\n <td>GET /docs</td>\r\n <td>OpenApi</td>\r\n </tr>\r\n </table>\r\n <br></br>\r\n <p>\r\n To use the server, you must have the Node.js framework installed and a\r\n NEAR account. In the environment variables (.env file) you need to set the\r\n Account ID and the private key for the account and the type of network\r\n (mainnet/testnet). This account will be used to create new accounts as\r\n child accounts, as well as to call the view methods of contracts used on\r\n the server.\r\n </p>\r\n <p>\r\n To get a balance of fungible tokens, the contract passed in the parameters\r\n must support the NEP-141 and NEP-148.\r\n </p>\r\n <p>\r\n To get a list of NFTs and their number, the contract must support the\r\n NEP-181.\r\n </p>\r\n "
}
}
}
}
{
"data": {
"reder.near": {
"widget": {
"UnrealEnginePlugin": "return (\r\n <div>\r\n <h1>Unreal Engine 5 Plugin for NEAR Protocol</h1>\r\n <br></br>\r\n <p>\r\n Unreal Engine Near Plugin is a plugin that contains the basic\r\n functionality for interaction of Unreal Engine games with the Near\r\n Protocol blockchain (mainnet and testnet). To use the plugin, place it in\r\n the Plugins folder of your project and start the integration server. You\r\n can read more about the launch in the README.MD of the project.\r\n <a href=\"https://github.com/Red-Pirates/near-plugin-ue\">{`Project link`}</a>\r\n </p>\r\n <p>The project consists of two parts:</p>\r\n <ul>\r\n <li>\r\n An integration backend code (server) written in Node.js that interacts\r\n with the Near blockchain using near-api-js library.\r\n </li>\r\n <li>\r\n A UE5 plugin that sends HTTP requests to the server and receives\r\n responses from it. Below is a diagram illustrating the interaction\r\n between project layers.\r\n </li>\r\n </ul>\r\n\r\n <br></br>\r\n <h2>NEAR NODE.JS API</h2>\r\n <p>NEAR NODE.JS API contains the following functions:</p>\r\n <table cellpadding=\"7\" border=\"2\" width=\"100%\">\r\n <tr>\r\n <th>URL</th>\r\n <th>Description</th>\r\n </tr>\r\n <tr>\r\n <td>POST /accounts</td>\r\n <td>Create a new child account</td>\r\n </tr>\r\n <tr>\r\n <td>GET /accounts/:accountId/balance</td>\r\n <td>Get wallet balance by accountId</td>\r\n </tr>\r\n <tr>\r\n <td>GET /accounts/:accountId/state</td>\r\n <td>Get account state</td>\r\n </tr>\r\n <tr>\r\n <td>GET /accounts/:accountId/details</td>\r\n <td>Get account details</td>\r\n </tr>\r\n <tr>\r\n <td>GET /accounts/:accountId/transactions/:txHash</td>\r\n <td>Get transaction details</td>\r\n </tr>\r\n <tr>\r\n <td>GET /ft-contracts/:contractId/accounts/:accountId/balance</td>\r\n <td>\r\n Get the balance of all the fungible tokens owned by the account and\r\n the contract\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>GET /ft-contracts/:contractId/meta</td>\r\n <td>Get fungible token contract metadata</td>\r\n </tr>\r\n <tr>\r\n <td>GET /ft-contracts/:contractId/total-supply</td>\r\n <td>Get the total supply of fungible tokens</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/list</td>\r\n <td>Get list of NFTs in a given contract</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/total-supply</td>\r\n <td>Get the total supply of non-fungible tokens</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/metadata</td>\r\n <td>Get non-fungible token contract metadata</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/tokens/:tokenId</td>\r\n <td>Get info about nft token</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/accounts/:accountId/list</td>\r\n <td>Get list of NFTs in a given contract for owner</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/accounts/:accountId/supply</td>\r\n <td>Get the number of NFTs owned by an account and a given contract</td>\r\n </tr>\r\n <tr>\r\n <td>GET /contracts/:contractId/login-url</td>\r\n <td>Generate a link to get restricted access to an account </td>\r\n </tr>\r\n <tr>\r\n <td>POST /contracts/transaction-url</td>\r\n <td>Generate a link to confirm a transaction</td>\r\n </tr>\r\n <tr>\r\n <td>POST /contracts/deploy</td>\r\n <td>Deploy the specified contract</td>\r\n </tr>\r\n <tr>\r\n <td>POST /contracts/view</td>\r\n <td>Get list of NFTs in a given contract for owner</td>\r\n </tr>\r\n <tr>\r\n <td>GET /nft-contracts/:contractId/accounts/:accountId/list</td>\r\n <td>Call the “view” method of a specific contract</td>\r\n </tr>\r\n <tr>\r\n <td>POST /contracts/call</td>\r\n <td>Call the “call” method of a specific contract</td>\r\n </tr>\r\n <tr>\r\n <td>GET /docs</td>\r\n <td>OpenApi</td>\r\n </tr>\r\n </table>\r\n <br></br>\r\n <p>\r\n To use the server, you must have the Node.js framework installed and a\r\n NEAR account. In the environment variables (.env file) you need to set the\r\n Account ID and the private key for the account and the type of network\r\n (mainnet/testnet). This account will be used to create new accounts as\r\n child accounts, as well as to call the view methods of contracts used on\r\n the server.\r\n </p>\r\n <p>\r\n To get a balance of fungible tokens, the contract passed in the parameters\r\n must support the NEP-141 and NEP-148.\r\n </p>\r\n <p>\r\n To get a list of NFTs and their number, the contract must support the\r\n NEP-181.\r\n </p>\r\n "
}
}
}
}