Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2022 08:03
What would you like to do?
unidata.js of koa-ts
import { Get, JsonController } from 'routing-controllers'
import { Service } from 'typedi'
import Unidata, { Assets } from 'unidata.js'
const unidata = new Unidata()
export class UnidateController {
// http://localhost:3000/api/unidate
async unidate() {
const assets: Assets = await unidata.assets.get({
source: 'Ethereum NFT',
identity: '0xC8b960D09C0078c18Dcbe7eB9AB9d816BcCa8944',
providers: ['OpenSea'],
return { message: 'pong' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment