Skip to main content
Time to read: 1 min

Pre-compiled ABIs

Here you will find the ABIs for the existing precompiled contracts in Rootstock. You will also get their addresses and a builder to use it with web3.js.

Versions​

Different versions of the package mentioned are required for different Rootstock releases.

The semantic versioning of this package doesn’t correlate to the semantic versioning of Rootstock. For each named release of the RSKj node, there will be a corresponding name version in npm.

This package's support starts with ORCHID.

Usage​

For the installation of these package you must execute in a terminal window:

npm install @rsksmart/rsk-precompiled-abis@<version>

As an example to define and use it:

  1. Include the Web3 package.
const Web3 = require('web3');
  1. Include the rsk-precompiled-abis package.
const precompiled = require('@rsksmart/rsk-precompiled-abis');
  1. Create an instance of the contract using package build method and Web3 as a parameter.

(i.e.: using the Bridge)

var bridge = precompiled.bridge.build(new Web3('http://localhost:4444'));
  1. Use a contract's method. For example, here we call getFederationAddress, and displays its result in the console.
bridge.methods.getFederationAddress().call().then(console.log);
Important

If the version to be installed is not defined in the command line, the version will correspond to the latest version in rskj releases page.

Versioning table​

Package VersionRootstock version
1.0.0-ORCHIDORCHID-0.6.2
2.0.0-WASABIWASABI-1.0.0
2.0.1-WASABIWASABI-1.0.0
3.0.0-PAPYRUSPAPYRUS-2.0.0
3.0.0-PAPYRUSPAPYRUS-2.2.0
3.0.0-IRISIRIS-3.0.0
3.1.0-IRISIRIS-3.1.0
3.2.0-IRISIRIS-3.2.0
3.3.0-IRISIRIS-3.3.0
4.0.0-HOPHOP-4.0.0
4.1.0-HOPHOP-4.1.0
4.1.1-HOPHOP-4.1.1
4.2.0-HOPHOP-4.2.0
4.3.0-HOPHOP-4.3.0
4.4.0-HOPHOP-4.4.0
5.0.0-fingerrootFINGERROOT-5.0.0
5.1.0-fingerrootFINGERROOT-5.1.0
5.2.0-fingerrootFINGERROOT-5.2.0
5.3.0-fingerrootFINGERROOT-5.3.0
5.4.0-fingerrootFINGERROOT-5.4.0
6.0.0-ARROWHEADARROWHEAD-6.0.0
6.3.0-ARROWHEADARROWHEAD-6.3.0
6.3.1-ARROWHEADARROWHEAD-6.3.1
6.4.0-ARROWHEADARROWHEAD-6.4.0
6.5.0-ARROWHEADARROWHEAD-6.5.0
Last updated on by Owanate Amachree

Feedback