Software developer tools that facilitate the interaction with the Safe contracts and services.
Title | Description |
---|---|
Integrating the Safe Core SDK | This guide shows how to use the Protocol Kit and API Kit. |
Package | Release | Description |
---|---|---|
api-kit | Safe Transaction Service API client library | |
auth-kit | Typescript library to create an Ethereum address and authenticating a blockchain account using an email address, social media account, or traditional crypto wallets like Metamask | |
onramp-kit | Typescript library that allows users to buy cryptocurrencies using a credit card and other payment options | |
protocol-kit | TypeScript library that facilitates the interaction with the Safe contracts | |
relay-kit | | Library to abstract transaction fees payment (gas fees), allowing the use of native tokens or ERC-20 |
safe-core-sdk-types | Common types extracted from the Safe Core SDK packages | |
safe-ethers-adapters | Ethers adapter that facilitates the interaction with the Safe Services |
This project includes a playground with a few scripts that can be used as a starting point to use the Safe Core SDK. These scripts do not cover all the functionality exposed by the SDK, but each of them present steps of the Safe transaction flow.
Update the config inside the scripts and execute the following commands to run each step:
yarn play deploy-safe
yarn play propose-transaction
yarn play confirm-transaction
To execute a transaction:
yarn play execute-transaction
To execute a transaction using a relay:
yarn play relay-paid-transaction
To execute a sponsored transaction using a relay:
yarn play relay-sponsored-transaction