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
Content-Type
String
Y
application/json
AccessKey
String
Y
AccessKey
Request Parameters
subscriber
String
Y
Subscriber
address_list
List
N
The list of the address that user subscribed
Address_list Content
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
chain_name
String
Y
Chain name
token
String
Y
Token address
Protocol_list Content
chain_name
String
Y
Chain name
protocol
String
Y
Response
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