zerion-sdk
Version:
A Typed Interface for ZerionAPI
49 lines (48 loc) • 1.01 kB
TypeScript
import { Links } from "./common";
export interface GetChainsResponse {
links: Links;
data: ChainData[];
}
export interface ChainData {
type: string;
id: string;
attributes: ChainAttributes;
relationships: Relationships;
links: Links;
}
export interface Relationships {
native_fungible: FungibleRelationship;
wrapped_native_fungible?: FungibleRelationship;
}
export interface ChainAttributes {
external_id: string;
name: string;
icon: Icon;
explorer: Explorer;
rpc: Rpc;
flags: Flags;
}
export interface FungibleRelationship {
data: {
type: string;
id: string;
};
links: Links;
}
export interface Explorer {
name: string;
token_url_format: string;
tx_url_format: string;
home_url: string;
}
export interface Rpc {
public_servers_url: string[];
}
export interface Flags {
supports_trading: boolean;
supports_sending: boolean;
supports_bridge: boolean;
}
export interface Icon {
url: string;
}