@eidolon-labs/player-sdk
Version:
@eidolon-labs/player-sdk is a lightweight API wrapper for the Eidolon Player API; the invisible gaming layer for blockchain.
39 lines (38 loc) • 795 B
TypeScript
export type SupportedChains = "nebula" | "nebula-testnet";
export type BaseResponse = {
message: string;
};
export type CreatePlayerResponse = {
note: string;
data: {
accountId: string;
player: {
id: string;
addresses: {
evm: `0x${string}`;
};
};
};
} & BaseResponse;
export type EstimateGasResponse = {
data: {
amount: string;
};
} & BaseResponse;
export type SendTransactionResponse = {
data: {
transactionHash: string;
};
} & BaseResponse;
export type GetPlayerResponse = {
data: {
player: {
id: string;
address: string;
status: string;
};
};
} & BaseResponse;
export type ApiError = {
error: string;
};