You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/reference-sdk-api-kit/constructor.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ const apiKit = new SafeApiKit({
61
61
62
62
-**Type:**`string`
63
63
64
-
A custom Safe Transaction Service URL that is not supported by default.
64
+
The URL of the Safe Transaction Service. This can be provided instead of `apiKey` to specify a custom Transaction Service endpoint, such as when running your own Safe Transaction Service instance.
The API key for the Safe Transaction Service. This parameter is mandatory when using default Safe provided services. It can be omitted if using a custom Transaction Service. [Check how to get one](/core-api/how-to-use-api-keys).
172
+
173
+
```typescript focus=5
174
+
const safeClient =awaitcreateSafeClient({
175
+
provider,
176
+
signer,
177
+
safeAddress: '0x...',
178
+
apiKey: 'YOUR_API_KEY'
179
+
})
180
+
```
181
+
182
+
### `txServiceUrl` (Optional)
183
+
184
+
-**Type:**`string`
185
+
186
+
The URL of the Safe Transaction Service. This can be provided instead of `apiKey` to specify a custom Transaction Service endpoint, such as when running your own Safe Transaction Service instance.
0 commit comments