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
There is no need to call functions for interacting with payment channels, because they are automatically
195
+
managed by the SDK. But anyway you can use them if you want.
196
+
173
197
#### Open channel with the specified amount of funds and expiration
174
198
175
199
`open_channel()`[[1]](#1-this-method-uses-a-call-to-a-paid-smart-contract-function) opens a payment channel with the specified amount of AGIX tokens in cogs and expiration time.
Concurrent (prepaid) calls allow you to prepay for a batch of service calls in advance. This off-chain strategy is ideal for scenarios requiring high throughput and low latency. Unlike regular paid calls, the payment is done once upfront, and the SDK automatically manages the channel during usage.
236
+
Concurrent (prepaid) calls allow you to prepay for a batch of service calls in advance. This off-chain strategy
237
+
is ideal for scenarios requiring high throughput and low latency. Unlike regular paid calls, the payment is done
238
+
once upfront, and the SDK automatically manages the channel during usage.
213
239
214
-
To use concurrent prepaid calls, specify the `concurrent_calls` parameter when creating a service client:
240
+
If you want to use prepaid calls you will need to choose `PaymentStrategyType.PREPAID_CALL` as the payment strategy type
241
+
as well as pass the number of concurrent calls as the `concurrent_calls` parameter. Creating a service client with
0 commit comments