serverbanner

Rostrum Electrum for Bitcoin Cash

Overview

The server.banner method retrieves the server's banner message. This is typically used to display server-specific messages or announcements to users.

Parameters

No parameters are required for this method.

Returns

Upon a successful request, the server responds with its current banner message. The response's result field contains a string with the banner message.

Example Result

{
  "banner": "Welcome to Rostrum Electrum Server! Stay up to date with the latest Bitcoin Cash news at our site."
}

Request Example

curl --location 'https://api.tatum.io/v3/blockchain/node/rostrum-mainnet/' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {API_KEY}' \
--data '{
    "method": "server.banner",
    "params": [],
    "id": 1,
    "jsonrpc": "2.0"
}'
// yarn add @tatumio/tatum

import { TatumSDK, Rostrum, Network } from '@tatumio/tatum'

const rostrum = await TatumSDK.init<RostrumElectrum>({ network: Network.ROSTRUM_MAINNET })

const serverBanner = await tatum.rpc.getServerBanner()

console.log(serverBanner)

await rostrum.destroy() // Destroy Tatum SDK - needed for stopping background jobs