Ask or search…
⌃K
Links

Authentication

This page contains information about currently supported authentication types.
Access our RPC nodes securely by authenticating with your Tatum account through available methods listed below, ensuring a secure and personalized experience. While it is possible to connect without authentication, please note that this approach provides limited access and functionalities.

Init example via SDK

import { TatumSDK, Ethereum, Network } from '@tatumio/tatum'
​
const tatum = await TatumSDK.init<Ethereum>({
network: Network.ETHEREUM,
apiKey: { v4: 'YOU-API-KEY'}
}
)

Basic auth (with base64 encoding)

Please use following base64 format: x-api-key:<YOUR-API-KEY>
curl --location 'https://02-dallas-022-01.rpc.tatum.io'
--header 'Content-Type: application/json'
--header 'Authorization: Basic eC1...S0x'
--data '{
"jsonrpc":"2.0",
"method":"web3_clientVersion",
"params":[],
"id":67
}'

Auth Bearer

curl --location 'https://02-dallas-022-01.rpc.tatum.io'
--header 'Content-Type: application/json'
--header 'Authorization: bearer <YOUR-API-KEY>'
--data '{
"jsonrpc":"2.0",
"method":"web3_clientVersion",
"params":[],
"id":1
}'

X-API-Key set as a user header

curl --location 'https://02-dallas-022-01.rpc.tatum.io'
--header 'Content-Type: application/json'
--user 'x-api-key:<YOUR-API-KEY>'
--data '{
"jsonrpc":"2.0",
"method":"web3_clientVersion",
"params":[],
"id":1
}'
curl --location 'https://02-dallas-022-01.rpc.tatum.io'
--header 'Content-Type: application/json'
--header 'x-api-key:<YOUR-API-KEY>'
--data '{
"jsonrpc":"2.0",
"method":"web3_clientVersion",
"params":[],
"id":1
}'

X-API-Key as a part of URL

curl --location 'https://x-api-key:<YOUR-API-KEY>@02-dallas-022-01.rpc.tatum.io'
--header 'Content-Type: application/json'
--data '{
"jsonrpc":"2.0",
"method":"web3_clientVersion",
"params":[],
"id":1
}'
© Tatum Technology, LLC