POST
/
api
/
v1
/
address
/
labels
/
batch-import
Batch Import Address Labels
curl --request POST \
  --url https://prv.explorer.biya.io/api/v1/address/labels/batch-import \
  --header 'Content-Type: application/json' \
  --data '
{
  "format": "<string>",
  "file_content_base64": "<string>",
  "import_mode": "<string>",
  "skip_errors": true,
  "chain_id": "<string>",
  "csv_format": "<string>"
}
'
{
  "code": 123,
  "message": "<string>",
  "data": {}
}

Body

application/json

BatchImportAddressLabelsRequest is the request message for batch importing address labels.

format
string

Import format: "csv" or "json" (required)

file_content_base64
string

File content as base64 encoded string

import_mode
string

Import mode: "create" (only create new), "update" (only update existing), "upsert" (create or update) Default: "upsert"

skip_errors
boolean

Skip validation errors and continue importing (default: false)

chain_id
string
csv_format
string

Response

200 - application/json

OK

通用响应结构

code
integer<int32>

响应状态码,0表示成功,非0表示失败

message
string

响应消息

data
object

响应数据(使用 Struct 类型,可以直接返回 JSON 对象,更直观)