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
transfer = wallet1.transfer(0.00001, "usdc", wallet3, gasless=True).wait()
156
157
```
157
158
159
+
By default, gasless transfers are batched with other transfers, and might take longer to submit. If you want to opt out of batching, you can set the `skip_batching` option to `True`, which will submit the transaction immediately.
160
+
161
+
```python
162
+
transfer = wallet1.transfer(0.00001, "usdc", wallet3, gasless=True, skip_batching=True).wait()
A webhook is a way to provide other applications with real-time information from the blockchain. When an event occurs on a blockchain address, it can send a POST request to a URL you specify. You can create a webhook to receive notifications about events that occur in your wallet or crypto address, such as when a user makes a transfer.
251
+
243
252
```python
244
253
from cdp.client.models.webhook import WebhookEventType
245
254
from cdp.client.models.webhook import WebhookEventFilter
@@ -252,10 +261,13 @@ wh1 = Webhook.create(
252
261
)
253
262
print(wh1)
254
263
```
264
+
255
265
In the above example, parameter `network_id` is optional, if not provided, the default network is `base-sepolia`. Today we support Base mainnet and Base Sepolia networks.
256
266
257
267
### Creating a Webhook On A Wallet
268
+
258
269
A webhook can be attached to an existing wallet to monitor events that occur on the wallet, i.e. all addresses associated with this wallet. A list of supported blockchain events can be found [here](https://docs.cdp.coinbase.com/get-started/docs/webhooks/event-types).
270
+
259
271
```python
260
272
import cdp
261
273
@@ -265,9 +277,9 @@ print(wh1)
265
277
```
266
278
267
279
## Examples
280
+
268
281
Examples, demo apps, and further code samples can be found in the [CDP SDK Python Documentation](https://docs.cdp.coinbase.com/cdp-apis/docs/welcome).
269
282
270
283
## Contributing
271
284
272
285
See [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
0 commit comments