https://github.com/limechain/tx-inclusion-sdk
The SDK package is designed to help the interaction with the Transaction Inclusion Contracts in order to gather all the needed data for a transaction and pass it to the contracts for verification.
https://github.com/limechain/tx-inclusion-sdk
Last synced: 6 months ago
JSON representation
The SDK package is designed to help the interaction with the Transaction Inclusion Contracts in order to gather all the needed data for a transaction and pass it to the contracts for verification.
- Host: GitHub
- URL: https://github.com/limechain/tx-inclusion-sdk
- Owner: LimeChain
- License: mit
- Created: 2023-07-03T14:50:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-10T15:19:07.000Z (almost 3 years ago)
- Last Synced: 2025-02-24T10:49:08.512Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![MIT License][license-shield]][license-url]
## Transaction Inclusion SDK
The SDK package is designed to help the interaction with the [Transaction Inclusion Contracts](https://github.com/LimeChain/tx-inclusion-contracts) in order to gather all the needed data for a transaction and pass it to the contracts for verification.
It is part of the ongoing effort of [LimeLabs](https://limelabs.tech) and [LimeChain](https://limechain.tech) to give back and contribute to the blockchain community in the form of open source tooling and public goods infrastructure.
## Usage Example
```JavaScript
import { TxInclusionSDK } from "@limechain/tx-inclusion-sdk";
const txInclusionSdk = new TxInclusionSDK(rpcUrl);
const txInclusionProof = await txInclusionSdk.getTransactionInclusionProof(txHash);
console.log(txInclusionProof);
```
Where `rpcUrl` should be RPC provider URL, for example Infura.
[license-url]: https://github.com/LimeChain/tx-inclusion-sdk/blob/main/LICENSE.txt
[license-shield]: https://img.shields.io/badge/License-MIT-green.svg