Create history subscription V2

Description

  • Description: Create history subscription

  • Path: https://api.blockin.ai/v2/subscribe/history/wallet/add

  • Encoding: UTF-8

  • Method: HTTPS POST

Request Headed

Parameter
Type
Required
Description

Content-Type

String

Y

application/json

AccessKey

String

Y

AccessKey

Request Parameters

Parameter
Type
Required
Description

subscriber

String

Y

Subscriber

address_list

List

N

The list of the address that user subscribed

Address_list Content

Parameter
Type
Required
Description

type

String

Y

Type: USER , TOKEN

address

String

Y

Address

alias

String

N

Alias of address

chain_names

String

N

If it's not filled in means all chains. Multiple chains are separated by commas. eg: eth, bsc, arb.

value

String

N

Value type tier

1๏ผšv<=1000u,

2๏ผš1000u<v<=10000u,

3๏ผš 10000u<v<100000u,

4๏ผš100000u<v<=1000000u

5๏ผšv>1000000u

type = TOKEN is required

token_list

List

N

Token is configurable when type is "USER"

protocol_list

List

N

List of protocol

start_dnd

String

N

Do not disturb time start (eg:20:00:00)

end_dnd

String

N

Do not disturb time end (eg: 08:00:00)

Token_list Content

Parameter
Type
Required
Description

chain_name

String

Y

Chain name

token

String

Y

Token address

Protocol_list Content

Parameter
Type
Required
Description

chain_name

String

Y

Chain name

protocol

String

Y

Response

Parameter
Type
Required
Description

success

Boolean

Y

Success Boolean

data

Object

N

Response data

error_code

String

N

Error code

error_msg

String

N

Error message

Request and Response Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X POST "https://api.blockin.ai/v2/subscribe/history/wallet/add" -d'{Request json}'

Last updated