UNPKG

@akashicpay/sdk

Version:

SDK to interact with the Akashic ecosystem

86 lines (85 loc) 2.45 kB
export declare const AkashicBaseUrl: "https://api.akashicscan.com/api"; export declare const AkashicBaseUrlDev = "https://api.testnet.akashicscan.com/api"; export declare const AkashicBaseUrlStaging = "https://api.staging.akashicscan.com/api"; export declare const AkashicPayBaseUrl: "https://www.akashicpay.com"; export declare const AkashicPayBaseUrlDev = "https://testnet.akashicpay.com"; export declare const AkashicPayBaseUrlStaging = "https://staging.akashicpay.com"; export declare enum AkashicEndpoints { PrepareTx = "/v0/l1-txn-orchestrator/prepare-withdrawal", L2Lookup = "/v0/nft/look-for-l2-address", OwnerTransaction = "/v0/owner/transactions", OwnerBalance = "/v0/owner/details", TransactionsDetails = "/v0/transactions/transfer", IdentifierLookup = "/v0/key/bp-deposit-key", AllKeysOfIdentifier = "/v0/key/all-bp-deposit-keys", IsBp = "/v0/owner/is-bp", SupportedCurrencies = "/v1/config/supported-currencies", CreateDepositOrder = "/v0/deposit-request", OwnerKeys = "/v0/owner/keys?address", PrepareL2Txn = "/v0/l2-txn-orchestrator/prepare-l2-withdrawal", ExchangeRates = "/v0/exchange-rate" } export declare const ACNodes: { Singapore1: { minigate: string; node: string; }; Singapore2: { minigate: string; node: string; }; HongKong1: { minigate: string; node: string; }; HongKong2: { minigate: string; node: string; }; Japan1: { minigate: string; node: string; }; Japan2: { minigate: string; node: string; }; }; export type ACNode = typeof ACNodes.HongKong1; export declare const ACDevNodes: { Singapore1: { minigate: string; node: string; }; Singapore2: { minigate: string; node: string; }; Japan1: { minigate: string; node: string; }; Japan2: { minigate: string; node: string; }; HongKong1: { minigate: string; node: string; }; HongKong2: { minigate: string; node: string; }; }; export type ACDevNode = typeof ACDevNodes.Singapore1; export declare enum Environment { Production = "production", Preprod = "preprod", Staging = "staging", Development = "development" } export declare const otherError: { unsupportedCoinError: string; transactionTooSmallError: string; };