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
getBalanceByAddress
Fetch the native balance of a wallet
This function returns all the wallets for the specified user (bearer token)
1
venlyConnect
.
api
.
getBalanceByAddress
(
"MATIC"
,
"0xA5dC4fb59eBCaf00100C00776b45c3E4b58c6B95"
);
Copied!
Signature
1
venlyConnect
.
api
.
getBalanceByAddress
(
secretType
:
SecretType
,
walletAddress
:
string
)
:
Promise
<
WalletBalance
>
Copied!
Returns
1
Promise
<
WalletBalance
>
Copied!
Parameters
Parameter
Required
Description
secretType
True
Parameter to indicate on which chain the token balance should be fetched
walletAddress
True
The address of the wallet to fetch balance for
Example
1
venlyConnect
.
api
.
getBalanceByAddress
(
"MATIC"
,
"0xA5dC4fb59eBCaf00100C00776b45c3E4b58c6B95"
);
Copied!
Object Types
WalletBalance
Previous
getBalance
Next
getNonfungibles
Last modified
5mo ago
Copy link
Contents
Signature
Returns
Parameters
Example
Object Types