Skip to main content



The core functions of Redspot include Redspot runtime environment, compiling contracts, running tests and running scripts. Other functions, such as the test suite with the contract, contract interaction, access to the contract, and configuration of different chains, are all provided by the plug-in, and you can choose the plug-ins according to your needs.


The way to introduce a plug-in is very simple, add it as a dependency of npm in package.json, and then add it in redspot.config.ts. The example is as follows.

import { RedspotUserConfig } from 'redspot/types';import '@redspot/patract'; // introduce the @redspot/patract pluginimport '@redspot/chai'; // import @redspot/chai pluginexport default { ...} as RedspotUserConfig;

You can also manually install it, for example

$ yarn add @redspot/chai

Add this to your redspot.config.ts:

import '@redspot/chai'

The following plug-ins are now included.