From 45c94e32aad3850bfcab1e6d4160d45a2e1b5982 Mon Sep 17 00:00:00 2001 From: productshiv Date: Fri, 5 Apr 2024 21:16:46 +0530 Subject: [PATCH] Algorand new method --- ...d => rpc-algorand-broadcastTransaction.md} | 0 .../rpc-algorand/rpc-algorand-getAccount.md | 58 +++++++++++++++++++ ...md => rpc-algorand-simulateTransaction.md} | 0 3 files changed, 58 insertions(+) rename v1.0/RPC Nodes/others/rpc-algorand/{broadcastTransaction.md => rpc-algorand-broadcastTransaction.md} (100%) create mode 100644 v1.0/RPC Nodes/others/rpc-algorand/rpc-algorand-getAccount.md rename v1.0/RPC Nodes/others/rpc-algorand/{simulateTransaction.md => rpc-algorand-simulateTransaction.md} (100%) diff --git a/v1.0/RPC Nodes/others/rpc-algorand/broadcastTransaction.md b/v1.0/RPC Nodes/others/rpc-algorand/rpc-algorand-broadcastTransaction.md similarity index 100% rename from v1.0/RPC Nodes/others/rpc-algorand/broadcastTransaction.md rename to v1.0/RPC Nodes/others/rpc-algorand/rpc-algorand-broadcastTransaction.md diff --git a/v1.0/RPC Nodes/others/rpc-algorand/rpc-algorand-getAccount.md b/v1.0/RPC Nodes/others/rpc-algorand/rpc-algorand-getAccount.md new file mode 100644 index 00000000..87d194d4 --- /dev/null +++ b/v1.0/RPC Nodes/others/rpc-algorand/rpc-algorand-getAccount.md @@ -0,0 +1,58 @@ +--- +title: "getAccount" +slug: "rpc-algorand-getAccount" +excerpt: "Algorand RPC" +category: 65c5e93c623cad004b45d505 +hidden: false +metadata: + description: "Algorand RPC" + image: [] + keywords: "algorand, rpc" + robots: "index" +createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)" +updatedAt: "Tue Apr 02 2024 08:40:59 GMT+0000 (Coordinated Universal Time)" +--- +[block:html]{"html":"
\n
Archive Method
\n

Only on the full archive nodes. Complex queries might take longer and incur additional cost

\n
"}[/block]\n +### How to use it + +```typescript +// Import required libraries and modules from Tatum SDK +import { TatumSDK, AlgorandIndexer, Network } from '@tatumio/tatum'; + +// Initialize the Tatum SDK for Algorand +const tatum = await TatumSDK.init({ network: Network.ALGORAND_INDEXER }); + +// Define the input parameters as an object +const accountAddress = { address: 'ALGORAND_ACCOUNT_ADDRESS' }; // Replace with the Algorand account address you want to retrieve information for. + +// Retrieve account information using the Algorand Indexer +const accountInfo = await tatum.rpc.getAccount(accountAddress); + +// Log the account information +console.log('Algorand Account Information:', accountInfo); + +// Always destroy the Tatum SDK instance when done to stop any background processes +await tatum.destroy(); +``` + +### Overview + +The `getAccount` method allows you to retrieve detailed information about a specific Algorand account based on its account address. + +### Example Use Cases + +1. **Account Balance**: Developers can use this method to check the balance of a specific Algorand account by providing its address. + +2. **Account Details**: Retrieve various details of an Algorand account, including its transactions, assets, and more, for further analysis. + +### Request Parameters + +The `getAccount` method requires the following parameter: + +- `account-address` (string, required): The Algorand account address for which you want to retrieve account information. + +### Return Object + +The method returns an object representing the detailed information of the specified Algorand account, including various parameters. + +Please note that the structure of the returned object may change in different Algorand RPC versions. \ No newline at end of file diff --git a/v1.0/RPC Nodes/others/rpc-algorand/simulateTransaction.md b/v1.0/RPC Nodes/others/rpc-algorand/rpc-algorand-simulateTransaction.md similarity index 100% rename from v1.0/RPC Nodes/others/rpc-algorand/simulateTransaction.md rename to v1.0/RPC Nodes/others/rpc-algorand/rpc-algorand-simulateTransaction.md