Fusion
  • Learn and build with Fusion
  • Learn
    • Learn about Fusion
      • About Fusion
      • Fusion's vision
      • Key problems to be solved
      • How does Fusion (and AnySwap) compare?
      • Journey to Interoperability
      • Whitepaper
    • The features of Fusion
      • DCRM
        • DCRM journey
        • DCRM nodes
        • DCRM Yellow paper
      • Time lock feature
        • Infinity
        • Lock-In and Lock-Out (LILO)
        • Use-Case — Lending
        • Use-Case — Banker’s Acceptance
      • Smart contacts
        • Use cases
          • Mortgage smart contract
          • Risk-free Token Loan
          • Risk free contract market
      • Cross-chain Tokens
      • Quantum swap
      • Secure and Distributed Secret Key Sharding
      • Fusion assets and tokens
      • Ticketed Proof of Stake (TPoS)
    • Fusion blockchain
      • Short Address Notation - SAN
      • Chain data
      • FSN token
        • Uses of FSN token
        • Tokenomics
      • Gas
  • Dapps
    • Chainge finance
    • Anyswap
  • Build
    • Quick links
    • JavaScript API - web3-fusion-extend
    • JSON RPC API - fsn-rpc-api
    • Python Web3 library - web3fsnpy
    • DCRM SDK
    • Create your own FRC20
    • Github repositories
    • Developers community
  • Tutorials
    • My Fusion wallet
      • Creating a new PSN wallet
      • Generating a Short Account Number (SAN)
      • Send tokens and assets using a send function
      • Create assets
      • Quantum swaps
      • Lock-in and Lock-out feature
    • How to setup a node
    • Staking options
    • How To Setup and Use Anyswap with Metamask wallet
    • How to use MultiSwap
    • Set up DCRM Windows guide
  • Credits
Powered by GitBook
On this page
  • Getting started
  • Read the docs

Was this helpful?

  1. Build

JavaScript API - web3-fusion-extend

PreviousQuick linksNextJSON RPC API - fsn-rpc-api

Last updated 4 years ago

Was this helpful?

Getting started

web3-fusion-extend is a collection of libraries which allow you to interact with a local or remote fusion node, using a HTTP or IPC connection.

Fusion offers a radical approach to representing value within a block chain environment.

A public address contain multiple assets and balances for these assets.

An assetId is the id returned when an asset is created and actions can be performed on it.

The asset creator also has the ability to increase and decrease supply.

This enables cross chain and cross functional systems to be built that enable the interchange of assets.

Assets can also be TimeLocked. When an asset is time locked its ownership is leant for the period specified. At the end of time lock period the rights of the asset are returned to the original owner.

With the representation of assets, the need to exchange assets securely and simply becomes paramount.The Fusion protocol introduces quantumSwaps which are composed of three functions:makeSwap - tell others what you will exchange for your asset recallSwap - cancel the request for an exchange takeSwap - exchange your asset for the other parties asset listed in the make swap

This package extends the Ethereum compatible which implements the spec to support the Fusion protocol.

It’s available on npm as a node module.

Read the docs

You can read the full documentation .

JavaScript API
Generic JSON RPC
here
Npm package