@safe-global/api-kit
Version:
SDK that facilitates the interaction with the Safe Transaction Service API
54 lines (35 loc) • 2.21 kB
Markdown
[](https://badge.fury.io/js/%40safe-global%2Fapi-kit)
[](https://github.com/safe-global/safe-core-sdk/releases)
[](https://github.com/safe-global/safe-core-sdk/blob/main/LICENSE.md)
Software development kit that facilitates the interaction with the [Safe Transaction Service API](https://github.com/safe-global/safe-transaction-service), allowing to propose and share transactions with the other signers of a Safe, sending the signatures to the service to collect them, getting information about a Safe (like reading the transaction history, pending transactions, enabled Modules and Guards, etc.), among other features.
- [Documentation](
- [Installation](
- [Quick Start](
- [Need Help or Have Questions?](
- [Contributing](
- [License](
Head to the [API Kit docs](https://docs.safe.global/sdk/api-kit) to learn more about how to use this SDK.
Install the package with yarn or npm:
```bash
yarn add @safe-global/api-kit
npm install @safe-global/api-kit
```
```js
import SafeApiKit from '@safe-global/api-kit'
const apiKit = new SafeApiKit({
chainId: 1n,
// Optional. txServiceUrl must be used to set a custom service. For example on chains where Safe doesn't run services.
txServiceUrl: 'https://safe-transaction-mainnet.safe.global'
})
```
If you have any doubts, questions, or need assistance, feel free to reach out! [Here you will find how to get support.](https://github.com/safe-global/safe-core-sdk/tree/main/SUPPORT.md)
Please read our [contribution guidelines](https://github.com/safe-global/safe-core-sdk/tree/main/CONTRIBUTING.md) before submitting any changes. We appreciate your help! 🙌
This library is [released under MIT](https://github.com/safe-global/safe-core-sdk/blob/main/LICENSE.md).