Qtum

Qtum is a cryptocurrency that combines properties of bitcoin and ethereum. It uses a UTXO-based smart contract system with a proof-of-stake (PoS) consensus model. Qtum is designed to be suitable for use by large organizations.
Tatum supports 2 chains:

  • Mainnet - a regular live chain
  • Testnet - a chain used for testing purposes. Coins on the test chain have no value and can be obtained from a faucet, e.g. http://testnet-faucet.qtum.info/

Generate QTUM account address from Extended public key

1 credit per API call.


Generate QTUM account deposit address from Extended public key. Deposit address is generated for the specific index - each extended public key can generate up to 2^31 addresses starting from index 0 until 2^31.

SecurityX-API-Key
Request
path Parameters
xpub
required
string

Extended public key of wallet.

Example: xpub6EsCk1uU6cJzqvP9CdsTiJwT2rF748YkPnhv5Qo8q44DG7nn2vbyt48YRsNSUYS44jFCW9gwvD9kLQu9AuqXpTpM1c5hgg9PsuBLdeNncid
i
required
number

Derivation index of desired address to be generated.

Example: 0
Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/address/{xpub}/{i}
Request samples
curl -i -X GET \
  'https://api-eu1.tatum.io/v3/qtum/address/{xpub}/{i}' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "address": "0xa7673161CbfE0116A4De9E341f8465940c2211d4"
}

Generate QTUM wallet

1 credit per API call.


Tatum supports BIP44 HD wallets. Because they can generate 2^31 addresses from 1 mnemonic phrase, they are very convenient and secure. A mnemonic phrase consists of 24 special words in a defined order and can restore access to all generated addresses and private keys.
Each address is identified by 3 main values:

  • Private Key - your secret value, which should never be revealed
  • Public Key - public address to be published
  • Derivation index - index of generated address

Tatum follows BIP44 specification and generates for QTUM wallet with derivation path m/44'/2301'/0'/0. More about BIP44 HD wallets can be found here - https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki.
Generate BIP44 compatible Qtum wallet.

SecurityX-API-Key
Request
query Parameters
mnemonic
required
string <= 500 characters

Mnemonic to use for generation of extended public and private keys.

Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/wallet
Request samples
curl -i -X GET \
  'https://api-eu1.tatum.io/v3/qtum/wallet?mnemonic=string' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "mnemonic": "urge pulp usage sister evidence arrest palm math please chief egg abuse",
  • "xpub": "xpub6EsCk1uU6cJzqvP9CdsTiJwT2rF748YkPnhv5Qo8q44DG7nn2vbyt48YRsNSUYS44jFCW9gwvD9kLQu9AuqXpTpM1c5hgg9PsuBLdeNncid"
}

Get current block number

1 credit per API call.


Get QTUM current block number. This is the number of the latest block in the blockchain.

SecurityX-API-Key
Responses
200

OK

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/block/current
Request samples
curl -i -X GET \
  https://api-eu1.tatum.io/v3/qtum/block/current \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
"cdb5598c06ae670b70cd9502c6cb696cfa3bf298ac6b904892e877c364821330"

Get QTUM block by hash

1 credit per API call.


Get BSC block by block hash or block number.

SecurityX-API-Key
Request
path Parameters
hash
required
string

Block hash or block number

Example: 6470657
Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/block/{hash}
Request samples
curl -i -X GET \
  'https://api-eu1.tatum.io/v3/qtum/block/{hash}' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "hash": "0x94Ce79B9F001E25BBEbE7C01998A78F7B27D1326",
  • "confirmations": 0,
  • "size": 0,
  • "height": 0,
  • "version": 0,
  • "merkleroot": "0x94Ce79B9F001E25BBEbE7C01998A78F7B27D1326",
  • "tx": [
    ],
  • "time": 0,
  • "nonce": 0,
  • "bits": "",
  • "difficulty": "",
  • "chainwork": "",
  • "previousblockhash": "0bc6703c708cc6fc5f7caee6f967e15261c2b28fb8939a5345e783bb69348ba4",
  • "nextblockhash": "0bc6703c708cc6fc5f7caee6f967e15261c2b28fb8939a5345e783bb69348ba4",
  • "flags": "",
  • "reward": 0,
  • "isMainChain": true,
  • "minedBy": "0x94Ce79B9F001E25BBEbE7C01998A78F7B27D1326",
  • "poolInfo": { }
}

Generate QTUM Address

1 credit per API call.


Generate Address by private key

SecurityX-API-Key
Request
path Parameters
key
required
string

Private key

Example: cNR1n1EuzzaWHD7xcmAo71mwxyVV3uJUbLoamQFiXzaJhjTfCF2P
Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/address/{key}
Request samples
curl -i -X GET \
  'https://api-eu1.tatum.io/v3/qtum/address/{key}' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
"qWpEineYmtc2Ea25GqDYhvuzCjTiu5hMYA"

Generate QTUM Address

1 credit per API call.


Get UTXOS by address

SecurityX-API-Key
Request
path Parameters
address
required
string

address

Example: qWpEineYmtc2Ea25GqDYhvuzCjTiu5hMYA
Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/utxo/{address}
Request samples
curl -i -X GET \
  'https://api-eu1.tatum.io/v3/qtum/utxo/{address}' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
[
  • {
    }
]

Get QTUM Account balance

1 credit per API call.


Get QTUM account balance in QTUM tokens on an account.

SecurityX-API-Key
Request
path Parameters
address
required
string

Account address you want to get balance of

Example: qWpEineYmtc2Ea25GqDYhvuzCjTiu5hMYA
Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/account/balance/{address}
Request samples
curl -i -X GET \
  'https://api-eu1.tatum.io/v3/qtum/account/balance/{address}' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "addrStr": "qWpEineYmtc2Ea25GqDYhvuzCjTiu5hMYA",
  • "balance": 0,
  • "balanceSat": 0,
  • "totalReceived": 0,
  • "totalReceivedSat": 0,
  • "totalSet": 0,
  • "totalSentSat": 0,
  • "unconfirmedBalance": 0,
  • "unconfirmedBalanceSat": 0,
  • "unconfirmedTxApperances": 0,
  • "txApperances": 0,
  • "transactions": [
    ]
}

Get QTUM Transaction

1 credit per API call.


Get QTUM transaction by transaction hash.

SecurityX-API-Key
Request
path Parameters
hash
required
string

Transaction hash

Example: a01e2e9f715590d8b766d1bbaa9229ad92fe1da996d8680fa9ef8cccf1467dec
Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

403

Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/transaction/{hash}
Request samples
curl -i -X GET \
  'https://api-eu1.tatum.io/v3/qtum/transaction/{hash}' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "txid": "0x94Ce79B9F001E25BBEbE7C01998A78F7B27D1326",
  • "version": 0,
  • "locktime": 0,
  • "receipt": 0,
  • "vin": [
    ],
  • "vout": [
    ],
  • "confirmations": 0,
  • "time": 1626959613,
  • "valueOut": 0,
  • "valueIn": 0,
  • "fees": 0,
  • "blockhash": "0x94Ce79B9F001E25BBEbE7C01998A78F7B27D1326",
  • "blockheight": 0,
  • "isqrc20Transfer": false
}

Get QTUM Transactions by pagination

1 credit per API call.


Get QTUM paginated transactions by address.

SecurityX-API-Key
Request
path Parameters
address
required
string

Address

Example: qWpEineYmtc2Ea25GqDYhvuzCjTiu5hMYA
query Parameters
pageSize
required
number

pageSize

Example: pageSize=20
offset
required
number

offset

Example: offset=0
Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

403

Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.

500

Internal server error. There was an error on the server during the processing of the request.

get/v3/qtum/transactions/address/{address}
Request samples
curl -i -X GET \
  'https://api-eu1.tatum.io/v3/qtum/transactions/address/{address}?pageSize=20&offset=0' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "pagesTotal": 150,
  • "txns": [
    ]
}

Broadcast signed QTUM transaction

2 credits per API call.


Broadcast signed transaction to QTUM blockchain. This method is used internally from Tatum KMS, Tatum Middleware or Tatum client libraries. It is possible to create custom signing mechanism and use this method only for broadcasting data to the blockchian.

SecurityX-API-Key
Request
Request Body schema: application/json
txData
required
string [ 1 .. 500000 ] characters

Raw signed transaction to be published to network.

signatureId
string <uuid> = 36 characters

ID of prepared payment template to sign. Required only, when broadcasting transaction signed by Tatum KMS.

Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

403

Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.

500

Internal server error. There was an error on the server during the processing of the request.

post/v3/qtum/broadcast
Request samples
application/json
{
  • "txData": "62BD544D1B9031EFC330A3E855CC3A0D51CA5131455C1AB3BCAC6D243F65460D",
  • "signatureId": "1f7f7c0c-3906-4aa1-9dfe-4b67c43918f6"
}
Response samples
application/json
{
  • "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9",
  • "failed": false
}

Generate QTUM wallet

1 credit per API call.


Tatum supports BIP44 HD wallets. It is very convenient and secure, since it can generate 2^31 addresses from 1 mnemonic phrase. Mnemonic phrase consists of 24 special words in defined order and can restore access to all generated addresses and private keys.
Each address is identified by 3 main values:

  • Private Key - your secret value, which should never be revealed
  • Public Key - public address to be published
  • Derivation index - index of generated address

Tatum follows BIP44 specification and generates for Qtum wallet with derivation path defined by QTUM. More about BIP44 HD wallets can be found here - https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki. Generate BIP44 compatible QTUM wallet.

SecurityX-API-Key
Request
Request Body schema: application/json
One of:
mnemonic
required
string [ 1 .. 500 ] characters

Mnemonic to generate private key for the account of QTUM, from which the gas will be paid (index will be used).

index
required
integer <= 2147483647

derivation index of address to pay for deployment of ERC20

Responses
200

OK

400

Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.

401

Unauthorized. Not valid or inactive subscription key present in the HTTP Header.

500

Internal server error. There was an error on the server during the processing of the request.

post/v3/qtum/wallet/priv
Request samples
application/json
{
  • "mnemonic": "urge pulp usage sister evidence arrest palm math please chief egg abuse",
  • "index": 0
}
Response samples
application/json
"cNR1n1EuzzaWHD7xcmAo71mwxyVV3uJUbLoamQFiXzaJhjTfCF2P"