# Tools

# Tezos client

  1. Install the Tezos client. See Tezos Client Installation and Setup (opens new window).
  2. Connect the Tezos client to the Chainstack-deployed Tezos node:
tezos-client --endpoint ENDPOINT config update

where

  • ENDPOINT — your node HTTPS endpoint.

See also View node access and credentials.

Example:

  • Key-protected
  • Password-protected
tezos-client --endpoint https://nd-123-456-789.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d config update
  1. Run the Tezos client commands (opens new window).

Example to get the balance of an address in tez:

$ tezos-client get balance for tz1bEQQxao8bEbvuXgh8vnSQkPJaoUvyomMP
11475.954247

# Taquito

  1. Install Taquito. See Quick Start (opens new window).
  2. Use RpcClient to connect to your Tezos node:
const { RpcClient } = require('@taquito/rpc');

async function main() {
  const client = new RpcClient('ENDPOINT');
  await client.getBlock().then((data) => {
    console.log('-- Chain ID: ', data.chain_id);
    console.log('-- Head block: ', data);
  }).catch((error) => console.log(JSON.stringify(error, null, 2)));

}

where

  • ENDPOINT — your node HTTPS endpoint.

See View node access and credentials.

Example to get the latest block information:

  • Key-protected
  • Password-protected
const { RpcClient } = require('@taquito/rpc');

async function main() {
  const client = new RpcClient('https://nd-123-456-789.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531d');
  await client.getBlock().then((data) => {
    console.log('-- Chain ID: ', data.chain_id);
    console.log('-- Head block: ', data);
  }).catch((error) => console.log(JSON.stringify(error, null, 2)));

}

# Temple wallet

  1. Install the Temple wallet (opens new window).
  2. In the wallet, click Settings > Networks.
  3. Under Add network, in the RPC base URL field, provide your Tezos node endpoint.

See also View node access and credentials.

# SmartPy

  1. Install SmartPy (opens new window).
  2. Originate your contract through a Chainstack-deployed Tezos node:
SmartPy.sh originate-contract --code CONTRACT --storage STORAGE --rpc ENDPOINT

where

  • ENDPOINT — your node HTTPS endpoint.
  • CONTRACT — your compiled contract.
  • STORAGE — your compiled contract storage.

Example:

  • Key-protected
  • Password-protected
SmartPy.sh originate-contract --code contract.tz --storage storage.tz --rpc https://nd-123-456-789.p2pify.com/3c6e0b8a9c15224a8228b9a98ca1531