Script Network Documentation
  • Getting Started Guides
    • How to Sign Up + Sign In to Script TV
    • Using the Live TV player
    • Navigating the Script TV Dashboard (Test Phase)
    • Testnet, Explorer + Creating a Wallet (Test Phase)
    • Reward System: Script Points, Zealy, Galxe + more
  • ScriptGLASS - How to mint
  • 🎬About Script Network
    • Introduction
    • Products
    • Why Script TV?
    • How it works
    • Understanding the Script Blockchain
    • Script TV + Web3
    • Market Strategy
    • Benefits
    • Comparison
  • πŸ—ΊοΈRoadmap
  • πŸͺ™Script Tokens
    • SCPT
      • Detailed SCPT Tokenomics
    • SPAY
      • πŸ’°SPAY Tokenomics
        • πŸ•ΆοΈScriptGLASS explained
          • Economics
        • Allowable/Earnable Watch Time
      • Mechanism Design of Glasses
        • Glass Types
        • Glass Payouts
          • Durability
        • Gems
        • Levels
        • Recharge Vouchers
        • Recharge Voucher Mechanism
        • Recharge Costs
        • Glass Minting
        • Game Theory
  • 🦸For Users
    • ⛓️Blockchain Integration
      • Installation guide for Script Node setup for Win , Mac and Linux
      • Build and Install
      • Run Unit Tests
      • Launch Script Node
      • Command Line Tool
      • Steps To Upgrade The Chain
      • Account/Wallet Management
      • Call Smart Contract
      • Turing-Complete Smart Contract Support
    • Basic Concept
    • Tokens
    • Script NFTs
    • Transactions
    • Script Wallet
    • Faucet (Technical)
    • Smart Contracts
  • 🌐Script Network Explorer
    • Block APIs
    • Transaction APIs
    • Account APIs
    • Stake APIs
  • πŸ”―Nodes
    • Node Token Emissions
    • Lightning Node Overview
      • Validator / Lightning Node Setup
        • Steps To Change Node Password
        • Stake to the Lightning node
    • Lightning Staking Process
      • Lightning Stake Withdrawal Process
        • Staking through Web Wallet
  • πŸ’ Validators
    • Block Settlement
    • Steps To Migrate Lightning/Validator
  • πŸ“’Edge Documentation
    • Introduction
    • What is Edge
    • How it works
    • Edge Uses
    • Possibilities with Edge
    • Edge Features
    • Benefits
    • Use Cases
  • πŸ”—Smart Contract Development
    • πŸ’» How to quickly deploy a smart contract on Script Blockchain
  • Smart Contract & App Development
    • Turing-Complete Smart Contract
    • Ethereum RPC API support
    • Setup the ETH RPC Adaptor for the Script Testnet
    • Metamask
    • Truffle
    • Hardhat
    • Remix
    • Web3.js
    • Explorer Tools for DApp Development
    • Script Blockchain SRC20 Token Integration Guide
  • πŸ“”API References
    • Metamask Script Network RPC Details (Testnet)
    • RPC API Reference
      • Examples
      • GetBlock
        • Transaction Types
        • Request
        • GetBlockByHeight
      • GetTransaction
        • GetPendingTransactions
    • Tx APIs
      • Broadcast Raw Transaction
      • BroadcastRawTransactionAsync
    • ScriptCli APIs
      • Account APIs
        • NewKey API
        • ListKeys
        • UnlockKey
        • LockKey
        • IsKeyUnlocked
      • Tx APIs
        • Send
        • Configuration for the Script Blockchain Node
  • 🀝Referrals/Network Effects
  • πŸ›‘οΈ Audits
  • πŸ“ŠScript Network Blockchain Summary
  • Disclaimer
  • Frequently Asked Question
    • To resolve the block height issue
    • Update seed peer to resolve connectivity issue
Powered by GitBook
On this page
  • GetTransaction
  • GetTransactionsByRange

Was this helpful?

  1. Script Network Explorer

Transaction APIs

GetTransaction

This API returns the details of the transaction being queried with hash.

REST Uri: /transaction/{hash}

Query Parameters

hash: the transaction hash

Returns

block_height: height of the block that contains the transaction

hash: the hash of the transaction itself

data: the details of the transaction

type: transaction type

totalTxsNumber: total number of transactions in database

timestamp: the time stamp of the block contains this block

number: the sequence number of the transaction in database

// {
 "type":"transaction",
 "body":{
 "hash":"0XF16402022FFFADA96C4BA9A78F79730903F8D99EF44D221FC5869EC4191260EC",
 "type":5,
 "data":{
 "fee":{
 "SCPTWei":"0",
 "SPAYWei":"1000000000000"
 },
 "source":{
 "address":"0x02990c3f7f75865bcd2fb28450f01065754f9372",
 "coins":{
 " SCPTWei ":"0",
 " SPAYWei ":"1150000000000000"
 },
 "sequence":"0",
 "signature":"0x66cb200ad7def6a0b4e9d377fd6a54cf19f952d089772b2dda8bd0f0927434825acec09e5c2c7aaaf9c4d18a2730786ee619a593fd49395913785aa4255e164001"
 },
 "target":{
 "address":"0x49e2268b8962a7b5680512173f2b320418003082",
 "coins":{
 " SCPTWei ":"0",
 " SPAYWei ":"0"
 },
 "sequence":"126",
 "signature":"0xdd6aecdf642a001b9ae299cf44aa5c142dac45dd58666d326870dc53670dc204548951880ebce343afb27c968bb99488c23bc9af43a60c4de6299c6242cf07ac00"
 },
 "payment_sequence":"1550282279177",
 "reserve_sequence":"178",
 "resource_id":"vidivz187ttu9eck65d"
 },
 "number":196771,
 "block_height":"30615",
 "timestamp":"1550282330"
 },
 "totalTxsNumber":196771

GetTransactionsByRange

This API returns a list of blocks given the page number and limit number.

REST Uri: /transactions/range

Query Parameters

pageNumber: the page number, 0 stands for the latest

limit: the limit size of each page

Returns

currentPageNumber: the number of current page

totalPageNumber: the total number of pages

For each transaction it is similar to the returns of the GetTransaction API.

// Request
curl 
https://explorer.script.tv
/api/transactions/range?pageNumber=1&limit=10
// Result
{
 "type":"transaction_list",
 "body":[
 {...},
 {...},
 {...},
 {...},
 {...},
 {...},
 {...},
 {...},
 {...},
 {...}
 ],
 "totalPageNumber":20354,
 "currentPageNumber":"1"
}
PreviousBlock APIsNextAccount APIs

Last updated 2 years ago

Was this helpful?

🌐