-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update Node sampled to latest SDK usage (#191)
- Loading branch information
1 parent
6502c5e
commit a708213
Showing
3 changed files
with
18 additions
and
30 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 |
---|---|---|
|
@@ -6,8 +6,7 @@ async function signedInSearch() { | |
let service = new TrinsicService(); | ||
let loginResponse = await service.account().login({ | ||
email: "[email protected]", | ||
ecosystemId: "", | ||
invitationCode: "", | ||
ecosystemId: "default" | ||
}); | ||
let code = | ||
rlsync.question("Enter the security code sent to your email:") ?? ""; | ||
|
@@ -22,7 +21,8 @@ async function signedInSearch() { | |
|
||
async function main() { | ||
let service = new TrinsicService(); | ||
await service.account().loginAnonymous(); | ||
const authenticationToken = await service.account().loginAnonymous("default"); | ||
console.log("Authentication token", authenticationToken) | ||
|
||
let searchResponse = await service.wallet().searchWallet(); | ||
console.log(searchResponse.items); | ||
|
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
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