-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48e2acc
commit 1140cea
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(async () => { | ||
const { Erc20TokenServiceBuilder } = require('@eidoo/hybrid-exchange-sdk').factories | ||
|
||
const tokenAddress = '0x9727e2fb13f7f42d5a6f1a4a9877d4a7e0404d6a' | ||
const personalWalletAddress = '0xcf4b07a79b5d29988f488f30c4a676ecaad35c02' | ||
|
||
const erc20TokenServiceBuilder = new Erc20TokenServiceBuilder(tokenAddress) | ||
const erc20TokenService = erc20TokenServiceBuilder.build() | ||
const assetBalance = await erc20TokenService.getBalanceOfAsync( | ||
personalWalletAddress, | ||
) | ||
console.log('allowance: ', assetBalance) | ||
})() |