@radixdlt/application
Version:
A JavaScript client library for interacting with the Radix Distributed Ledger.
20 lines (14 loc) • 428 B
text/typescript
import { nodeAPI } from '.'
import { getAPI } from './json-rpc'
import { radixCoreAPI } from './radixCoreAPI'
type JsonRpcAPI = {
[Property in keyof ReturnType<typeof getAPI>]: ReturnType<
typeof getAPI
>[Property]
}
export type NodeAPI = ReturnType<typeof nodeAPI>
export type NodeT = Readonly<{
url: URL
}>
export type RadixAPI = Omit<RadixCoreAPI, 'node'>
export type RadixCoreAPI = ReturnType<typeof radixCoreAPI>