Defy Version 2.0
  • 🏁Getting Started
    • Overview
  • 🔑AUTHENTICATION
    • API Key
  • 🔄Streaming
    • What is streaming?
    • Streaming API
  • 🛡️Live AML
    • What is Live AML?
    • Live AML API
  • 🔐Security
    • Anti Money Laundering (AML)
    • Transaction Detail
  • 🏎️Travel Rule
    • What is Travel Rule?
    • Withdrawal Interactions
    • Deposit Interactions
    • E-Mail Notification
    • Status and Webhook Data
    • API Reference
  • 👩‍💻Developer Resources
    • Supported Chains
Powered by GitBook
On this page
  • Create Stream
  • Delete Stream
  • List Streamed Addresses

Was this helpful?

  1. Streaming

Streaming API

Create Stream

You can create streaming with this service. Just add address and webhook data then we will send notification to your webhook. Also if you want set your live anti money laundering tracking webhook you can set with this request (this is optional).

POST https://api.getdefy.co/v2/stream/create

Header Parameters

Name
Type
Description

apikey*

String

Service Apikey

Body Parameters

Name
Type
Description

address*

String

Wallet Address

webhook*

String

Webhook URL

aml_webhook

String

Live AML Webhook URL

{
    "code": 0,
    "message": "OK",
    "data": null
}
{
    "message": "Invalid webhook.",
    "code": 5004
}

Delete Stream

You can stop your streaming with this request. Just enter which address you want to stop.

DELETE https://api.getdefy.co/v2/stream/delete

Header Parameters

Name
Type
Description

apikey*

String

Service Apikey

Query Parameters

Name
Type
Description

address*

String

Wallet Address

{
    "code": 0,
    "message": "OK",
    "data": null
}
{
    "message": "Invalid Address.",
    "code": 5002
}

List Streamed Addresses

You can list your streaming addresses with this request.

GET https://api.getdefy.co/v2/stream/list

Query Parameters

Name
Type
Description

page

1

Page Number (Min: 1)

limit

50

Page Limit (Max: 100)

{
    "code": 0,
    "message": "OK",
    "data": [
        {
            "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae",
            "stream_webhook": "https://www.getdefy.co/webhook",
            "created_at": "2024-07-25T13:57:09.644Z",
            "has_stream": true
        },
        {
            "address": "0x03906d9ce98bbbc8b7242ecf9448a4b4d2310705",
            "stream_webhook": "https://www.getdefy.co/webhook",
            "created_at": "2024-07-20T19:10:58.834Z",
            "has_stream": true
        }
    ],
    "page_count": 138
}
{
  "message": "Error Message",
  "status": 5002
}
PreviousWhat is streaming?NextWhat is Live AML?

Last updated 9 months ago

Was this helpful?

🔄