## Get Current Block

`tronWeb.trx.getCurrentBlock();`

_Returns the current block on the **FullNode**._

## Get Block

`tronWeb.trx.getBlock(12345);`

_Gets a block by height/ID. If none is provided, it returns the default block._

ValueDescription
blockID or height for the block.

## Get Block By Hash

`tronWeb.trx.getBlockByHash("0000000000038809c59ee8409a3b6c051e369ef1096603c7ee723c16e2376c73");`

_Gets a block by block hash._

ValueDescription
block HashHash of block.

## Get Block By Number

`tronWeb.trx.getBlockByNumber(12345);`

_Gets a block by height or ID._

ValueDescription
blockID or height for the block.

## Get Block Transaction Account

`tronWeb.trx.getBlockTransactionCount(12345);`

_Gets the count of transactions within a block._

ValueDescription
blockID or height for the block.

## Get Transaction From Block

`tronWeb.trx.getTransactionFromBlock(12345);`

_Gets the array of transactions from a block, if there are any._

ValueDescription
blockID or height for the block.

## Get Transaction

`tronWeb.trx.getTransaction("67af8c693f88146999ffa2748331aa0dae980a14bb553f4798ef37d7bed799ee");`

_Gets a transaction by transaction ID._

ValueDescription
transaction hashHash of the transaction.

## Get Transaction Info

`tronWeb.trx.getTransactionInfo("0ab16c340e85d52c1179aceca5133e711a5850f4ea42d5bac2e8929a3330551d");`

_Gets the details for a transaction, including the fees and virtual machine events for a transaction._

ValueDescription
transaction hashHash of transaction.

## Get Transactions to Address

`tronWeb.trx.getTransactionsToAddress("TNDFkUNA2TukukC1Moeqj61pAS53NFchGF", 30, 0);`

_Gets all the confirmed transactions sent to an address. This will not return any unconfirmed transactions._

ValueDescription
addressAddress to query.
limitLimit amount of returned tx.
offsetOffset to return from.

## Get Transactions from Address

`tronWeb.trx.getTransactionsFromAddress("TNDFkUNA2TukukC1Moeqj61pAS53NFchGF", 30, 0);`

_Gets the transactions sent from an address._

ValueDescription
addressAddress to query.
limitLimit the number of returned tx.
offsetOffset to return from.

## Get Transactions Related

`tronWeb.trx.getTransactionsRelated("TNDFkUNA2TukukC1Moeqj61pAS53NFchGF", "all", 30, 0);`

_Gets all transactions involving a specified address._

ValueDescription
addressAddress to query from.
directionThe specified direction of transactions.
limitLimit the number of returned tx.
offsetOffset to start from.

## Get Account

`tronWeb.trx.getAccount("TNDFkUNA2TukukC1Moeqj61pAS53NFchGF");`

_Get account from address._

ValueDescription
AddressAddress of account.

## Get Balance

`tronWeb.trx.getBalance("TNDFkUNA2TukukC1Moeqj61pAS53NFchGF");`

_Get balance from address._

ValueDescription
AddressAddress of account.

## Get Bandwidth

`tronWeb.trx.getBandwidth("TNDFkUNA2TukukC1Moeqj61pAS53NFchGF");`

_Get bandwidth from address._

ValueDescription
AddressAddress of account.

## Get Tokens Issued By Address

`tronWeb.trx.getTokensIssuedByAddress("TNDFkUNA2TukukC1Moeqj61pAS53NFchGF");`

_Get tokens issued by address._

ValueDescription
AddressAddress of account.

## Get Token From ID

`tronWeb.trx.getTokenFromID("WIN");`

_Get Token From ID_

ValueDescription
Token IDID of token.

## List Nodes

`tronWeb.trx.listNodes();`

_List all nodes on the network._

## Get Block Range

`tronWeb.trx.getBlockRange(10,20);`

_Get block range._

ValueDescription
Minimum BlockMinimum block height or ID in the range.

## List Super Representatives

`tronWeb.trx.listSuperRepresentatives();`

_List all super representatives on the network._

## Time Until Next Vote Cycle

`tronWeb.trx.timeUntilNextVoteCycle();`

_Get time until next vote cycle._

## Get Contract

`tronWeb.trx.getContract("TNDFkUNA2TukukC1Moeqj61pAS53NFchGF");`

_Returns the details of the contract at the specified address._

ValueDescription
Contract AddressAddress of contract.

## Sign

**Important:** Do not use this in any web / user-facing applications. This will expose the private key.

`tronWeb.trx.sign(transaction = [...], "abc...gdfsgdf");`

_Signs a provided transaction object._

## Send Raw Transaction

`tronWeb.trx.sendRawTransaction(signedTransaction = [...]);`

_Broadcasts a signed raw transaction to the network._

## Send Transaction

**Important:** Do not use this in any web / user-facing applications. This will expose the private key.

`tronWeb.trx.sendTransaction("TXPHCzmAmjyERtWES6EXTYqUPfJfQSzp2m", 100, "abc...gdfsgdf");`

_Sends TRX from one address to another. Will create and broadcast the transaction if a private key is provided._

Column Title
Column Title
AddressTo account.
AmountAmount you want to send.
Private KeyPrivate key of account to sign transaction.

## Send Token

**Important:** Do not use this in any web / user-facing applications. This will expose the private key.

`tronWeb.trx.sendTransaction("TXPHCzmAmjyERtWES6EXTYqUPfJfQSzp2m", 100, "WIN", "abc...gdfsgdf");`

_Sends TRX from one address to another. Will create and broadcast the transaction if a private key is provided._

ValueDescription
AddressTo account.
AmountAmount you want to send.
TokenID of token.
Private KeyPrivate key of account to sign transaction.

## Get Account Resources

`tronWeb.trx.getAccountResources("TXPHCzmAmjyERtWES6EXTYqUPfJfQSzp2m");`

_Get resources from account._

ValueDescription
AddressAddress of account.