NFT finance Leveraging Non-Fungible Tokens

PDF Publication Title:

NFT finance Leveraging Non-Fungible Tokens ( nft-finance-leveraging-non-fungible-tokens )

Previous Page View | Next Page View | Return to Search List

Text from PDF Page: 054

if (window.ethereum) { window.web3 = new Web3(window.ethereum); window.ethereum.enable(); } 1 2 3 4 Similarly to Listing 4.6, the function is exported and used by leaseActions and loanActions , respectively. The API is free of charge and we were given an API key from the OpenSea team to use it. We are also providing links to the OpenSea website to encourage our users to check out and use their marketplace. 4.2.5 Web3 services To connect to the leaseNFT and lendNFT smart contracts we are using Web3.js. It is a library that facilitates the connection to the Ethereum ecosystem. [50] Listing 4.7: Basic example of Web3 connection. First, we check if the browser is Web3 compatible and if window.ethereum exists. window.ethereum is the provider object and supports the EIP-1193 standard [57] of Ethereum provider APIs. It is compatible with the native provider of Web3 that the browser of the user has. Finally, window.ethereum.enable() asks for the permission of the user to connect to his wallet. For all the smart contract calls we use the web3.eth.Contract object, specify- ing the JSON interface of each smart contract, derived from the Application Binary Interface (ABI) of the contract. We also need to specify the address where the smart contract is deployed to and the address that makes the call. In Listing 4.8 we have an example of how a contract instance for the leaseNFT smart contract can be created. const leaseNFTContract = new web3.eth.Contract(contractInterface, CONTRACT_ADDRESS, { from: address }); 1 2 3 4 Listing 4.8: Example of contract instance. In Listing 4.9, we retrieve the list of lease offers and loan requests. In the smart contract they are both public mappings, so they can be easily accessed using their key-value pairs. First we need to call the totalLeaseOffers function to return the number. The result will be used to retrieve each element of . totalLeaseOffers allLeaseOffers 1 2 export const getAllLeaseOffers = async (address) => { const totalLeaseOffers = 52

PDF Image | NFT finance Leveraging Non-Fungible Tokens

PDF Search Title:

NFT finance Leveraging Non-Fungible Tokens

Original File Name Searched:

NFT-finance-Leveraging-Non-Fungible-Tokens.pdf

DIY PDF Search: Google It | Yahoo | Bing

NFT (Non Fungible Token): Buy our tech, design, development or system NFT and become part of our tech NFT network... More Info

IT XR Project Redstone NFT Available for Sale: NFT for high tech turbine design with one part 3D printed counter-rotating energy turbine. Be part of the future with this NFT. Can be bought and sold but only one design NFT exists. Royalties go to the developer (Infinity) to keep enhancing design and applications... More Info

Infinity Turbine IT XR Project Redstone Design: NFT for sale... NFT for high tech turbine design with one part 3D printed counter-rotating energy turbine. Includes all rights to this turbine design, including license for Fluid Handling Block I and II for the turbine assembly and housing. The NFT includes the blueprints (cad/cam), revenue streams, and all future development of the IT XR Project Redstone... More Info

Infinity Turbine ROT Radial Outflow Turbine 24 Design and Worldwide Rights: NFT for sale... NFT for the ROT 24 energy turbine. Be part of the future with this NFT. This design can be bought and sold but only one design NFT exists. You may manufacture the unit, or get the revenues from its sale from Infinity Turbine. Royalties go to the developer (Infinity) to keep enhancing design and applications... More Info

Infinity Supercritical CO2 10 Liter Extractor Design and Worldwide Rights: The Infinity Supercritical 10L CO2 extractor is for botanical oil extraction, which is rich in terpenes and can produce shelf ready full spectrum oil. With over 5 years of development, this industry leader mature extractor machine has been sold since 2015 and is part of many profitable businesses. The process can also be used for electrowinning, e-waste recycling, and lithium battery recycling, gold mining electronic wastes, precious metals. CO2 can also be used in a reverse fuel cell with nafion to make a gas-to-liquids fuel, such as methanol, ethanol and butanol or ethylene. Supercritical CO2 has also been used for treating nafion to make it more effective catalyst. This NFT is for the purchase of worldwide rights which includes the design. More Info

NFT (Non Fungible Token): Buy our tech, design, development or system NFT and become part of our tech NFT network... More Info

Infinity Turbine Products: Special for this month, any plans are $10,000 for complete Cad/Cam blueprints. License is for one build. Try before you buy a production license. May pay by Bitcoin or other Crypto. Products Page... More Info

CONTACT TEL: 608-238-6001 Email: greg@infinityturbine.com (Standard Web Page)