Skip to content

Commit

Permalink
Merge branch 'refactor/reduce-bundle-size-auth-kit' of https://github…
Browse files Browse the repository at this point in the history
….com/safe-global/safe-core-sdk into refactor/reduce-bundle-size-auth-kit
  • Loading branch information
yagopv committed Sep 7, 2023
2 parents 88839b5 + 4feb7b0 commit 631016e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guides/integrating-the-safe-core-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import SafeApiKit from '@safe-global/api-kit'
const safeService = new SafeApiKit({ chainId })
```

Using the `chainId`, we will map internally the URL to the corresponding Safe Transaction Service endpoint. If we don't have a deployment for the desired chain, then the `txServiceUrl` should be used.
Using the `chainId` is enough for chains where Safe runs a Transaction Service. For those chains where Safe doesn't run a service, use the `txServiceUrl` parameter to set the custom service endpoint.

```js
const safeService = new SafeApiKit({
Expand Down
2 changes: 1 addition & 1 deletion packages/api-kit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import SafeApiKit from '@safe-global/api-kit'

const safeService = new SafeApiKit({
chainId: 1,
// Optional. txServiceUrl should be used if no Safe deployment for the chainId
// 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'
})
```
Expand Down

0 comments on commit 631016e

Please sign in to comment.