mirror of
https://github.com/tribufu/sdk-js
synced 2026-02-04 10:23:08 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ad1a0f1fae |
14
examples/anonymous.js
Normal file
14
examples/anonymous.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
// Copyright (c) Tribufu. All Rights Reserved.
|
||||||
|
// SPDX-License-Identifier: MIT AND Apache-2.0
|
||||||
|
|
||||||
|
import dotenv from "dotenv";
|
||||||
|
import { TribufuApi } from "../build/index.mjs";
|
||||||
|
|
||||||
|
dotenv.config();
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
const tribufu = TribufuApi.default();
|
||||||
|
console.log(await tribufu.getCurrentIpAddress());
|
||||||
|
}
|
||||||
|
|
||||||
|
main();
|
||||||
Reference in New Issue
Block a user