mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-22 17:01:53 +00:00
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
![]() |
import {FluenceClient, registerServiceFunction} from "@fluencelabs/fluence";
|
||
|
import {dataAliasFunc} from "./compiled/dataAlias";
|
||
|
|
||
|
export async function dataAliasCall(client: FluenceClient) {
|
||
|
registerServiceFunction(client, "DataAlias", "get", (args: any[], _) => {
|
||
|
return {
|
||
|
peerId: "peer id str",
|
||
|
name: "name str"
|
||
|
}
|
||
|
})
|
||
|
|
||
|
const peerId = await dataAliasFunc(client)
|
||
|
console.log("PeerId: ", peerId);
|
||
|
}
|