For the complete documentation index, see llms.txt. This page is also available as Markdown.

Miningpool API

Basic Information

Interface Address

● Method for obtaining the key

a. Log in to the official website and go to the “Account Management” to find the “Access Key” option. After obtaining it, please make sure to keep your private key secure.

● Online Environment

a. Official website online:https://api.spiderpool.com/

Description

● H、KH、MH、GH、TH、PH、EH,Hashrate units differ by 1000

Attention

● All interfaces are requested using private key signing and public key verification

● Unified request format

{
    "dataJson": "", 
    "accessKey": "", 
    "timestamp": 1628381288000,
    "sign": ""
}

For example, when accessing the /v2/addUser interface

● Unified return format

code="SUCCESS" indicates a successful operation; any other responses indicate failure.

● Request Example

API

Create Subaccount

API Permissions: [Write API]

Request AUTH

POST /v2/subaccount/createSubaccount

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency, e.g. btc,fb

subaccount

String

true

-

Subaccount (5-20 lowercase alphanumeric characters)

walletAddress

String

false

-

Wallet address (please fill in the address that complies with the chain environment)

  • Successful Response:

  • Error Response:

Modify Subaccount

API Permissions: [Write API]

Request AUTH

POST /v2/subaccount/modifyWalletAddress

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency, e.g.,btc,eth,fb

subaccount

String

true

-

Subaccount name

newWalletAddress

String

true

-

New wallet address(please fill in the address that complies with the rules according to the chain environment))

  • Correct Response:

  • Error response:

Observer Pattern

API Permissions: [Write API]

Request AUTH

POST /v2/subaccount/subAccountObserverLink

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g. btc,fb

subaccount

String

true

-

Subaccount name

type

String

true

-

Type:newSign for adding、resetSign for resetting、deleteSign deleting

  • Correct Response:

  • Error Response:

Get Subaccount list

API Permissions: [Read API]

Request AUTH

POST /v2/sp/subaccount/list

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

  • Correct Response:

Get Subaccount pagination List - With hashrate

API Permissions: [Read API]

Request AUTH

POST /v2/sp/subaccount/pageWithHashRate

Parameters

Name
Type
Required
Default
Description

coin

String

false

-

Currency abbreviation, e.g.,btc

subaccount

String

false

-

Subaccount name,Supports fuzzy query

showStatus

Integer

false

1

0: Hide subaccounts,1: Show

pageNumber

Integer

false

1

Page number

pageSize

Integer

false

10

page Size

  • Correct Response:

Get Subaccount Profit Detail Information

API Permissions: [Read API]

Request AUTH

(The scheduled task starts at 4:30, it is recommended to fetch data after 5:30)

POST /v2/subaccount/getSubaccountProfitDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

startTimestamp

Integer

false

0

Query start timestamp (seconds)

endTimestamp

Integer

false

Current time Query end timestamp (seconds)

pageNumber

Integer

false

1

Page number

pageSize

Integer

false

10

Number of entries per page

bizType

String

false

alone_mining

Business type (used by FB coin). alone_mining: single mining; join_mining: joint mining

  • Correct Response:

Get Subaccount Payment Record

API Permissions: [Read API]

Request AUTH

POST /v2/subaccount/getSubaccountPaymentRecord

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g., btc

subaccount

String

true

-

Subaccount name

startTimestamp

Integer

false

0

Query start timestamp (milliseconds)

endTimestamp

Integer

false

currentTime

Query end timestamp (milliseconds)

pageNumber

Integer

false

1

Page number

pageSize

Integer

false

10

Number of entries per page

  • Correct Response:

Get Subaccount Profit Information

API Permissions: [Read API]

Request AUTH

POST /v2/subaccount/getSubaccountProfitInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

bizType

String

false

alone_mining

Business type (used by FB coin). alone_mining: single mining; join_mining: joint mining

  • Successful Response:

Get Subaccount Day Profit Information

API Permissions: [Read API]

Request AUTH

POST /v2/sp/subaccount/getDayProfitDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeStamp

int

true

UTC+0

bizType

String

false

alone_mining

Business type (used by FB coin). alone_mining: single mining; join_mining: joint mining

  • Successful Response:

Get Subaccount Hour Profit Information

API Permissions: [Read API]

Request AUTH

POST /v2/sp/subaccount/getHourProfitDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeStamp

int

true

UTC+0

  • Successful Response:

Get Main Account Realtime Hashrate

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/user/realHashRate

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

  • Successful Response:

Get Subaccount Realtime Hashrate

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/subaccount/realHashRate

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount Name

  • Successful Response:

Get Subaccount Full Hashrate

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/subaccount/fullHashRate

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount Name

  • Successful Response:

Get Subaccount Hashrate chart

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/subaccount/hashRateChart

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeLevel

String

false

day_30

hour_24:24 hour for 10-minute data day_7:7 day for 1-hour data day_30:30 day for 1-day data day_90:90 day for 1-day data

  • Successful Response:

Get Subaccount historical Hashrate chart

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/subaccount/timeRangeHashRateChart

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeLevel

String

false

day

day:Day-level data,Data for the past year hour:Hourly level data,Data for the past 30 days

startTimestamp

Long

true

start timestamp

endTimestamp

Long

true

end timestamp

  • Successful Response:

Get Subaccount online/offline workers count

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/subaccount/onOffLineWorkerCount

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

  • Successful Response:

Get Subaccount workers list

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/worker/list

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

workerName

String

false

-

worker name, supporting fuzzy query

sortField

String

false

worker_name

worker_name minute_hash_rate day_hash_rate day_stale_rate day_reject_rate share_time

sortRule

String

false

asc

asc desc

status

String

false

-

online offline

pageNum

Integer

false

1

page number

pageSize

Integer

false

10

page size

  • Successful Response:

Get Subaccount Worker Hashrate Chart

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/worker/hashRateChart

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

workerName

String

true

worker name

timeLevel

String

false

day_30

hour_24:24 hour for 10-minute data day_7:7 day for 1-hour data day_30:30 day for 1-day data day_90:90 day for 1-day data

  • Successful Response:

Get Subaccount Worker Daily Share Number

API Permissions: [Read API]

Request

POST /v2/sp/hashrate/worker/dailyShareCount

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeStamp

int

true

-

UTC+0

pageNum

Integer

false

1

page number

pageSize

Integer

false

10

page size,max 1000

  • Successful Response:

Get Priority on-chain Fees

API Permissions: [Read API]

Request

POST /v2/sp/txPriorityChain/getChainingFee

Parameters

Name
Type
Required
Default
Description

txHash

String

true

tx hash

informEmail

String

true

User email

coin

String

true

btc fb

  • Successful Response:

Priority on-chain

API Permissions: [Write API]

Request

POST /v2/sp/txPriorityChain/submit

Parameters

Name
Type
Required
Default
Description

coin

String

true

btc fb

txHash

String

true

tx hash

informEmail

String

true

User email

curTxSize

Integer

true

tx size

totalFee

BigDecimal

true

Actual fees paid

  • Successful Response:

Get Priority on-chain Order List

API Permissions: [Read API]

Request

POST /v2/sp/txPriorityChain/queryOrderPage

Parameters

Name
Type
Required
Default
Description

pageNumber

Integer

true

pageNumber

pageSize

Integer

true

pageSize

  • Successful Response:

Get Priority on-chain Order Detail

API Permissions: [Read API]

Request

POST /v2/sp/txPriorityChain/orderDetail

Parameters

Name
Type
Required
Default
Description

txHash

String

true

tx hash

  • Successful Response:

Get Priority on-chain Account Info

API Permissions: [Read API]

Request

POST /v2/sp/txPriorityChain/accountInfo

Parameters

Name
Type
Required
Default
Description

  • Successful Response:

broadcastTransaction

API Permissions: [Write API]

Request

POST /v2/sp/txPriorityChain/submitRawTransaction

Parameters

Name
Type
Required
Default
Description

coin

String

true

btc

rawTransactionList

List

true

rawTransactionList

isPrivate

bool

false

false

Private transactions are not broadcast to other nodes

  • Successful Response:

IncomeDistributeUserList

API Permissions: [Read API]

Request

POST /v2/sp/incomeDistribute/userList

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

  • Successful Response:

IncomeDistributeDelete

API Permissions: [Write API]

Request

POST /v2/sp/incomeDistribute/delete

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

toSubAccount

String

true

subaccount that accept income

  • Successful Response:

AddIncomeDistribute

API Permissions: [Write API]

Request

POST /v2/sp/incomeDistribute/insert

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

toSubAccount

String

true

subaccount that accept income

allocationMode

Integer

false

1

allocation mode, 0=amount, 1=percentage

amount

String

false

amount(amount pattern is required)

percentage

String

false

percentage: 0.01-100(percentage pattern is required)

remark

String

false

max length: 20

  • Successful Response:

UpdateIncomeDistribute

API Permissions: [Write API]

Request

POST /v2/sp/incomeDistribute/update

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

toSubAccount

String

true

subaccount that accept income

allocationMode

Integer

false

1

allocation mode, 0=amount, 1=percentage

amount

String

false

amount(amount pattern is required)

percentage

String

false

percentage: 0.01-100(percentage pattern is required)

remark

String

false

max length: 20

  • Successful Response:

IncomeDistribute-RemainingPercent

API Permissions: [Read API]

Request

POST /v2/sp/incomeDistribute/remainingPercent

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

  • Successful Response:

IncomeDistribute-QueryTransferIncomeRecorder

API Permissions: [Read API]

Request

POST /v2/sp/incomeDistribute/transferIncome

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

timestamp

Integer

true

UTC+0 0 o'clock second-level timestamp

  • Successful Response:

Deprecate API

The following AP ls are to be deprecated.If you are still using them, please follow the instructions to switch to the corresponding new interfaces.

Get Subaccount Information

Deprecated. Please use Get Subaccount pagination List - With hashrate

Request AUTH

POST /v2/subaccount/getSubaccountInfo

Parameters

Name
Type
Required
Default
Description

coin

String

false

-

Currency abbreviation, e.g.,btc,eth,fb

subaccount

String

false

-

Subaccount name

isGetSubaccountDetailInfo

Boolean

false

-

Whether to get details

  • Successful Response:

Get subaccount hashrate detailed information

Deprecated. Please use Get Subaccount Hashrate chart

REQUEST AUTH

POST /v2/subaccount/getSubaccountHashrateDetailInfo

PARAMETERS

Name
Type
Required
Default
Description

coin

String

true

-

Abbreviation of the cryptocurrency, e.g.,btc,eth,fb

subaccount

String

true

-

Subaccount name

mode

String

false

hourly

mode=hourly indicates a 24-hour chart, mode=daily indicates a 30-day chart

  • Correct response:

Get Subaccount Worker Information

Deprecated. Please use Get Subaccount workers list

Request AUTH

POST /v2/worker/getSubaccountWorkerDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc,eth,fb

subaccount

String

true

-

Subaccount name

  • Successful Response:

Get Subaccount Worker Hashrate Detailed Information

Deprecated. Please use Get Subaccount Worker Hashrate Chart

Request

POST /v2/worker/getSubaccountWorkerHashrateDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc,eth,fb

subaccount

String

true

-

Subaccount name

worker

String

true

-

Miner name

mode

String

false

hourly mode=hourlyfor 24-hour chart, mode=daily for 30-day chart (BTC only)

  • Successful Response:

getHashrate

Deprecated. Please use Get Subaccount historical Hashrate chart

Request

POST /v2/subaccount/getHashrate

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

mode

String

true

day/hour

startTimestamp

Integer

true

endTimestamp

Integer

false

  • Successful Response:

AddOrUpdateIncomeDistribute

Deprecated. Please use AddIncomeDistribute or UpdateIncomeDistribute

API Permissions: [Write API]

Request

POST /v2/sp/incomeDistribute/upsert

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

toSubAccount

String

true

subaccount that accept income

percentage

String

true

percentage: 0.01-100

remark

String

false

max length: 20

  • Successful Response:

Last updated