Fractal
  • Overview
  • Basics
    • Architecture
  • Key Concepts
    • Fractal Confluence: The EVM Layer
    • The Confluence Bridge
    • Fractal Spring: The UTXO Layer
      • Concepts
      • Technical Specifications
    • Staking
      • Overview
      • EVM Staking
        • UTXO Staking and EVM Staking
      • Consensus
      • Rewards
      • Penalties
  • Developers
    • Acquire Testnet FRA
    • EVM Tools & Tutorials
      • Contract Deployment
        • Ganache
        • Hardhat
        • Remix
        • Truffle
        • Waffle
      • The Graph
    • Developer SDKs
      • UTXO Native Chain SDK
        • Fractal Spring (UTXO Layer) SDK Installation
        • Developer Tools
          • Fractal CLI Tool
        • UTXO API Reference
          • Account
          • Keypair
          • Network
          • Asset
          • Staking
          • Transaction
          • Helpers
      • The Confluence Bridge SDK
    • EVM References
      • Metamask
      • Local Development Network Setup
      • EVM API Reference
      • Precompiled Contracts
  • Network Settings
    • Contract Addresses
    • Network Settings
  • User Guides
    • Fractal Wallet Guides
      • MetaMask
        • Download
        • Configure (Auto)
        • Configure (Manual)
      • Fractal Wallet
        • Download
        • New Wallet
        • Transfer Tokens in the Fractal Wallet
        • The Confluence Bridge
        • Adding Custom Assets to the Fractal Wallet
        • Manage Assets
      • Ledger Hardware Wallet
    • Acquire FRA
    • Explore Testnet
    • Acquire FRA (Testnet)
    • Stake FRA
    • How to Use Block Explorers
    • Bridging Tokens to Fractal
  • Validator Materials
    • Validator Setup Guides
      • System Requirements
      • Acquire a Server
      • Validator Toolbox Setup
        • New Build
        • Existing Build
        • Additional Info
      • Manual Setup
      • Automated Setup (Deprecated)
    • Upgrade Guides
      • Node Upgrade (Toolbox)
      • Node Upgrade (Manual)
      • fn CLI Upgrade (Wallet)
    • Operational Guides
      • Emergency Recovery
      • Data Backup
      • CLI Staking
Powered by GitBook
On this page
  1. Developers
  2. Developer SDKs
  3. UTXO Native Chain SDK
  4. UTXO API Reference

Network

PreviousKeypairNextAsset

Last updated 1 year ago

getAbciInfo

- Get ABCI information This method is used to get ABCI information.

Parameters:

  • <string> - a wallet address

  • <NetworkAxiosConfig> - (optinal) network config

Results:

  • Promise<AbciInfoResult> - An instance of AbciInfoResult containing the response and error.

Example:

const data = "0x12345d";

// Get ABCI information
const acbiInfo = await Network.getAbciInfo(data);

getAbciNoce

- Get ABCI Noce This method is used to get ABCI Noce.

Parameters:

  • <string> - a wallet address

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<AbciNoceResult> - An instance of AbciNoceResult containing the response and error.

const data = "0x12345d";

// Get ABCI Noce
const acbiNoce = await Network.getAbciNoce(data);

- Get information of given type of asset token This method is used to get information of given type of asset token

  • <string> - asset code

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<AssetTokenDataResult> - An instance of AssetTokenDataResult containing the response and error.

const data = "0x12345d";

// Get ABCI Noce
const acbiNoce = await Network.getAbciNoce(data);

- Get datails of given block This method is used to get details of given block.

  • <number> - block Height

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<BlockDetailsDataResult> - An instance of BlockDetailsDataResult containing the response and error.

const blockHeight = 1432;// Get block #1432 detailsconst blockDetail = await Network.getBlock(blockHeight);

- Get the delegation information This method is used to get the delegation information.

  • <string> - public key

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<DelegateInfoDataResult> - An instance of DelegateInfoDataResult containing the response and error.

const publickey = "qsedx23rtgds";

// Get the delegation information
const blockDetail = await Network.getDelegateInfo(publickey);

- Get transaction details This method is used to get details of transaction with given hash

  • <string> - transaction hash

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<HashSwapDataResult> - An instance of HashSwapDataResult containing the response and error.

const hash = `YOUR_TX_HASH`;

// Get transaction details of given hash
const txDetail = await Network.getHashSwap(hash);

- Get information of issued records for given public key This method is used to get information of issued records for given public key

  • <string> - public key

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<IssuedRecordDataResult> - An instance of IssuedRecordDataResult containing the response and error.

const publickey = `publickeyexample`;

// Get issed records information
const issuedRecords = await Network.getIssuedRecords(publickey);

- Get Sids owned by given address This method is used to get Sids owned by given address

  • <string> - wallet address

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<OwnedSidsDataResult> - An instance of OwnedSidsDataResult containing the response and error.

const address = `frabhhjsswerf`;

// Get Sids' information
const ownedSids = await Network.getOwnedSids(address);

- Get the owner memo by given UTXO sid This method is used to get owner memo by given UTXO sid

  • <number> - UTXO sid

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<OwnerMemoDataResult> - An instance of OwnerMemoDataResult containing the response and error.

const utxoSid = 143;

// Get owner memo
const ownerMemo = await Network.getOwnerMemo(utxoSid);

- Returns state commitment An important property of a Fractal ledger is the ability to authenticate transactions. Users can authenticate transactions against a small tag called the state commitment. The state commitment is a commitment to the current state of the ledger. The state commitment response is a tuple containing the state commitment and the state commitment version.

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<StateCommitmentDataResult> - An instance of StateCommitmentDataResult containing the response and error.

// Get state commitment
const stateCommitment = await Network.getStateCommitment();

- Returns transaction status Using the transaction handle, user can fetch the status of the transaction from the query server.

  • <string> - transaction handle (hash)

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<TransactionStatusDataResult> - An instance of TransactionStatusDataResult containing the response and error.

const handle = `YOUR_TX_HASH`;

// Get transaction status
const transactionStatus = await Network.getTransactionStatus(handle);

- Returns transaction details Using the transaction handle, user can fetch the details of the transaction from the query server.

  • <string> - transaction handle (hash)

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<TxDetailsDataResult> - An instance of TxDetailsDataResult containing the response and error.

const handle = `YOUR_TX_HASH`;

// Get transaction details
const transactionDetails = await Network.getTransactionDetails(handle);

- Get a list of transactions for given wallet address This method is used to get a list of transactions for given wallet address

  • <string> - wallet address

  • <"to"|"from"> - transaction type. it can only be "to" or "from"

  • <number> - pagination. Default is 1.

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<TxListDataResult> - An instance of TxListDataResult containing the response and error.

const address = `fra000xxsr`;
const type = "to";

// Get list of `to` transaction of given address
const txDetail = await Network.getTxList(address, type);

- Get UTXO ledger for given utxo sid This method is used to get UTXO ledger for given UTXO sid

  • <number> - UTXO SID

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<UtxoDataResult> - An instance of UtxoDataResult containing the response and error.

const utxoSid = 143;

// Get UTXO details
const utxoData = await Network.getUtxo(utxoSid);

- Get validator list This method is used to get the list of validators.

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<ValidatorListDataResult> - An instance of ValidatorListDataResult containing the response and error.

// Get validator list
const acbiInfo = await Network.getValidatorList();

- Send RPC call This method is used to send RPC call.

  • <string> - RPC url

  • <{[key: string]: any}> - payload

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<T> - The response object from RPC call.

cont url = `https://prod-testnet.prod.findora.org:8545`;
const payload = {
  method: `eth_getBlockByHash`,
  params: ['0x1af723767d06...',true],
};

// Send the RPC call to get block details by hash
const response = await Network.sendRpcCall(url,payload);

- Submit EVM transaction This method is used to submit a EVM transaction.

  • <string> - transaction hash

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<SubmitEvmTxResult> - An instance of SubmitEvmTxResult containing the response and error.

const tx = "Your_TX_Hash";

// Submit a EVM transaction
const result = await Network.submitEvmTx(tx);

- Submit transation This method is used to submit a transaction

  • <TransactionData> - (optinal) transaction data

  • <NetworkAxiosConfig> - (optinal) network config

  • Promise<SubmitTransactionDataResult> - An instance of SubmitTransactionDataResult containing the response and error.

const data = `Your_Transaction_Data`;

// Submit transaction
const txResult = await Network.submitTransaction(data);

Results:

Example:

getAssetToken

Parameters:

Results:

Example:

getBlock

Parameters:

Results:

Example:

getDelegateInfo

Parameters:

Results:

Example:

getHashSwap

Parameters:

Results:

Example:

getIssuedRecords

Parameters:

Results:

Example:

getOwnedSids

Parameters:

Results:

Example:

getOwnerMemo

Parameters:

Results:

Example:

getStateCommitment

Parameters:

Results:

Example:

getTransactionStatus

Parameters:

Results:

Example:

getTransactionDetails

Parameters:

Results:

Example:

getTxList

Parameters:

Results:

Example:

getUtxo

Parameters:

Results:

Example:

getValidatorList

Parameters:

Results:

Example:

sendRpcCall

Parameters:

Results:

Example:

submitEvmTx

Parameters:

Results:

Example:

submitTransaction

Parameters:

Results:

Example:

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​