Skip to main content

aptos-service

Functions

<dl> <dt><a href="#getChainConfig">getChainConfig()</a></dt> <dd><p>Get chain config by name</p> </dd> <dt><a href="#createClient">createClient()</a></dt> <dd><p>Create an Aptos client with fallback RPCs</p> </dd> <dt><a href="#getSupportedChains">getSupportedChains()</a></dt> <dd><p>Get supported chains</p> </dd> <dt><a href="#generateKeypair">generateKeypair()</a></dt> <dd><p>Generate a random keypair (wallet)</p> </dd> <dt><a href="#createWallet">createWallet()</a></dt> <dd><p>Create a new wallet on Aptos</p> </dd> <dt><a href="#getAccountFromHex">getAccountFromHex()</a></dt> <dd><p>Get wallet from hex private key</p> </dd> <dt><a href="#getBalance">getBalance()</a></dt> <dd><p>Get wallet balance (APT)</p> </dd> <dt><a href="#getNativeBalance">getNativeBalance()</a></dt> <dd><p>Get native token balance (APT)</p> </dd> <dt><a href="#transfer">transfer()</a></dt> <dd><p>Transfer native tokens (APT)</p> </dd> <dt><a href="#getFungibleAssetBalance">getFungibleAssetBalance()</a></dt> <dd><p>Get fungible asset balance (for newer token standard)</p> </dd> <dt><a href="#transferFungibleAsset">transferFungibleAsset()</a></dt> <dd><p>Transfer fungible assets</p> </dd> <dt><a href="#getAccountResources">getAccountResources()</a></dt> <dd><p>Get account resources</p> </dd> <dt><a href="#getTransaction">getTransaction()</a></dt> <dd><p>Get transaction by hash</p> </dd> <dt><a href="#estimateGas">estimateGas()</a></dt> <dd><p>Estimate gas for a transaction</p> </dd> <dt><a href="#getChainId">getChainId()</a></dt> <dd><p>Get chain ID</p> </dd> <dt><a href="#isValidAddress">isValidAddress()</a></dt> <dd><p>Validate address format (Aptos address)</p> </dd> <dt><a href="#fundAccount">fundAccount()</a></dt> <dd><p>Fund account (faucet - testnet/devnet only)</p> </dd> </dl>

<a name="getChainConfig"></a>

getChainConfig()

Get chain config by name

Kind: global function
<a name="createClient"></a>

createClient()

Create an Aptos client with fallback RPCs

Kind: global function
<a name="getSupportedChains"></a>

getSupportedChains()

Get supported chains

Kind: global function
<a name="generateKeypair"></a>

generateKeypair()

Generate a random keypair (wallet)

Kind: global function
<a name="createWallet"></a>

createWallet()

Create a new wallet on Aptos

Kind: global function
<a name="getAccountFromHex"></a>

getAccountFromHex()

Get wallet from hex private key

Kind: global function
<a name="getBalance"></a>

getBalance()

Get wallet balance (APT)

Kind: global function
<a name="getNativeBalance"></a>

getNativeBalance()

Get native token balance (APT)

Kind: global function
<a name="transfer"></a>

transfer()

Transfer native tokens (APT)

Kind: global function
<a name="getFungibleAssetBalance"></a>

getFungibleAssetBalance()

Get fungible asset balance (for newer token standard)

Kind: global function
<a name="transferFungibleAsset"></a>

transferFungibleAsset()

Transfer fungible assets

Kind: global function
<a name="getAccountResources"></a>

getAccountResources()

Get account resources

Kind: global function
<a name="getTransaction"></a>

getTransaction()

Get transaction by hash

Kind: global function
<a name="estimateGas"></a>

estimateGas()

Estimate gas for a transaction

Kind: global function
<a name="getChainId"></a>

getChainId()

Get chain ID

Kind: global function
<a name="isValidAddress"></a>

isValidAddress()

Validate address format (Aptos address)

Kind: global function
<a name="fundAccount"></a>

fundAccount()

Fund account (faucet - testnet/devnet only)

Kind: global function