Skip to content

Commit

Permalink
Removing LTC Adding Zcash
Browse files Browse the repository at this point in the history
  • Loading branch information
productshiv committed Apr 6, 2024
1 parent 64bdb11 commit 60d57fe
Show file tree
Hide file tree
Showing 27 changed files with 212 additions and 250 deletions.
8 changes: 0 additions & 8 deletions v1.0/RPC Nodes/rpc-utxo/rpc-litecoin.md

This file was deleted.

8 changes: 8 additions & 0 deletions v1.0/RPC Nodes/rpc-utxo/zcash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "Zcash"
slug: "zcash"
excerpt: ""
hidden: false
createdAt: "Sat Apr 06 2024 07:33:40 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 12:59:42 GMT+0000 (Coordinated Universal Time)"
---
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: "createrawtransaction"
slug: "rpc-litecoin-createrawtransaction"
excerpt: "Litecoin RPC"
slug: "rpc-zcash-createrawtransaction"
excerpt: "Zcash RPC"
hidden: false
metadata:
description: "Litecoin RPC"
description: "Zcash RPC"
image: []
keywords: "litecoin, rpc"
keywords: "zcash, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:04 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
---
[block:html]
{
Expand All @@ -27,9 +27,9 @@ updatedAt: "Sat Apr 06 2024 13:09:04 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

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

const tatum = await TatumSDK.init<Litecoin>({network: Network.LITECOIN})
const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.createRawTransaction([
{
Expand All @@ -50,17 +50,15 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

### Overview

The `createrawtransaction` RPC method creates an unsigned raw transaction that spends a set of previous transaction outputs to a set of new addresses with specific amounts. The method can be used to create custom transactions, which can then be signed and broadcast to the Litecoin network.

{% embed url="<https://codepen.io/tatum-devrel/pen/jOQJWpb"> %}
The `createrawtransaction` RPC method creates an unsigned raw transaction that spends a set of previous transaction outputs to a set of new addresses with specific amounts. The method can be used to create custom transactions, which can then be signed and broadcasted to the network.

### Parameters

- `inputs`: (array, required) An array of objects, each specifying a previous transaction output to spend.
- `txid`: (string, required) The transaction ID of the previous transaction output to spend.
- `vout`: (numeric, required) The index of the output to spend from the previous transaction.
- `sequence`: (numeric, optional) default=depends on the value of the 'replaceable' and 'locktime' arguments) The sequence number
- `outputs`: (object, required) An object with the key-value pairs representing the receiving address and the amount to be sent (in BTC).
- `outputs`: (object, required) An object with the key-value pairs representing the receiving address and the amount to be sent.
- `locktime`: (numeric, optional, default=0) The lock time for the transaction. It can be used to specify the earliest time or block height at which the transaction can be included in a block.
- `replaceable`: (boolean, optional, default=false) **Marks this transaction as BIP125-replaceable.** Allows this transaction to be replaced by a transaction with higher fees. If provided, it is an error if explicit sequence numbers are incompatible.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: "decoderawtransaction"
slug: "rpc-litecoin-decoderawtransaction"
excerpt: "Litecoin RPC"
slug: "rpc-zcash-decoderawtransaction"
excerpt: "Zcash RPC"
hidden: false
metadata:
description: "Litecoin RPC"
description: "Zcash RPC"
image: []
keywords: "litecoin, rpc"
keywords: "zcash, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:05 GMT+0000 (Coordinated Universal Time)"
---
[block:html]
{
Expand All @@ -27,9 +27,9 @@ updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

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

const tatum = await TatumSDK.init<Litecoin>({network: Network.LITECOIN})
const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.decodeRawTransaction("02000000013412cdab3412cdab3412cdab3412cdab3412cdab3412cdab3412cdab3412cdab0000000000fdffffff0140420f00000000001976a91462e907b15cbf27d5425399ebf6f0fb50ebb88f1888ac00000000")

Expand All @@ -42,9 +42,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

### Overview

The `decoderawtransaction` RPC method decodes a serialized (hex-encoded) raw transaction and displays its information in a human-readable format. This method is useful for inspecting raw transactions before broadcasting them to the Litecoin network or for debugging purposes.

{% embed url="<https://codepen.io/tatum-devrel/pen/ExOMPev"> %}
The `decoderawtransaction` RPC method decodes a serialized (hex-encoded) raw transaction and displays its information in a human-readable format. This method is useful for inspecting raw transactions before broadcasting them to the network or for debugging purposes.

### Parameters

Expand Down Expand Up @@ -76,7 +74,7 @@ An object containing the decoded raw transaction information:
- `hex`: (string) The hex-encoded script.
- `reqSigs`: (numeric) The required number of signatures.
- `type`: (string) The type of the script (e.g., 'pubkeyhash').
- `addresses`: (array) An array of Litecoin addresses associated with the output.
- `addresses`: (array) An array of addresses associated with the output.

### JSON Examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: "decodescript"
slug: "rpc-litecoin-decodescript"
excerpt: "Litecoin RPC"
slug: "rpc-zcash-decodescript"
excerpt: "Zcash RPC"
hidden: false
metadata:
description: "Litecoin RPC"
description: "Zcash RPC"
image: []
keywords: "litecoin, rpc"
keywords: "zcash, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 12:59:48 GMT+0000 (Coordinated Universal Time)"
---
[block:html]
{
Expand All @@ -27,9 +27,9 @@ updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

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

const tatum = await TatumSDK.init<Litecoin>({network: Network.LITECOIN})
const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.decodeScript("3044022070cc08500b2203b6ebe7c8285295bc1914a9d252504416e1cde4de4a7dc6c3c8022079af2be6db34efcf147e86a4cbf61cf9995106e5b5e95270d47c40b082052c8501")

Expand All @@ -44,8 +44,6 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

The `decodescript` RPC method decodes a serialized (hex-encoded) script and provides information about the script in a human-readable format. This method is useful for inspecting scripts for debugging purposes or for understanding their structure.

{% embed url="<https://codepen.io/tatum-devrel/pen/BaGbjOg"> %}

### Parameters

- `hex_string`: (string, required) The serialized script in hex format.
Expand All @@ -58,7 +56,7 @@ An object containing the decoded script information:
- `hex`: (string) The hex-encoded script.
- `type`: (string) The type of the script (e.g., 'pubkeyhash', 'multisig').
- `reqSigs`: (numeric, optional) The required number of signatures if the script is a multisig script.
- `addresses`: (array, optional) An array of Litecoin addresses associated with the script if applicable.
- `addresses`: (array, optional) An array of addresses associated with the script if applicable.
- `p2sh`: (string, optional) The P2SH address for this script if applicable.

### JSON Examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: "estimatesmartfee"
slug: "rpc-litecoin-estimatesmartfee"
excerpt: "Litecoin RPC"
slug: "rpc-zcash-estimatesmartfee"
excerpt: "Zcash RPC"
hidden: false
metadata:
description: "Litecoin RPC"
description: "Zcash RPC"
image: []
keywords: "litecoin, rpc"
keywords: "zcash, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:05 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
---
[block:html]
{
Expand All @@ -27,9 +27,9 @@ updatedAt: "Sat Apr 06 2024 13:09:05 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

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

const tatum = await TatumSDK.init<Litecoin>({network: Network.LITECOIN})
const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.estimateSmartFee(20)

Expand All @@ -42,12 +42,10 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

### Overview

The `estimatesmartfee` method provides an estimated fee rate (in BTC/kB) for a transaction to be confirmed within a certain number of blocks. The estimation is based on recent transactions in the Litecoin network.
The `estimatesmartfee` method provides an estimated fee rate for a transaction to be confirmed within a certain number of blocks. The estimation is based on recent transactions in the network.

This method can be useful for users or applications trying to decide on an appropriate fee for their transactions, based on the desired confirmation speed.

{% embed url="<https://codepen.io/tatum-devrel/pen/NWEJxLW"> %}

### Parameters

The `estimatesmartfee` method accepts the following parameters:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: "getbestblockhash"
slug: "rpc-litecoin-getbestblockhash"
excerpt: "Litecoin RPC"
slug: "rpc-zcash-getbestblockhash"
excerpt: "Zcash RPC"
hidden: false
metadata:
description: "Litecoin RPC"
description: "Zcash RPC"
image: []
keywords: "litecoin, rpc"
keywords: "zcash, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 12:59:44 GMT+0000 (Coordinated Universal Time)"
---
[block:html]
{
Expand All @@ -27,9 +27,9 @@ updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

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

const tatum = await TatumSDK.init<Litecoin>({network: Network.LITECOIN})
const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.getBestBlockHash()

Expand All @@ -42,9 +42,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

### Overview

`getbestblockhash` is a Litecoin RPC method that returns the hash of the best (tip) block in the longest blockchain. This method is useful for obtaining the latest block hash, which can be used to fetch block details or confirmations for transactions.

{% embed url="<https://codepen.io/tatum-devrel/pen/vYQPLOd"> %}
`getbestblockhash` is a method that returns the hash of the best (tip) block in the longest blockchain. This method is useful for obtaining the latest block hash, which can be used to fetch block details or confirmations for transactions.

### Parameters

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: "getblock"
slug: "rpc-litecoin-getblock"
excerpt: "Litecoin RPC"
slug: "rpc-zcash-getblock"
excerpt: "Zcash RPC"
hidden: false
metadata:
description: "Litecoin RPC"
description: "Zcash RPC"
image: []
keywords: "litecoin, rpc"
keywords: "zcash, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:07 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 12:59:41 GMT+0000 (Coordinated Universal Time)"
---
[block:html]
{
Expand All @@ -27,9 +27,9 @@ updatedAt: "Sat Apr 06 2024 13:09:07 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

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

const tatum = await TatumSDK.init<Litecoin>({network: Network.LITECOIN})
const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.getBlock('000000000000000000013d0a85b72c591500abe074a7f9175c596a194f67b82d')

Expand All @@ -42,9 +42,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

### Overview

`getblock` is a Litecoin RPC method that returns information about a specified block. This method is useful for obtaining block details such as the hash, height, transactions, and other metadata. It can be used for various purposes, including validating transactions, monitoring the blockchain, and analyzing the network.

{% embed url="<https://codepen.io/tatum-devrel/pen/xxQBZZg"> %}
`getblock` is a method that returns information about a specified block. This method is useful for obtaining block details such as the hash, height, transactions, and other metadata. It can be used for various purposes, including validating transactions, monitoring the blockchain, and analyzing the network.

### Parameters

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: "getblockchaininfo"
slug: "rpc-litecoin-getblockchaininfo"
excerpt: "Litecoin RPC"
slug: "rpc-zcash-getblockchaininfo"
excerpt: "Zcash RPC"
hidden: false
metadata:
description: "Litecoin RPC"
description: "Zcash RPC"
image: []
keywords: "litecoin, rpc"
keywords: "zcash, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:03 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 12:59:44 GMT+0000 (Coordinated Universal Time)"
---
[block:html]
{
Expand All @@ -27,9 +27,9 @@ updatedAt: "Sat Apr 06 2024 13:09:03 GMT+0000 (Coordinated Universal Time)"
```typescript
// yarn add @tatumio/tatum

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

const tatum = await TatumSDK.init<Litecoin>({network: Network.LITECOIN})
const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.getBlockChainInfo()

Expand All @@ -42,9 +42,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

### Overview

`getblockchaininfo` is a Litecoin RPC method that provides general information about the current state of the blockchain. This method is useful for obtaining an overview of the blockchain, including the best block hash, chain height, difficulty, and network protocol version. It can be used for various purposes, such as monitoring the blockchain, tracking network upgrades, and assessing the current mining difficulty.

{% embed url="<https://codepen.io/tatum-devrel/pen/gOQEPrd"> %}
`getblockchaininfo` is a method that provides general information about the current state of the blockchain. This method is useful for obtaining an overview of the blockchain, including the best block hash, chain height, difficulty, and network protocol version. It can be used for various purposes, such as monitoring the blockchain, tracking network upgrades, and assessing the current mining difficulty.

### Parameters

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "getblockcount"
slug: "rpc-litecoin-getblockcount"
excerpt: "Litecoin RPC"
slug: "rpc-zcash-getblockcount"
excerpt: "Zcash RPC"
hidden: false
metadata:
description: "Litecoin RPC"
description: "Zcash RPC"
image: []
keywords: "litecoin, rpc"
keywords: "zcash, rpc"
robots: "index"
createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)"
updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
Expand All @@ -25,11 +25,11 @@ updatedAt: "Sat Apr 06 2024 13:09:06 GMT+0000 (Coordinated Universal Time)"
{% code overflow="wrap" lineNumbers="true" %}

```typescript
// yarn add @@tatumio/tatum
// yarn add @tatumio/tatum

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

const tatum = await TatumSDK.init<Litecoin>({network: Network.LITECOIN})
const tatum = await TatumSDK.init<ZCash>({network: Network.ZCASH})

const result = await tatum.rpc.getBlockCount()

Expand All @@ -42,9 +42,7 @@ await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

### Overview

`getblockcount` is a Litecoin RPC method that returns the number of blocks in the local best blockchain. This method is useful for obtaining the current height of the blockchain, which can be used for various purposes, such as monitoring the blockchain, determining the number of confirmations for a transaction, or assessing the progress of the blockchain's growth.

{% embed url="<https://codepen.io/tatum-devrel/pen/ExOMPKN"> %}
`getblockcount` is a method that returns the number of blocks in the local best blockchain. This method is useful for obtaining the current height of the blockchain, which can be used for various purposes, such as monitoring the blockchain, determining the number of confirmations for a transaction, or assessing the progress of the blockchain's growth.

### Parameters

Expand Down
Loading

0 comments on commit 60d57fe

Please sign in to comment.