Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Api/ServiceUtilsApi

Service utils API Reference

// Set your API Keys 👇 here
$sdk = new \Tatum\Sdk();

// MainNet API Call
$sdk->mainnet()->api()->serviceUtils();

// TestNet API Call
$sdk->testnet()->api()->serviceUtils();

Methods

Method Description
freezeApiKey() Freeze API Key
getCredits() Get information about your credit consumption for the last month
getVersion() Get API version
unfreezeApiKey() Unfreeze API Key

freezeApiKey()

Example

#️⃣ Execute command in terminal

✨ php -f freezeApiKey.php

Request

PUT /v3/tatum/freeze

Type signature

(new \Tatum\Sdk())->{mainnet/testnet}()->api()->serviceUtils()->freezeApiKey()

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Description

Freeze API Key

2 credits per API call.

Freeze the API Key. It’s not possible to perform sensitive operations like send ledger transaction, send off-chain transaction, send blockchain transaction, broadcast blockchain transaction, perform Order book trade or create blockage. Only read operations are permitted.

Back to top


getCredits()

Example

#️⃣ Execute command in terminal

✨ php -f getCredits.php

Request

GET /v3/tatum/usage

Type signature

(new \Tatum\Sdk())->{mainnet/testnet}()->api()->serviceUtils()->getCredits(): \Tatum\Model\Consumption[]

Parameters

This endpoint does not need any parameter.

Return type

\Tatum\Model\Consumption[]

Description

Get information about your credit consumption for the last month

1 credit per API call

Get information about your credit consumption for the last month (used credits per day).

Back to top


getVersion()

Example

#️⃣ Execute command in terminal

✨ php -f getVersion.php

Request

GET /v3/tatum/version

Type signature

(new \Tatum\Sdk())->{mainnet/testnet}()->api()->serviceUtils()->getVersion(): \Tatum\Model\GetVersion200Response

Parameters

This endpoint does not need any parameter.

Return type

\Tatum\Model\GetVersion200Response

Description

Get API version

1 credit per API call.

Get current version of the API.

Back to top


unfreezeApiKey()

Example

#️⃣ Execute command in terminal

✨ php -f unfreezeApiKey.php

Request

DELETE /v3/tatum/freeze

Type signature

(new \Tatum\Sdk())->{mainnet/testnet}()->api()->serviceUtils()->unfreezeApiKey()

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Description

Unfreeze API Key

2 credits per API call.

Unfreeze the API Key. It’s possible to perform sensitive operations like send ledger transaction, send off-chain transaction, send blockchain transaction, broadcast blockchain transaction, perform Order book trade or create blockage again.

Back to top