首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏区块链大本营

    愁! 个人私照存哪里? 这个假冒伪劣Instagram了解下?

    IPFS 官方 js 库 ipfs-http-client。 构建用户界面的渐进式框架 Vue.js。 用于创建 vue 项目的 Vue-cli。 前端框架 Boostrap-vue。 instagram 5# install packages needed in the web application 6npm install 除了使用给定的模板项目外,还需要安装 web3 和 ipfs-http-client 1# install web3 2npm install -s web3@1.0.0-beta.37 3# install ipfs-http-client 4npm install -s ipfs-http-client 接下来你需要连接到 IPFS ,转到 contract 文件夹下的文件 ipfs.js ,从 ipfs-http-client 包中导入 IPFS ,然后在常变量 ipfs 中实例化 IPFS ,以连接到 为了演示方便,将使用 infura 的网络入口在 IPFS 中发布和获取数据,具体代码如下: 1//imports the IPFS API 2import IPFS from 'ipfs-http-client

    1.2K30发布于 2019-05-14
  • 来自专栏深入浅出区块链技术

    在Polygon网络上创建一个全栈NFT市场

    ethereum-waffle chai @nomiclabs/hardhat-waffle @nomiclabs/hardhat-ethers web3modal @openzeppelin/contracts ipfs-http-client { useState } from 'react' import { ethers } from 'ethers' import { create as ipfsHttpClient } from 'ipfs-http-client

    1.8K20编辑于 2022-05-25
  • 来自专栏深入浅出区块链技术

    在Polygon网络上构建应用的全栈开发指南

    hardhat-waffle \ ethereum-waffle chai @nomiclabs/hardhat-ethers \ web3modal @openzeppelin/contracts ipfs-http-client { useState } from 'react' import { ethers } from 'ethers' import { create as ipfsHttpClient } from 'ipfs-http-client

    2.8K31发布于 2021-09-23
  • 来自专栏AI SPPECH

    018_备份与恢复策略:构建Web3资产的坚不可摧防护网

    区块链时间戳证明:创建备份存在性证明,无需存储实际内容 去中心化保险:针对备份失败的智能合约保险 技术实现: // 使用IPFS和Filecoin存储加密备份 const IPFS = require('ipfs-http-client

    41510编辑于 2025-11-18
  • 来自专栏AI SPPECH

    011_NFT安全:数字艺术与收藏品的全方位保护策略

    IPFS在NFT中的应用 // 使用IPFS存储NFT元数据的示例 const IPFS = require('ipfs-http-client'); const fs = require('fs');

    28010编辑于 2025-11-17
领券