Skip to content

Latest commit

 

History

History
 
 

guides

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Guide: Integrating the Safe Core SDK

What is Safe

Read about the basics of Safe and how it compares to other solutions here.

Safe Core SDK

The Safe Core SDK is a monorepo that contains software developer tools that allows interaction with the Safe contracts and the Safe Transaction Service.

In this guide we will use the following packages to deploy new Safes, create transactions, collect off-chain signatures and execute transactions:

  • safe-core-sdk-types

    Contains the types that are shared among the different packages inside the monorepo.

  • safe-core-sdk

    Offers most of the functionality of the Safe contracts. This library only interacts with the Safe contracts and every action then happens on-chain. Among others, it allows for actions such as:

    • Deploy new Safes
    • Get Safe information from the contracts (nonce, threshold, owners, modules, etc.)
    • Build Safe transaction objects that can be executed or batched
    • Approve Safe transactions on-chain
    • Execute Safe transactions once they have the required confirmations

    Check the complete API reference for more details.

  • safe-service-client

    Consumes the Safe Transaction Service API. This library only interacts with this service and every action performed with it happens off-chain. Among others, it allows to execute actions like:

    • Get information of a Safe
    • Store a Safe transaction to allow for signature collection from owners
    • Add signatures to stored transactions
    • Get the transaction history of a Safe (and filter by pending, incoming, multisig transactions, etc.)
    • Get balances, list of tokens, etc.

    Check the complete API reference for more details.

Prerequisites

We'll assume that you are familiar with TypeScript (JavaScript), Ethereum and have node.js and npm installed.

Help

If you need help, you can reach Safe developers in the #safe-developers channel at https://chat.gnosis-safe.io/ or create a discussion at https://github.com/safe-global/safe-core-sdk/discussions.

Let's jump into the guide: Integrating the Safe Core SDK