Venly Widget
Home
Pricing
Your Wallet
Search…
Venly Widget
👋
Introduction
📦
Web3 Provider
Getting Started
Power of the Widget
Switching Networks
📦
Widget
Getting started
Initializing the widget
Retrieve user profile
Retrieve user wallets
Retrieve wallet balance
Retrieve a user account
Retrieve token balance
Retrieve non-fungible tokens
Transfer a native token
Transfer a fungible token
Transfer a non-fungible token
Execute transaction
Sign a message
Sign an EIP712 message
Call a contract
⚙️ Widget Advanced
Initializing options
Function Reference
addOnTokenRefreshCallback
authenticate
checkAuthenticated
createSigner
executeContract
executeGasTransfer
executeNftTransfer
executeTokenAssociation
executeTokenTransfer
executeTransfer
getAccount
getAllNonFungibles
getBalance
getBalanceByAddress
getNonfungibles
getNonfungiblesByAddress
getProfile
getTokenBalance
getTokenBalanceByAddress
getTokenBalances
getTokenBalancesByAddress
getTransactionStatus
getWallet
getWallets
importWallet
linkWallets
logout
manageWallets
readContract
unlink
signEip712
signMessage
Object Reference
🌊
Deep Dive
Authentication
Chain specific fields
Environments & networks
Powered By
GitBook
getTokenBalance
Fetch the balance of a specific token (ERC20 standard) on a specific wallet
This function returns the token balance for a specified token. Token needs to be based on the ERC20 standard, this included for example ERC20, VIP180, TRC20, ...
1
venlyConnect
.
api
.
getTokenBalance
(
"d91b644a-076f-44bf-ae90-29251df19784"
,
"0xB8c77482e45F1F44dE1745F52C74426C631bDD52"
);
Copied!
Signature
1
venlyConnect
.
api
.
getTokenBalance
(
walletId
:
string
,
tokenAddress
:
string
)
:
Promise
<
TokenBalance
>
Copied!
Returns
1
Promise
<
TokenBalance
>
Copied!
Parameters
Parameter
Required
Description
walletId
True
Wallet ID of the wallet you want to fetch the balance of
tokenAddress
True
Address of the token contract
Example
1
venlyConnect
.
api
.
getTokenBalance
(
"d91b644a-076f-44bf-ae90-29251df19784"
,
"0xB8c77482e45F1F44dE1745F52C74426C631bDD52"
);
Copied!
Object Types
TokenBalance
Previous
getProfile
Next
getTokenBalanceByAddress
Last modified
8mo ago
Copy link
Contents
Signature
Returns
Parameters
Example
Object Types