website logo
⌘K
Rage Trade
Delta Neutral GMX
ETH Perp
T&C + Privacy
Additional Resources
Docs powered by archbee 
10min

SDK

The sdk contains provides easy access to ethers.Contract objects for the protocol contracts (with address as per the network connected) along with typescript typings. It also contains some util functions. The sdk is used in frontend app and bot scripts.

You can view the SDK on GitHub.

Installation

NPM

Shell
|


Yarn

Shell
|


Usage

Core Contracts

TypeScript
|


Vault Contracts

TypeScript
|


Utils

TypeScript
|


REPL

For quick debugging, ragetradesdk is available as a cli, which starts a Node.js REPL with the sdk available under the sdk namespace.

Shell
|




Updated 03 Mar 2023
Did this page help you?
Yes
No
UP NEXT
Subgraph
Docs powered by archbee 
TABLE OF CONTENTS
Installation
NPM
Yarn
Usage
Core Contracts
Vault Contracts
Utils
REPL